Codestyle

This commit is contained in:
Auxilor 2021-05-27 11:54:57 +01:00
parent 93aa037a58
commit 7f1a12a496
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,8 @@ public class TabCompleterEnchantinfo extends AbstractTabCompleter {
/** /**
* The cached enchantment names. * The cached enchantment names.
*/ */
private static final List<String> ENCHANT_NAMES = EcoEnchants.values().stream().filter(EcoEnchant::isEnabled).map(EcoEnchant::getDisplayName).map(ChatColor::stripColor).collect(Collectors.toList()); private static final List<String> ENCHANT_NAMES = EcoEnchants.values().stream().filter(EcoEnchant::isEnabled)
.map(EcoEnchant::getDisplayName).map(ChatColor::stripColor).collect(Collectors.toList());
/** /**
* Instantiate a new tab-completer for /enchantinfo. * Instantiate a new tab-completer for /enchantinfo.

View File

@ -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.ecoenchants.spell.Vitalize;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
import com.willfp.ecoenchants.enchantments.support.vanilla.VanillaEnchantments; 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 lombok.experimental.UtilityClass;
import org.bukkit.NamespacedKey; import org.bukkit.NamespacedKey;
import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.Enchantment;

View File

@ -265,6 +265,8 @@ public abstract class Spell extends EcoEnchant {
* @param player The player who triggered the spell. * @param player The player who triggered the spell.
* @param level The level of the spell on the item. * @param level The level of the spell on the item.
* @param event The event that activated the spell. * @param event The event that activated the spell.
*
* @return If the spell should be activated.
*/ */
public abstract boolean onUse(@NotNull Player player, public abstract boolean onUse(@NotNull Player player,
int level, int level,

View File

@ -23,7 +23,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
@SuppressWarnings("unchecked")
@UtilityClass @UtilityClass
public class EnchantChecks { public class EnchantChecks {
/** /**