Improved codestyle (9/?)

This commit is contained in:
Auxilor 2020-12-28 15:31:02 +00:00
parent cb191af310
commit c97ca2f9c2
183 changed files with 175 additions and 641 deletions

View File

@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
net.minecraft.server.v1_15_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
return nmsStack.getRepairCost();
}
}
}

View File

@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
net.minecraft.server.v1_16_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
return nmsStack.getRepairCost();
}
}
}

View File

@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
net.minecraft.server.v1_16_R2.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
return nmsStack.getRepairCost();
}
}
}

View File

@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
net.minecraft.server.v1_16_R3.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
return nmsStack.getRepairCost();
}
}
}

View File

@ -1,9 +1,7 @@
package com.willfp.ecoenchants.config.configs;
import com.willfp.eco.util.config.BaseConfig;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import java.util.Set;
/**
@ -15,42 +13,6 @@ public class Rarity extends BaseConfig {
}
public Set<String> getRarities() {
return config.getConfigurationSection("rarities").getKeys(false);
}
public int getInt(@NotNull String path) {
return config.getInt(path);
}
public int getInt(@NotNull String path, int def) {
return config.getInt(path, def);
}
public @NotNull List<Integer> getInts(@NotNull String path) {
return config.getIntegerList(path);
}
public boolean getBool(@NotNull String path) {
return config.getBoolean(path);
}
public @NotNull List<Boolean> getBools(@NotNull String path) {
return config.getBooleanList(path);
}
public @NotNull String getString(@NotNull String path) {
return config.getString(path);
}
public @NotNull List<String> getStrings(@NotNull String path) {
return config.getStringList(path);
}
public double getDouble(@NotNull String path) {
return config.getDouble(path);
}
public @NotNull List<Double> getDoubles(@NotNull String path) {
return config.getDoubleList(path);
return this.getConfig().getConfigurationSection("rarities").getKeys(false);
}
}

View File

@ -19,4 +19,4 @@ public class RedstoneArtifact extends Artifact {
public Particle.DustOptions getDustOptions() {
return new Particle.DustOptions(Color.RED, 1.0f);
}
}
}

View File

@ -15,9 +15,6 @@ public class BreaklessnessCurse extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageBlock(@NotNull final Player player,
@NotNull final Block block,

View File

@ -16,9 +16,6 @@ public class FragilityCurse extends EcoEnchant {
"fragility_curse", EnchantmentType.CURSE
);
}
// START OF LISTENERS
@EventHandler
public void onItemDamage(@NotNull final PlayerItemDamageEvent event) {
ItemStack item = event.getItem();

View File

@ -14,9 +14,6 @@ public class HarmlessnessCurse extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class HungerCurse extends EcoEnchant {
"hunger_curse", EnchantmentType.CURSE
);
}
// START OF LISTENERS
@EventHandler
public void onHunger(@NotNull final FoodLevelChangeEvent event) {
if (!(event.getEntity() instanceof Player)) {

View File

@ -17,9 +17,6 @@ public class InaccuracyCurse extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onBowShoot(@NotNull final LivingEntity shooter,
@NotNull final Arrow arrow,

View File

@ -15,9 +15,6 @@ public class MisfortuneCurse extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onBlockBreak(@NotNull final Player player,
@NotNull final Block block,

View File

@ -9,8 +9,5 @@ public class PermanenceCurse extends EcoEnchant {
"permanence_curse", EnchantmentType.CURSE
);
}
// START OF LISTENERS
// Listeners are in anvil listeners
}

View File

@ -15,9 +15,6 @@ public class Abattoir extends EcoEnchant {
"abattoir", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -21,9 +21,6 @@ public class Abrasion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity uncastVictim,

View File

@ -17,9 +17,6 @@ public class Aerial extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onBowShoot(@NotNull final LivingEntity shooter,
@NotNull final Arrow arrow,

View File

@ -16,9 +16,6 @@ public class Aquatic extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Arachnid extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -13,9 +13,6 @@ public class Arcanic extends EcoEnchant {
"arcanic", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -16,9 +16,6 @@ public class Atmospheric extends EcoEnchant {
"atmospheric", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onTridentLaunch(@NotNull final LivingEntity shooter,
@NotNull final Trident trident,

View File

@ -15,9 +15,6 @@ public class Backstab extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -20,10 +20,7 @@ public class Beheading extends EcoEnchant {
super(
"beheading", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
} @EventHandler
public void onDeath(@NotNull final EntityDeathEvent event) {
if (event.getEntity().getKiller() == null) {
return;

View File

@ -23,9 +23,6 @@ public class BlastMining extends EcoEnchant {
"blast_mining", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onBlockBreak(@NotNull final Player player,
@NotNull final Block block,

View File

@ -20,9 +20,6 @@ public class Bleed extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -19,9 +19,6 @@ public class Blind extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class BlockBreather extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -16,9 +16,6 @@ public class BossHunter extends EcoEnchant {
"boss_hunter", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -22,9 +22,6 @@ public class Buckshot extends EcoEnchant {
"buckshot", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onBowShoot(@NotNull final LivingEntity shooter,
@NotNull final Arrow arrow,

View File

@ -15,9 +15,6 @@ public class Butchering extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Cerebral extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Chopless extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -17,9 +17,6 @@ public class Cleave extends EcoEnchant {
"cleave", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Collateral extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onBowShoot(@NotNull final LivingEntity shooter,
@NotNull final Arrow arrow,

View File

@ -16,9 +16,6 @@ public class Conclude extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -19,9 +19,6 @@ public class Corrosive extends EcoEnchant {
"corrosive", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity uncastVictim,

View File

@ -15,9 +15,6 @@ public class Cranial extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Criticals extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Cubism extends EcoEnchant {
"cubism", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Defender extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Deflection extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDeflect(@NotNull final Player blocker,
@NotNull final LivingEntity attacker,

View File

@ -15,9 +15,6 @@ public class Defusion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class Dexterous extends EcoEnchant {
);
}
// START OF LISTENERS
@EventHandler
public void onDextHold(@NotNull final PlayerItemHeldEvent event) {
Player player = event.getPlayer();

View File

@ -20,9 +20,6 @@ public class Disable extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Disappear extends EcoEnchant {
"disappear", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -14,9 +14,6 @@ public class Diurnal extends EcoEnchant {
"diurnal", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Diverse extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -21,9 +21,6 @@ public class Drill extends EcoEnchant {
"drill", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onBlockBreak(@NotNull final Player player,
@NotNull final Block block,

View File

@ -19,9 +19,6 @@ public class Dullness extends EcoEnchant {
"dullness", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Dweller extends EcoEnchant {
"dweller", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Electroshock extends EcoEnchant {
"electroshock", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onDeflect(@NotNull final Player blocker,
@NotNull final LivingEntity attacker,

View File

@ -15,9 +15,6 @@ public class EndInfusion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class EnderSlayer extends EcoEnchant {
"ender_slayer", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
private static final Set<EntityType> END_MOBS = new ImmutableSet.Builder<EntityType>()
.add(EntityType.ENDERMITE)
.add(EntityType.ENDERMAN)

View File

@ -19,9 +19,6 @@ public class Enderism extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Evasion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -13,9 +13,6 @@ public class Extinguishing extends EcoEnchant {
"extinguishing", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -16,9 +16,6 @@ public class Extract extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -20,9 +20,6 @@ public class Famine extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -24,9 +24,6 @@ public class Farmhand extends EcoEnchant {
"farmhand", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onTill(@NotNull final PlayerInteractEvent event) {
Player player = event.getPlayer();

View File

@ -22,9 +22,6 @@ public class Fetching extends EcoEnchant {
"fetching", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler(priority = EventPriority.HIGH)
public void onWolfKill(@NotNull final EntityDeathByEntityEvent event) {
LivingEntity entity = event.getVictim();

View File

@ -16,9 +16,6 @@ public class Finality extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Finishing extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class FireAffinity extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class FirstStrike extends EcoEnchant {
"first_strike", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class Flinch extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDeflect(@NotNull final Player blocker,
@NotNull final LivingEntity attacker,

View File

@ -14,9 +14,6 @@ public class Freerunner extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onFallDamage(@NotNull final LivingEntity faller,
final int level,

View File

@ -19,9 +19,6 @@ public class Frozen extends EcoEnchant {
"frozen", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onHurt(@NotNull final EntityDamageByEntityEvent event) {
if (!(event.getEntity() instanceof Player)) {

View File

@ -22,9 +22,6 @@ public class Fury extends EcoEnchant {
"fury", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Goliath extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -19,9 +19,6 @@ public class Graceful extends EcoEnchant {
"graceful", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onFall(@NotNull final PlayerMoveEvent event) {
Player player = event.getPlayer();

View File

@ -16,9 +16,6 @@ public class Grapple extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -19,9 +19,6 @@ public class GreenThumb extends EcoEnchant {
"green_thumb", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onInteract(@NotNull final PlayerInteractEvent event) {
Player player = event.getPlayer();

View File

@ -18,9 +18,6 @@ public class Grit extends EcoEnchant {
"grit", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onGritHurt(@NotNull final EntityDamageByEntityEvent event) {
if (!(event.getEntity() instanceof Player)) {

View File

@ -16,9 +16,6 @@ public class Hellish extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -17,9 +17,6 @@ public class Hook extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -14,9 +14,6 @@ public class Horde extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class IceShot extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class Identify extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDeflect(@NotNull final Player blocker,
@NotNull final LivingEntity attacker,

View File

@ -19,9 +19,6 @@ public class Ignite extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowHit(@NotNull final LivingEntity uncastShooter,
final int level,

View File

@ -20,9 +20,6 @@ public class IllusionAspect extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Impact extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Incandescence extends EcoEnchant {
"incandescence", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onIncandescenceHurt(@NotNull final EntityDamageByEntityEvent event) {
if (!(event.getEntity() instanceof Player)) {

View File

@ -65,9 +65,6 @@ public class InfernalTouch extends EcoEnchant {
}
return toReturn;
}
// START OF LISTENERS
@EventHandler
public void infernalTouchBreak(@NotNull final BlockDropItemEvent event) {
Player player = event.getPlayer();

View File

@ -15,9 +15,6 @@ public class Inferno extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentLaunch(@NotNull final LivingEntity shooter,
@NotNull final Trident trident,

View File

@ -21,9 +21,6 @@ public class Infuriate extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDeflect(@NotNull final Player blocker,
@NotNull final LivingEntity attacker,

View File

@ -16,9 +16,6 @@ public class Insecticide extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Instantaneous extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageBlock(@NotNull final Player player,
@NotNull final Block block,

View File

@ -16,9 +16,6 @@ public class Invigoration extends EcoEnchant {
"invigoration", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onInvigorationHurt(@NotNull final EntityDamageEvent event) {
if (!(event.getEntity() instanceof Player)) {

View File

@ -14,9 +14,6 @@ public class Kinetic extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
final int level,

View File

@ -15,9 +15,6 @@ public class Leeching extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class Lesion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onTridentDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -19,9 +19,6 @@ public class Levitate extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -18,9 +18,6 @@ public class LiquidShot extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -26,9 +26,6 @@ public class Lumberjack extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onBlockBreak(@NotNull final Player player,
@NotNull final Block block,

View File

@ -25,9 +25,6 @@ public class MagmaWalker extends EcoEnchant {
"magma_walker", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onLavaWalk(@NotNull final PlayerMoveEvent event) {
Player player = event.getPlayer();

View File

@ -18,9 +18,6 @@ public class Marking extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -17,9 +17,6 @@ public class Marksman extends EcoEnchant {
"marksman", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void onMarksmanShoot(@NotNull final ProjectileLaunchEvent event) {
if (event.getEntityType() != EntityType.ARROW) {

View File

@ -19,9 +19,6 @@ public class Necrotic extends EcoEnchant {
"necrotic", EnchantmentType.NORMAL
);
}
// START OF LISTENERS
@EventHandler
public void necroticKill(@NotNull final EntityDeathEvent event) {
if (event.getEntity().getKiller() == null) {

View File

@ -15,9 +15,6 @@ public class NetherInfusion extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -16,9 +16,6 @@ public class Netheric extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onArrowDamage(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -15,9 +15,6 @@ public class Nocturnal extends EcoEnchant {
);
}
// START OF LISTENERS
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

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