mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-25 20:17:38 +01:00
Codestyle
This commit is contained in:
parent
93aa037a58
commit
7f1a12a496
@ -20,7 +20,8 @@ public class TabCompleterEnchantinfo extends AbstractTabCompleter {
|
||||
/**
|
||||
* 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.
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -23,7 +23,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@UtilityClass
|
||||
public class EnchantChecks {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user