Removed EcoEnchantBuilder

This commit is contained in:
Auxilor 2020-10-17 17:50:17 +01:00
parent ae0dc301b2
commit a354d62f5d
183 changed files with 203 additions and 431 deletions

View File

@ -1,5 +1,6 @@
package com.willfp.ecoenchants.enchantments; package com.willfp.ecoenchants.enchantments;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.config.ConfigManager; import com.willfp.ecoenchants.config.ConfigManager;
import com.willfp.ecoenchants.config.configs.EnchantmentConfig; import com.willfp.ecoenchants.config.configs.EnchantmentConfig;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentRarity; import com.willfp.ecoenchants.enchantments.meta.EnchantmentRarity;
@ -22,6 +23,7 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.regex.Pattern;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher { public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher {
@ -43,17 +45,27 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
private boolean enabled; private boolean enabled;
/** protected EcoEnchant(String key, EcoEnchant.EnchantmentType type) {
* Create new EcoEnchant matching builder and prerequisites this(key, type, EcoEnchantsPlugin.class, new Prerequisite[]{});
* }
* @param builder The {@link EcoEnchantBuilder} for enchantment
*/
protected EcoEnchant(EcoEnchantBuilder builder, Prerequisite[] prerequisites) {
super(NamespacedKey.minecraft(builder.key));
this.type = builder.type; protected EcoEnchant(String key, EcoEnchant.EnchantmentType type, Prerequisite[] prerequisites) {
this.permissionName = builder.permission; this(key, type, EcoEnchantsPlugin.class, prerequisites);
this.config = builder.config; }
protected EcoEnchant(String key, EcoEnchant.EnchantmentType type, Class<?> plugin) {
this(key, type, plugin, new Prerequisite[]{});
}
protected EcoEnchant(String key, EcoEnchant.EnchantmentType type, Class<?> plugin, Prerequisite[] prerequisites) {
super(NamespacedKey.minecraft(key));
if(Pattern.matches("[a-z_]", key)) throw new InvalidEnchantmentException("Key must only contain lowercase letters and underscores");
this.type = type;
this.permissionName = key.replace("_", "");
ConfigManager.addEnchantmentConfig(new EnchantmentConfig(this.permissionName, plugin, this.type));
this.config = ConfigManager.getEnchantmentConfig(permissionName);
if(!Prerequisite.areMet(prerequisites)) if(!Prerequisite.areMet(prerequisites))
return; return;
@ -62,15 +74,6 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
this.add(); this.add();
} }
/**
* Create new EcoEnchant matching builder
*
* @param builder The {@link EcoEnchantBuilder} for enchantment
*/
protected EcoEnchant(EcoEnchantBuilder builder) {
this(builder, new Prerequisite[]{});
}
/** /**
* Update the enchantment based off config values * Update the enchantment based off config values
*/ */

View File

@ -1,50 +0,0 @@
package com.willfp.ecoenchants.enchantments;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.config.ConfigManager;
import com.willfp.ecoenchants.config.configs.EnchantmentConfig;
import java.util.regex.Pattern;
public class EcoEnchantBuilder {
public final String name;
public final String key;
public final String permission;
public final EnchantmentConfig config;
public Class<?> plugin;
public final EcoEnchant.EnchantmentType type;
/**
* Creates new EcoEnchantBuilder
* Only used by base enchantments, do not use for extensions.
*
* @param key The enchantment key name
* @param type The enchantment type
*/
public EcoEnchantBuilder(String key, EcoEnchant.EnchantmentType type) {
this(key, type, EcoEnchantsPlugin.class);
}
/**
* Creates new EcoEnchantBuilder for Extension
* Use for extensions
*
* @param key The enchantment key name
* @param type The enchantment type
* @param plugin The main class of extension
*/
public EcoEnchantBuilder(String key, EcoEnchant.EnchantmentType type, Class<?> plugin) {
if(Pattern.matches("[a-z_]", key)) throw new InvalidEnchantmentException("Key must only contain lowercase letters and underscores");
this.key = key;
this.permission = key.replace("_","");
this.type = type;
this.plugin = plugin;
ConfigManager.addEnchantmentConfig(new EnchantmentConfig(permission, plugin, this.type));
this.config = ConfigManager.getEnchantmentConfig(permission);
this.name = config.getString("name");
}
}

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -9,7 +8,7 @@ import org.bukkit.event.block.BlockDamageEvent;
public final class BreaklessnessCurse extends EcoEnchant { public final class BreaklessnessCurse extends EcoEnchant {
public BreaklessnessCurse() { public BreaklessnessCurse() {
super( super(
new EcoEnchantBuilder("breaklessness_curse", EnchantmentType.CURSE) "breaklessness_curse", EnchantmentType.CURSE
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent; import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent;
@ -22,7 +21,7 @@ import java.util.HashMap;
public final class CallingCurse extends EcoEnchant implements EcoRunnable { public final class CallingCurse extends EcoEnchant implements EcoRunnable {
public CallingCurse() { public CallingCurse() {
super( super(
new EcoEnchantBuilder("calling_curse", EnchantmentType.CURSE) "calling_curse", EnchantmentType.CURSE
); );
} }
private final HashMap<Player, Integer> players = new HashMap<>(); private final HashMap<Player, Integer> players = new HashMap<>();

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.util.DurabilityUtils; import com.willfp.ecoenchants.util.DurabilityUtils;
@ -24,7 +23,7 @@ import java.util.Set;
public final class DecayCurse extends EcoEnchant implements EcoRunnable { public final class DecayCurse extends EcoEnchant implements EcoRunnable {
public DecayCurse() { public DecayCurse() {
super( super(
new EcoEnchantBuilder("decay_curse", EnchantmentType.CURSE) "decay_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.util.NumberUtils; import com.willfp.ecoenchants.util.NumberUtils;
@ -11,7 +10,7 @@ import org.bukkit.inventory.ItemStack;
public final class FragilityCurse extends EcoEnchant { public final class FragilityCurse extends EcoEnchant {
public FragilityCurse() { public FragilityCurse() {
super( super(
new EcoEnchantBuilder("fragility_curse", EnchantmentType.CURSE) "fragility_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class HarmlessnessCurse extends EcoEnchant { public final class HarmlessnessCurse extends EcoEnchant {
public HarmlessnessCurse() { public HarmlessnessCurse() {
super( super(
new EcoEnchantBuilder("harmlessness_curse", EnchantmentType.CURSE) "harmlessness_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.FoodLevelChangeEvent;
public final class HungerCurse extends EcoEnchant { public final class HungerCurse extends EcoEnchant {
public HungerCurse() { public HungerCurse() {
super( super(
new EcoEnchantBuilder("hunger_curse", EnchantmentType.CURSE) "hunger_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.util.NumberUtils; import com.willfp.ecoenchants.util.NumberUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -12,7 +11,7 @@ import org.bukkit.util.Vector;
public final class InaccuracyCurse extends EcoEnchant { public final class InaccuracyCurse extends EcoEnchant {
public InaccuracyCurse() { public InaccuracyCurse() {
super( super(
new EcoEnchantBuilder("inaccuracy_curse", EnchantmentType.CURSE) "inaccuracy_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -9,7 +8,7 @@ import org.bukkit.event.block.BlockBreakEvent;
public final class MisfortuneCurse extends EcoEnchant { public final class MisfortuneCurse extends EcoEnchant {
public MisfortuneCurse() { public MisfortuneCurse() {
super( super(
new EcoEnchantBuilder("misfortune_curse", EnchantmentType.CURSE) "misfortune_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,12 +1,11 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.curse; package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
public final class PermanenceCurse extends EcoEnchant { public final class PermanenceCurse extends EcoEnchant {
public PermanenceCurse() { public PermanenceCurse() {
super( super(
new EcoEnchantBuilder("permanence_curse", EnchantmentType.CURSE) "permanence_curse", EnchantmentType.CURSE
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Monster; import org.bukkit.entity.Monster;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Abattoir extends EcoEnchant { public final class Abattoir extends EcoEnchant {
public Abattoir() { public Abattoir() {
super( super(
new EcoEnchantBuilder("abattoir", EnchantmentType.NORMAL) "abattoir", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
import com.willfp.ecoenchants.util.DurabilityUtils; import com.willfp.ecoenchants.util.DurabilityUtils;
@ -15,7 +14,7 @@ import java.util.Arrays;
public final class Abrasion extends EcoEnchant { public final class Abrasion extends EcoEnchant {
public Abrasion() { public Abrasion() {
super( super(
new EcoEnchantBuilder("abrasion", EnchantmentType.NORMAL) "abrasion", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -13,7 +12,7 @@ import org.bukkit.metadata.FixedMetadataValue;
public final class Aerial extends EcoEnchant { public final class Aerial extends EcoEnchant {
public Aerial() { public Aerial() {
super( super(
new EcoEnchantBuilder("aerial", EnchantmentType.NORMAL) "aerial", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Aquatic extends EcoEnchant { public final class Aquatic extends EcoEnchant {
public Aquatic() { public Aquatic() {
super( super(
new EcoEnchantBuilder("aquatic", EnchantmentType.NORMAL) "aquatic", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Spider; import org.bukkit.entity.Spider;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Arachnid extends EcoEnchant { public final class Arachnid extends EcoEnchant {
public Arachnid() { public Arachnid() {
super( super(
new EcoEnchantBuilder("arachnid", EnchantmentType.NORMAL) "arachnid", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
public final class Arcanic extends EcoEnchant { public final class Arcanic extends EcoEnchant {
public Arcanic() { public Arcanic() {
super( super(
new EcoEnchantBuilder("arcanic", EnchantmentType.NORMAL) "arcanic", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Trident; import org.bukkit.entity.Trident;
@ -13,7 +12,7 @@ import org.bukkit.metadata.FixedMetadataValue;
public final class Atmospheric extends EcoEnchant { public final class Atmospheric extends EcoEnchant {
public Atmospheric() { public Atmospheric() {
super( super(
new EcoEnchantBuilder("atmospheric", EnchantmentType.NORMAL) "atmospheric", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
@ -10,7 +9,7 @@ import org.bukkit.util.Vector;
public final class Backstab extends EcoEnchant { public final class Backstab extends EcoEnchant {
public Backstab() { public Backstab() {
super( super(
new EcoEnchantBuilder("backstab", EnchantmentType.NORMAL) "backstab", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.queue.DropQueue; import com.willfp.ecoenchants.queue.DropQueue;
@ -17,7 +16,7 @@ import org.bukkit.inventory.meta.SkullMeta;
public final class Beheading extends EcoEnchant { public final class Beheading extends EcoEnchant {
public Beheading() { public Beheading() {
super( super(
new EcoEnchantBuilder("beheading", EnchantmentType.NORMAL) "beheading", EnchantmentType.NORMAL
); );
} }
// START OF LISTENERS // START OF LISTENERS

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager; import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -19,7 +18,7 @@ import java.util.Set;
public final class BlastMining extends EcoEnchant { public final class BlastMining extends EcoEnchant {
public BlastMining() { public BlastMining() {
super( super(
new EcoEnchantBuilder("blast_mining", EnchantmentType.NORMAL) "blast_mining", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -15,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
public final class Bleed extends EcoEnchant { public final class Bleed extends EcoEnchant {
public Bleed() { public Bleed() {
super( super(
new EcoEnchantBuilder("bleed", EnchantmentType.NORMAL) "bleed", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -14,7 +13,7 @@ import org.bukkit.util.Vector;
public final class Blind extends EcoEnchant { public final class Blind extends EcoEnchant {
public Blind() { public Blind() {
super( super(
new EcoEnchantBuilder("blind", EnchantmentType.NORMAL) "blind", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
public final class BlockBreather extends EcoEnchant { public final class BlockBreather extends EcoEnchant {
public BlockBreather() { public BlockBreather() {
super( super(
new EcoEnchantBuilder("block_breather", EnchantmentType.NORMAL) "block_breather", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.Boss; import org.bukkit.entity.Boss;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class BossHunter extends EcoEnchant { public final class BossHunter extends EcoEnchant {
public BossHunter() { public BossHunter() {
super( super(
new EcoEnchantBuilder("boss_hunter", EnchantmentType.NORMAL) "boss_hunter", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.util.NumberUtils; import com.willfp.ecoenchants.util.NumberUtils;
@ -17,7 +16,7 @@ import org.bukkit.util.Vector;
public final class Buckshot extends EcoEnchant { public final class Buckshot extends EcoEnchant {
public Buckshot() { public Buckshot() {
super( super(
new EcoEnchantBuilder("buckshot", EnchantmentType.NORMAL) "buckshot", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Monster; import org.bukkit.entity.Monster;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Butchering extends EcoEnchant { public final class Butchering extends EcoEnchant {
public Butchering() { public Butchering() {
super( super(
new EcoEnchantBuilder("butchering", EnchantmentType.NORMAL) "butchering", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Cerebral extends EcoEnchant { public final class Cerebral extends EcoEnchant {
public Cerebral() { public Cerebral() {
super( super(
new EcoEnchantBuilder("cerebral", EnchantmentType.NORMAL) "cerebral", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
public final class Chopless extends EcoEnchant { public final class Chopless extends EcoEnchant {
public Chopless() { public Chopless() {
super( super(
new EcoEnchantBuilder("chopless", EnchantmentType.NORMAL) "chopless", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -13,7 +12,7 @@ import org.bukkit.metadata.FixedMetadataValue;
public final class Cleave extends EcoEnchant { public final class Cleave extends EcoEnchant {
public Cleave() { public Cleave() {
super( super(
new EcoEnchantBuilder("cleave", EnchantmentType.NORMAL) "cleave", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityShootBowEvent; import org.bukkit.event.entity.EntityShootBowEvent;
public final class Collateral extends EcoEnchant { public final class Collateral extends EcoEnchant {
public Collateral() { public Collateral() {
super( super(
new EcoEnchantBuilder("collateral", EnchantmentType.NORMAL) "collateral", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Conclude extends EcoEnchant { public final class Conclude extends EcoEnchant {
public Conclude() { public Conclude() {
super( super(
new EcoEnchantBuilder("conclude", EnchantmentType.NORMAL) "conclude", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.util.DurabilityUtils; import com.willfp.ecoenchants.util.DurabilityUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -15,7 +14,7 @@ import java.util.Arrays;
public final class Corrosive extends EcoEnchant { public final class Corrosive extends EcoEnchant {
public Corrosive() { public Corrosive() {
super( super(
new EcoEnchantBuilder("corrosive", EnchantmentType.NORMAL) "corrosive", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Trident; import org.bukkit.entity.Trident;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Cranial extends EcoEnchant { public final class Cranial extends EcoEnchant {
public Cranial() { public Cranial() {
super( super(
new EcoEnchantBuilder("cranial", EnchantmentType.NORMAL) "cranial", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Criticals extends EcoEnchant { public final class Criticals extends EcoEnchant {
public Criticals() { public Criticals() {
super( super(
new EcoEnchantBuilder("criticals", EnchantmentType.NORMAL) "criticals", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Slime; import org.bukkit.entity.Slime;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Cubism extends EcoEnchant { public final class Cubism extends EcoEnchant {
public Cubism() { public Cubism() {
super( super(
new EcoEnchantBuilder("cubism", EnchantmentType.NORMAL) "cubism", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Tameable; import org.bukkit.entity.Tameable;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Defender extends EcoEnchant { public final class Defender extends EcoEnchant {
public Defender() { public Defender() {
super( super(
new EcoEnchantBuilder("defender", EnchantmentType.NORMAL) "defender", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Deflection extends EcoEnchant { public final class Deflection extends EcoEnchant {
public Deflection() { public Deflection() {
super( super(
new EcoEnchantBuilder("deflection", EnchantmentType.NORMAL) "deflection", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.Creeper; import org.bukkit.entity.Creeper;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Defusion extends EcoEnchant { public final class Defusion extends EcoEnchant {
public Defusion() { public Defusion() {
super( super(
new EcoEnchantBuilder("defusion", EnchantmentType.NORMAL) "defusion", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.attribute.Attribute; import org.bukkit.attribute.Attribute;
@ -12,7 +11,7 @@ import org.bukkit.inventory.ItemStack;
public final class Dexterous extends EcoEnchant { public final class Dexterous extends EcoEnchant {
public Dexterous() { public Dexterous() {
super( super(
new EcoEnchantBuilder("dexterous", EnchantmentType.NORMAL) "dexterous", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -14,7 +13,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Disable extends EcoEnchant { public final class Disable extends EcoEnchant {
public Disable() { public Disable() {
super( super(
new EcoEnchantBuilder("disable", EnchantmentType.NORMAL) "disable", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -12,7 +11,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Disappear extends EcoEnchant { public final class Disappear extends EcoEnchant {
public Disappear() { public Disappear() {
super( super(
new EcoEnchantBuilder("disappear", EnchantmentType.NORMAL) "disappear", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Diurnal extends EcoEnchant { public final class Diurnal extends EcoEnchant {
public Diurnal() { public Diurnal() {
super( super(
new EcoEnchantBuilder("diurnal", EnchantmentType.NORMAL) "diurnal", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Diverse extends EcoEnchant { public final class Diverse extends EcoEnchant {
public Diverse() { public Diverse() {
super( super(
new EcoEnchantBuilder("diverse", EnchantmentType.NORMAL) "diverse", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager; import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -16,7 +15,7 @@ import org.bukkit.util.Vector;
public final class Drill extends EcoEnchant { public final class Drill extends EcoEnchant {
public Drill() { public Drill() {
super( super(
new EcoEnchantBuilder("drill", EnchantmentType.NORMAL) "drill", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -13,7 +12,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Dullness extends EcoEnchant { public final class Dullness extends EcoEnchant {
public Dullness() { public Dullness() {
super( super(
new EcoEnchantBuilder("dullness", EnchantmentType.NORMAL) "dullness", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.destroystokyo.paper.event.player.PlayerElytraBoostEvent; import com.destroystokyo.paper.event.player.PlayerElytraBoostEvent;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.util.optional.Prerequisite; import com.willfp.ecoenchants.util.optional.Prerequisite;
@ -11,7 +10,7 @@ import org.bukkit.event.EventHandler;
public final class Economical extends EcoEnchant { public final class Economical extends EcoEnchant {
public Economical() { public Economical() {
super( super(
new EcoEnchantBuilder("economical", EnchantmentType.NORMAL), "economical", EnchantmentType.NORMAL,
new Prerequisite[]{Prerequisite.HasPaper} new Prerequisite[]{Prerequisite.HasPaper}
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.util.LightningUtils; import com.willfp.ecoenchants.util.LightningUtils;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Electroshock extends EcoEnchant { public final class Electroshock extends EcoEnchant {
public Electroshock() { public Electroshock() {
super( super(
new EcoEnchantBuilder("electroshock", EnchantmentType.NORMAL) "electroshock", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class EndInfusion extends EcoEnchant { public final class EndInfusion extends EcoEnchant {
public EndInfusion() { public EndInfusion() {
super( super(
new EcoEnchantBuilder("end_infusion", EnchantmentType.NORMAL) "end_infusion", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -12,7 +11,7 @@ import java.util.Set;
public final class EnderSlayer extends EcoEnchant { public final class EnderSlayer extends EcoEnchant {
public EnderSlayer() { public EnderSlayer() {
super( super(
new EcoEnchantBuilder("ender_slayer", EnchantmentType.NORMAL) "ender_slayer", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.World; import org.bukkit.World;
@ -14,7 +13,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Enderism extends EcoEnchant { public final class Enderism extends EcoEnchant {
public Enderism() { public Enderism() {
super( super(
new EcoEnchantBuilder("enderism", EnchantmentType.NORMAL) "enderism", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
public final class Evasion extends EcoEnchant { public final class Evasion extends EcoEnchant {
public Evasion() { public Evasion() {
super( super(
new EcoEnchantBuilder("evasion", EnchantmentType.NORMAL) "evasion", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
public final class Extinguishing extends EcoEnchant { public final class Extinguishing extends EcoEnchant {
public Extinguishing() { public Extinguishing() {
super( super(
new EcoEnchantBuilder("extinguishing", EnchantmentType.NORMAL) "extinguishing", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.attribute.Attribute; import org.bukkit.attribute.Attribute;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -10,7 +9,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Extract extends EcoEnchant { public final class Extract extends EcoEnchant {
public Extract() { public Extract() {
super( super(
new EcoEnchantBuilder("extract", EnchantmentType.NORMAL) "extract", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -13,7 +12,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Famine extends EcoEnchant { public final class Famine extends EcoEnchant {
public Famine() { public Famine() {
super( super(
new EcoEnchantBuilder("famine", EnchantmentType.NORMAL) "famine", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -19,7 +18,7 @@ import org.bukkit.util.Vector;
public final class Farmhand extends EcoEnchant { public final class Farmhand extends EcoEnchant {
public Farmhand() { public Farmhand() {
super( super(
new EcoEnchantBuilder("farmhand", EnchantmentType.NORMAL) "farmhand", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.events.entitydeathbyentity.EntityDeathByEntityEvent; import com.willfp.ecoenchants.events.entitydeathbyentity.EntityDeathByEntityEvent;
@ -18,7 +17,7 @@ import java.util.Collection;
public final class Fetching extends EcoEnchant { public final class Fetching extends EcoEnchant {
public Fetching() { public Fetching() {
super( super(
new EcoEnchantBuilder("fetching", EnchantmentType.NORMAL) "fetching", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Finality extends EcoEnchant { public final class Finality extends EcoEnchant {
public Finality() { public Finality() {
super( super(
new EcoEnchantBuilder("finality", EnchantmentType.NORMAL) "finality", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Finishing extends EcoEnchant { public final class Finishing extends EcoEnchant {
public Finishing() { public Finishing() {
super( super(
new EcoEnchantBuilder("finishing", EnchantmentType.NORMAL) "finishing", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class FireAffinity extends EcoEnchant { public final class FireAffinity extends EcoEnchant {
public FireAffinity() { public FireAffinity() {
super( super(
new EcoEnchantBuilder("fire_affinity", EnchantmentType.NORMAL) "fire_affinity", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.attribute.Attribute; import org.bukkit.attribute.Attribute;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class FirstStrike extends EcoEnchant { public final class FirstStrike extends EcoEnchant {
public FirstStrike() { public FirstStrike() {
super( super(
new EcoEnchantBuilder("first_strike", EnchantmentType.NORMAL) "first_strike", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -12,7 +11,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Flinch extends EcoEnchant { public final class Flinch extends EcoEnchant {
public Flinch() { public Flinch() {
super( super(
new EcoEnchantBuilder("flinch", EnchantmentType.NORMAL) "flinch", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent; import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent;
@ -20,7 +19,7 @@ import java.util.HashMap;
public final class Forcefield extends EcoEnchant implements EcoRunnable { public final class Forcefield extends EcoEnchant implements EcoRunnable {
public Forcefield() { public Forcefield() {
super( super(
new EcoEnchantBuilder("forcefield", EnchantmentType.NORMAL) "forcefield", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
public final class Freerunner extends EcoEnchant { public final class Freerunner extends EcoEnchant {
public Freerunner() { public Freerunner() {
super( super(
new EcoEnchantBuilder("freerunner", EnchantmentType.NORMAL) "freerunner", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
@ -16,7 +15,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Frozen extends EcoEnchant { public final class Frozen extends EcoEnchant {
public Frozen() { public Frozen() {
super( super(
new EcoEnchantBuilder("frozen", EnchantmentType.NORMAL) "frozen", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -16,7 +15,7 @@ import org.bukkit.util.Vector;
public final class Fury extends EcoEnchant { public final class Fury extends EcoEnchant {
public Fury() { public Fury() {
super( super(
new EcoEnchantBuilder("fury", EnchantmentType.NORMAL) "fury", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.attribute.Attribute; import org.bukkit.attribute.Attribute;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Goliath extends EcoEnchant { public final class Goliath extends EcoEnchant {
public Goliath() { public Goliath() {
super( super(
new EcoEnchantBuilder("goliath", EnchantmentType.NORMAL) "goliath", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.Material; import org.bukkit.Material;
@ -14,7 +13,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Graceful extends EcoEnchant { public final class Graceful extends EcoEnchant {
public Graceful() { public Graceful() {
super( super(
new EcoEnchantBuilder("graceful", EnchantmentType.NORMAL) "graceful", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.util.VectorUtils; import com.willfp.ecoenchants.util.VectorUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -10,7 +9,7 @@ import org.bukkit.util.Vector;
public final class Grapple extends EcoEnchant { public final class Grapple extends EcoEnchant {
public Grapple() { public Grapple() {
super( super(
new EcoEnchantBuilder("grapple", EnchantmentType.NORMAL) "grapple", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -14,7 +13,7 @@ import org.bukkit.event.player.PlayerInteractEvent;
public final class GreenThumb extends EcoEnchant { public final class GreenThumb extends EcoEnchant {
public GreenThumb() { public GreenThumb() {
super( super(
new EcoEnchantBuilder("green_thumb", EnchantmentType.NORMAL) "green_thumb", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -13,7 +12,7 @@ import org.bukkit.inventory.meta.Damageable;
public final class Grit extends EcoEnchant { public final class Grit extends EcoEnchant {
public Grit() { public Grit() {
super( super(
new EcoEnchantBuilder("grit", EnchantmentType.NORMAL) "grit", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Hellish extends EcoEnchant { public final class Hellish extends EcoEnchant {
public Hellish() { public Hellish() {
super( super(
new EcoEnchantBuilder("hellish", EnchantmentType.NORMAL) "hellish", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.util.VectorUtils; import com.willfp.ecoenchants.util.VectorUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -11,7 +10,7 @@ import org.bukkit.util.Vector;
public final class Hook extends EcoEnchant { public final class Hook extends EcoEnchant {
public Hook() { public Hook() {
super( super(
new EcoEnchantBuilder("hook", EnchantmentType.NORMAL) "hook", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Horde extends EcoEnchant { public final class Horde extends EcoEnchant {
public Horde() { public Horde() {
super( super(
new EcoEnchantBuilder("horde", EnchantmentType.NORMAL) "horde", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -12,7 +11,7 @@ import org.bukkit.util.Vector;
public final class IceShot extends EcoEnchant { public final class IceShot extends EcoEnchant {
public IceShot() { public IceShot() {
super( super(
new EcoEnchantBuilder("ice_shot", EnchantmentType.NORMAL) "ice_shot", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -13,7 +12,7 @@ import org.bukkit.potion.PotionEffectType;
public final class Identify extends EcoEnchant { public final class Identify extends EcoEnchant {
public Identify() { public Identify() {
super( super(
new EcoEnchantBuilder("identify", EnchantmentType.NORMAL) "identify", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
import org.bukkit.Material; import org.bukkit.Material;
@ -13,7 +12,7 @@ import org.bukkit.event.entity.ProjectileHitEvent;
public final class Ignite extends EcoEnchant { public final class Ignite extends EcoEnchant {
public Ignite() { public Ignite() {
super( super(
new EcoEnchantBuilder("ignite", EnchantmentType.NORMAL) "ignite", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.nms.Cooldown; import com.willfp.ecoenchants.nms.Cooldown;
@ -13,7 +12,7 @@ import org.bukkit.potion.PotionEffectType;
public final class IllusionAspect extends EcoEnchant { public final class IllusionAspect extends EcoEnchant {
public IllusionAspect() { public IllusionAspect() {
super( super(
new EcoEnchantBuilder("illusion_aspect", EnchantmentType.NORMAL) "illusion_aspect", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Impact extends EcoEnchant { public final class Impact extends EcoEnchant {
public Impact() { public Impact() {
super( super(
new EcoEnchantBuilder("impact", EnchantmentType.NORMAL) "impact", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -13,7 +12,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Incandescence extends EcoEnchant { public final class Incandescence extends EcoEnchant {
public Incandescence() { public Incandescence() {
super( super(
new EcoEnchantBuilder("incandescence", EnchantmentType.NORMAL) "incandescence", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -26,7 +25,7 @@ import java.util.List;
public final class InfernalTouch extends EcoEnchant { public final class InfernalTouch extends EcoEnchant {
public InfernalTouch() { public InfernalTouch() {
super( super(
new EcoEnchantBuilder("infernal_touch", EnchantmentType.NORMAL) "infernal_touch", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Trident; import org.bukkit.entity.Trident;
import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.ProjectileLaunchEvent;
public final class Inferno extends EcoEnchant { public final class Inferno extends EcoEnchant {
public Inferno() { public Inferno() {
super( super(
new EcoEnchantBuilder("inferno", EnchantmentType.NORMAL) "inferno", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.util.VectorUtils; import com.willfp.ecoenchants.util.VectorUtils;
@ -16,7 +15,7 @@ import org.bukkit.util.Vector;
public final class Infuriate extends EcoEnchant { public final class Infuriate extends EcoEnchant {
public Infuriate() { public Infuriate() {
super( super(
new EcoEnchantBuilder("infuriate", EnchantmentType.NORMAL) "infuriate", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Insecticide extends EcoEnchant { public final class Insecticide extends EcoEnchant {
public Insecticide() { public Insecticide() {
super( super(
new EcoEnchantBuilder("insecticide", EnchantmentType.NORMAL) "insecticide", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager; import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager;
import org.bukkit.block.Block; import org.bukkit.block.Block;
@ -10,7 +9,7 @@ import org.bukkit.event.block.BlockDamageEvent;
public final class Instantaneous extends EcoEnchant { public final class Instantaneous extends EcoEnchant {
public Instantaneous() { public Instantaneous() {
super( super(
new EcoEnchantBuilder("instantaneous", EnchantmentType.NORMAL) "instantaneous", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
public final class Invigoration extends EcoEnchant { public final class Invigoration extends EcoEnchant {
public Invigoration() { public Invigoration() {
super( super(
new EcoEnchantBuilder("invigoration", EnchantmentType.NORMAL) "invigoration", EnchantmentType.NORMAL
); );
} }

View File

@ -1,14 +1,13 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent;
public final class Kinetic extends EcoEnchant { public final class Kinetic extends EcoEnchant {
public Kinetic() { public Kinetic() {
super( super(
new EcoEnchantBuilder("kinetic", EnchantmentType.NORMAL) "kinetic", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -14,7 +13,7 @@ import org.bukkit.event.player.PlayerInteractEvent;
public final class Launch extends EcoEnchant { public final class Launch extends EcoEnchant {
public Launch() { public Launch() {
super( super(
new EcoEnchantBuilder("launch", EnchantmentType.NORMAL) "launch", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.attribute.Attribute; import org.bukkit.attribute.Attribute;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Leeching extends EcoEnchant { public final class Leeching extends EcoEnchant {
public Leeching() { public Leeching() {
super( super(
new EcoEnchantBuilder("leeching", EnchantmentType.NORMAL) "leeching", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -15,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
public final class Lesion extends EcoEnchant { public final class Lesion extends EcoEnchant {
public Lesion() { public Lesion() {
super( super(
new EcoEnchantBuilder("lesion", EnchantmentType.NORMAL) "lesion", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -13,7 +12,7 @@ import org.bukkit.util.Vector;
public final class Levitate extends EcoEnchant { public final class Levitate extends EcoEnchant {
public Levitate() { public Levitate() {
super( super(
new EcoEnchantBuilder("levitate", EnchantmentType.NORMAL) "levitate", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
import org.bukkit.entity.Blaze; import org.bukkit.entity.Blaze;
@ -12,7 +11,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class LiquidShot extends EcoEnchant { public final class LiquidShot extends EcoEnchant {
public LiquidShot() { public LiquidShot() {
super( super(
new EcoEnchantBuilder("liquid_shot", EnchantmentType.NORMAL) "liquid_shot", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager; import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager;
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager; import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
@ -22,7 +21,7 @@ import java.util.Set;
public final class Lumberjack extends EcoEnchant { public final class Lumberjack extends EcoEnchant {
public Lumberjack() { public Lumberjack() {
super( super(
new EcoEnchantBuilder("lumberjack", EnchantmentType.NORMAL) "lumberjack", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager; import com.willfp.ecoenchants.integrations.anticheat.AnticheatManager;
@ -22,7 +21,7 @@ import org.bukkit.util.Vector;
public final class MagmaWalker extends EcoEnchant { public final class MagmaWalker extends EcoEnchant {
public MagmaWalker() { public MagmaWalker() {
super( super(
new EcoEnchantBuilder("magma_walker", EnchantmentType.NORMAL) "magma_walker", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent; import com.willfp.ecoenchants.events.armorequip.ArmorEquipEvent;
@ -22,7 +21,7 @@ import java.util.HashMap;
public final class Magnetic extends EcoEnchant implements EcoRunnable { public final class Magnetic extends EcoEnchant implements EcoRunnable {
public Magnetic() { public Magnetic() {
super( super(
new EcoEnchantBuilder("magnetic", EnchantmentType.NORMAL) "magnetic", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -15,7 +14,7 @@ import org.bukkit.metadata.FixedMetadataValue;
public final class Marking extends EcoEnchant { public final class Marking extends EcoEnchant {
public Marking() { public Marking() {
super( super(
new EcoEnchantBuilder("marking", EnchantmentType.NORMAL) "marking", EnchantmentType.NORMAL
); );
} }

View File

@ -2,7 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.EcoEnchantsPlugin; import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -14,7 +13,7 @@ import org.bukkit.scheduler.BukkitRunnable;
public final class Marksman extends EcoEnchant { public final class Marksman extends EcoEnchant {
public Marksman() { public Marksman() {
super( super(
new EcoEnchantBuilder("marksman", EnchantmentType.NORMAL) "marksman", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils; import com.willfp.ecoenchants.enchantments.util.EnchantmentUtils;
import com.willfp.ecoenchants.queue.DropQueue; import com.willfp.ecoenchants.queue.DropQueue;
@ -14,7 +13,7 @@ import org.bukkit.inventory.ItemStack;
public final class Necrotic extends EcoEnchant { public final class Necrotic extends EcoEnchant {
public Necrotic() { public Necrotic() {
super( super(
new EcoEnchantBuilder("necrotic", EnchantmentType.NORMAL) "necrotic", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
@ -9,7 +8,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class NetherInfusion extends EcoEnchant { public final class NetherInfusion extends EcoEnchant {
public NetherInfusion() { public NetherInfusion() {
super( super(
new EcoEnchantBuilder("nether_infusion", EnchantmentType.NORMAL) "nether_infusion", EnchantmentType.NORMAL
); );
} }

View File

@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal; package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.EcoEnchants;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.Arrow; import org.bukkit.entity.Arrow;
@ -11,7 +10,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public final class Netheric extends EcoEnchant { public final class Netheric extends EcoEnchant {
public Netheric() { public Netheric() {
super( super(
new EcoEnchantBuilder("netheric", EnchantmentType.NORMAL) "netheric", EnchantmentType.NORMAL
); );
} }

Some files were not shown because too many files have changed in this diff Show More