mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Improved codestyle (9/?)
This commit is contained in:
parent
cb191af310
commit
c97ca2f9c2
@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
|
||||
net.minecraft.server.v1_15_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
return nmsStack.getRepairCost();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
|
||||
net.minecraft.server.v1_16_R1.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
return nmsStack.getRepairCost();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
|
||||
net.minecraft.server.v1_16_R2.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
return nmsStack.getRepairCost();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public final class RepairCost implements RepairCostProxy {
|
||||
net.minecraft.server.v1_16_R3.ItemStack nmsStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
return nmsStack.getRepairCost();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -19,4 +19,4 @@ public class RedstoneArtifact extends Artifact {
|
||||
public Particle.DustOptions getDustOptions() {
|
||||
return new Particle.DustOptions(Color.RED, 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,9 +15,6 @@ public class BreaklessnessCurse extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageBlock(@NotNull final Player player,
|
||||
@NotNull final Block block,
|
||||
|
@ -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();
|
||||
|
@ -14,9 +14,6 @@ public class HarmlessnessCurse extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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)) {
|
||||
|
@ -17,9 +17,6 @@ public class InaccuracyCurse extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onBowShoot(@NotNull final LivingEntity shooter,
|
||||
@NotNull final Arrow arrow,
|
||||
|
@ -15,9 +15,6 @@ public class MisfortuneCurse extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onBlockBreak(@NotNull final Player player,
|
||||
@NotNull final Block block,
|
||||
|
@ -9,8 +9,5 @@ public class PermanenceCurse extends EcoEnchant {
|
||||
"permanence_curse", EnchantmentType.CURSE
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
// Listeners are in anvil listeners
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -21,9 +21,6 @@ public class Abrasion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity uncastVictim,
|
||||
|
@ -17,9 +17,6 @@ public class Aerial extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onBowShoot(@NotNull final LivingEntity shooter,
|
||||
@NotNull final Arrow arrow,
|
||||
|
@ -16,9 +16,6 @@ public class Aquatic extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -16,9 +16,6 @@ public class Arachnid extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class Backstab extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -20,9 +20,6 @@ public class Bleed extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -19,9 +19,6 @@ public class Blind extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class BlockBreather extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class Butchering extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -16,9 +16,6 @@ public class Cerebral extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class Chopless extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
|
@ -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,
|
||||
|
@ -14,9 +14,6 @@ public class Collateral extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onBowShoot(@NotNull final LivingEntity shooter,
|
||||
@NotNull final Arrow arrow,
|
||||
|
@ -16,9 +16,6 @@ public class Conclude extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class Cranial extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class Criticals extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class Defender extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -15,9 +15,6 @@ public class Deflection extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDeflect(@NotNull final Player blocker,
|
||||
@NotNull final LivingEntity attacker,
|
||||
|
@ -15,9 +15,6 @@ public class Defusion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -18,9 +18,6 @@ public class Dexterous extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onDextHold(@NotNull final PlayerItemHeldEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
|
@ -20,9 +20,6 @@ public class Disable extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -14,9 +14,6 @@ public class Diverse extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class EndInfusion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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)
|
||||
|
@ -19,9 +19,6 @@ public class Enderism extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class Evasion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
|
@ -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,
|
||||
|
@ -16,9 +16,6 @@ public class Extract extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -20,9 +20,6 @@ public class Famine extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -16,9 +16,6 @@ public class Finality extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -15,9 +15,6 @@ public class Finishing extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class FireAffinity extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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,
|
||||
|
@ -18,9 +18,6 @@ public class Flinch extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDeflect(@NotNull final Player blocker,
|
||||
@NotNull final LivingEntity attacker,
|
||||
|
@ -14,9 +14,6 @@ public class Freerunner extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onFallDamage(@NotNull final LivingEntity faller,
|
||||
final int level,
|
||||
|
@ -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)) {
|
||||
|
@ -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,
|
||||
|
@ -15,9 +15,6 @@ public class Goliath extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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();
|
||||
|
@ -16,9 +16,6 @@ public class Grapple extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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();
|
||||
|
@ -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)) {
|
||||
|
@ -16,9 +16,6 @@ public class Hellish extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -17,9 +17,6 @@ public class Hook extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -14,9 +14,6 @@ public class Horde extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -18,9 +18,6 @@ public class IceShot extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -18,9 +18,6 @@ public class Identify extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDeflect(@NotNull final Player blocker,
|
||||
@NotNull final LivingEntity attacker,
|
||||
|
@ -19,9 +19,6 @@ public class Ignite extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowHit(@NotNull final LivingEntity uncastShooter,
|
||||
final int level,
|
||||
|
@ -20,9 +20,6 @@ public class IllusionAspect extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -16,9 +16,6 @@ public class Impact extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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)) {
|
||||
|
@ -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();
|
||||
|
@ -15,9 +15,6 @@ public class Inferno extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentLaunch(@NotNull final LivingEntity shooter,
|
||||
@NotNull final Trident trident,
|
||||
|
@ -21,9 +21,6 @@ public class Infuriate extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDeflect(@NotNull final Player blocker,
|
||||
@NotNull final LivingEntity attacker,
|
||||
|
@ -16,9 +16,6 @@ public class Insecticide extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -16,9 +16,6 @@ public class Instantaneous extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageBlock(@NotNull final Player player,
|
||||
@NotNull final Block block,
|
||||
|
@ -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)) {
|
||||
|
@ -14,9 +14,6 @@ public class Kinetic extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onDamageWearingArmor(@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
|
@ -15,9 +15,6 @@ public class Leeching extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -18,9 +18,6 @@ public class Lesion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onTridentDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -19,9 +19,6 @@ public class Levitate extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -18,9 +18,6 @@ public class LiquidShot extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -26,9 +26,6 @@ public class Lumberjack extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onBlockBreak(@NotNull final Player player,
|
||||
@NotNull final Block block,
|
||||
|
@ -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();
|
||||
|
@ -18,9 +18,6 @@ public class Marking extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -15,9 +15,6 @@ public class NetherInfusion extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onMeleeAttack(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -16,9 +16,6 @@ public class Netheric extends EcoEnchant {
|
||||
);
|
||||
}
|
||||
|
||||
// START OF LISTENERS
|
||||
|
||||
|
||||
@Override
|
||||
public void onArrowDamage(@NotNull final LivingEntity attacker,
|
||||
@NotNull final LivingEntity victim,
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user