diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/meta/EnchantmentType.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/meta/EnchantmentType.java index b311626e..4582ffe0 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/meta/EnchantmentType.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/meta/EnchantmentType.java @@ -20,6 +20,12 @@ public class EnchantmentType { * Instance of EcoEnchants. */ private static final EcoEnchantsPlugin PLUGIN = EcoEnchantsPlugin.getInstance(); + + /** + * All registered types. + */ + private static final List REGISTERED = new ArrayList<>(); + /** * Most enchantments are like this. *

@@ -30,6 +36,7 @@ public class EnchantmentType { false, () -> PLUGIN.getLangYml().getString("not-curse-color") ); + /** * Negative enchantments. *

@@ -40,6 +47,7 @@ public class EnchantmentType { false, () -> PLUGIN.getLangYml().getString("curse-color") ); + /** * Extremely powerful enchantments. *

@@ -50,6 +58,7 @@ public class EnchantmentType { () -> !PLUGIN.getConfigYml().getBool("types.special.allow-multiple"), () -> PLUGIN.getLangYml().getString("special-color") ); + /** * Cosmetic enchantments. *

@@ -61,6 +70,7 @@ public class EnchantmentType { () -> PLUGIN.getLangYml().getString("artifact-color"), Artifact.class ); + /** * Ability enchantments. *

@@ -72,10 +82,7 @@ public class EnchantmentType { () -> PLUGIN.getLangYml().getString("spell-color"), Spell.class ); - /** - * All registered types. - */ - private static final List REGISTERED = new ArrayList<>(); + /** * Lambda to fetch the color of the type. */ @@ -85,11 +92,13 @@ public class EnchantmentType { * Lambda to fetch the singularity of the type. */ private final Supplier singularSupplier; + /** * The name of the type. */ @Getter private final String name; + /** * The class that all enchantments of this type must extend. *

@@ -98,11 +107,13 @@ public class EnchantmentType { @Getter @Nullable private final Class requiredToExtend; + /** * If only one enchantment of this type is allowed on an item. */ @Getter private boolean singular; + /** * The color of enchantments of this type to have in lore. */ diff --git a/eco-extensions/mmo/src/main/java/com/willfp/ecoenchants/mmo/enchants/mana/Drain.java b/eco-extensions/mmo/src/main/java/com/willfp/ecoenchants/mmo/enchants/mana/Drain.java index d4769c23..8a1405ea 100644 --- a/eco-extensions/mmo/src/main/java/com/willfp/ecoenchants/mmo/enchants/mana/Drain.java +++ b/eco-extensions/mmo/src/main/java/com/willfp/ecoenchants/mmo/enchants/mana/Drain.java @@ -1,8 +1,8 @@ package com.willfp.ecoenchants.mmo.enchants.mana; import com.willfp.ecoenchants.enchantments.EcoEnchants; -import com.willfp.ecoenchants.mmo.structure.MMOSpell; import com.willfp.ecoenchants.mmo.integrations.mmo.MMOManager; +import com.willfp.ecoenchants.mmo.structure.MMOSpell; import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerInteractEvent;