From 7f1a12a496d6480bed14529093d03210f4631936 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 27 May 2021 11:54:57 +0100 Subject: [PATCH] Codestyle --- .../command/tabcompleters/TabCompleterEnchantinfo.java | 3 ++- .../java/com/willfp/ecoenchants/enchantments/EcoEnchants.java | 2 -- .../com/willfp/ecoenchants/enchantments/itemtypes/Spell.java | 2 ++ .../willfp/ecoenchants/enchantments/util/EnchantChecks.java | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/tabcompleters/TabCompleterEnchantinfo.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/tabcompleters/TabCompleterEnchantinfo.java index 034e6751..ab94a5b9 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/tabcompleters/TabCompleterEnchantinfo.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/tabcompleters/TabCompleterEnchantinfo.java @@ -20,7 +20,8 @@ public class TabCompleterEnchantinfo extends AbstractTabCompleter { /** * The cached enchantment names. */ - private static final List ENCHANT_NAMES = EcoEnchants.values().stream().filter(EcoEnchant::isEnabled).map(EcoEnchant::getDisplayName).map(ChatColor::stripColor).collect(Collectors.toList()); + private static final List ENCHANT_NAMES = EcoEnchants.values().stream().filter(EcoEnchant::isEnabled) + .map(EcoEnchant::getDisplayName).map(ChatColor::stripColor).collect(Collectors.toList()); /** * Instantiate a new tab-completer for /enchantinfo. diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java index 79a0f819..ed5c308b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java @@ -238,8 +238,6 @@ import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Quake; import com.willfp.ecoenchants.enchantments.ecoenchants.spell.Vitalize; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.support.vanilla.VanillaEnchantments; -import com.willfp.ecoenchants.proxy.proxies.EcoCraftEnchantmentManagerProxy; -import com.willfp.ecoenchants.util.ProxyUtils; import lombok.experimental.UtilityClass; import org.bukkit.NamespacedKey; import org.bukkit.enchantments.Enchantment; diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java index 64a97d68..0123ed1b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/itemtypes/Spell.java @@ -265,6 +265,8 @@ public abstract class Spell extends EcoEnchant { * @param player The player who triggered the spell. * @param level The level of the spell on the item. * @param event The event that activated the spell. + * + * @return If the spell should be activated. */ public abstract boolean onUse(@NotNull Player player, int level, diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantChecks.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantChecks.java index e3fc575e..81f6eff3 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantChecks.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantChecks.java @@ -23,7 +23,6 @@ import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; -@SuppressWarnings("unchecked") @UtilityClass public class EnchantChecks { /**