mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-16 04:31:22 +01:00
Removed redundant Deprecation warnings
This commit is contained in:
parent
129e3df582
commit
e0cd90fb4c
@ -3,8 +3,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class CloudsArtifact extends Artifact {
|
||||
public CloudsArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class DamageArtifact extends Artifact {
|
||||
public DamageArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class DragonArtifact extends Artifact {
|
||||
public DragonArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class DustArtifact extends Artifact {
|
||||
public DustArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EmeraldArtifact extends Artifact {
|
||||
public EmeraldArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EnchantmentArtifact extends Artifact {
|
||||
public EnchantmentArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EndArtifact extends Artifact {
|
||||
public EndArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FireArtifact extends Artifact {
|
||||
public FireArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HeartArtifact extends Artifact {
|
||||
public HeartArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HoneyArtifact extends Artifact {
|
||||
public HoneyArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class InkArtifact extends Artifact {
|
||||
public InkArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class LavaArtifact extends Artifact {
|
||||
public LavaArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MagicArtifact extends Artifact {
|
||||
public MagicArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MagmaArtifact extends Artifact {
|
||||
public MagmaArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MusicArtifact extends Artifact {
|
||||
public MusicArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class NetherArtifact extends Artifact {
|
||||
public NetherArtifact() {
|
||||
super(
|
||||
|
@ -3,8 +3,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class RedstoneArtifact extends Artifact {
|
||||
public RedstoneArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SmokeArtifact extends Artifact {
|
||||
public SmokeArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SnowArtifact extends Artifact {
|
||||
public SnowArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SparkleArtifact extends Artifact {
|
||||
public SparkleArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class TotemArtifact extends Artifact {
|
||||
public TotemArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class WaterArtifact extends Artifact {
|
||||
public WaterArtifact() {
|
||||
super(
|
||||
|
@ -2,8 +2,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class WitchArtifact extends Artifact {
|
||||
public WitchArtifact() {
|
||||
super(
|
||||
|
@ -3,8 +3,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
import com.willfp.ecoenchants.enchantments.Artifact;
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class ZapArtifact extends Artifact {
|
||||
public ZapArtifact() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.BlockDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class BreaklessnessCurse extends EcoEnchant {
|
||||
public BreaklessnessCurse() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Monster;
|
||||
import org.bukkit.entity.PigZombie;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class CallingCurse extends EcoEnchant implements EcoRunnable {
|
||||
public CallingCurse() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.Repairable;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class DecayCurse extends EcoEnchant implements EcoRunnable {
|
||||
public DecayCurse() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerItemDamageEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FragilityCurse extends EcoEnchant {
|
||||
public FragilityCurse() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.Monster;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HarmlessnessCurse extends EcoEnchant {
|
||||
public HarmlessnessCurse() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.FoodLevelChangeEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HungerCurse extends EcoEnchant {
|
||||
public HungerCurse() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MisfortuneCurse extends EcoEnchant {
|
||||
public MisfortuneCurse() {
|
||||
super(
|
||||
|
@ -3,8 +3,6 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.curse;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchant;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
|
||||
import com.willfp.ecoenchants.nms.Target;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class PermanenceCurse extends EcoEnchant {
|
||||
public PermanenceCurse() {
|
||||
super(
|
||||
|
@ -15,8 +15,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Abrasion extends EcoEnchant {
|
||||
public Abrasion() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.entity.ProjectileLaunchEvent;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Aerial extends EcoEnchant {
|
||||
public Aerial() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.entity.Trident;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Aquatic extends EcoEnchant {
|
||||
public Aquatic() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Arcanic extends EcoEnchant {
|
||||
public Arcanic() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class BlastMining extends EcoEnchant {
|
||||
public BlastMining() {
|
||||
super(
|
||||
|
@ -17,8 +17,6 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Bleed extends EcoEnchant {
|
||||
public Bleed() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.ElderGuardian;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class BossHunter extends EcoEnchant {
|
||||
public BossHunter() {
|
||||
super(
|
||||
|
@ -16,8 +16,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityShootBowEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Buckshot extends EcoEnchant {
|
||||
public Buckshot() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.Monster;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Butchering extends EcoEnchant {
|
||||
public Butchering() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Cerebral extends EcoEnchant {
|
||||
public Cerebral() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Chopless extends EcoEnchant {
|
||||
public Chopless() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Cleave extends EcoEnchant {
|
||||
public Cleave() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.ProjectileLaunchEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Collateral extends EcoEnchant {
|
||||
public Collateral() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Trident;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Cranial extends EcoEnchant {
|
||||
public Cranial() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Criticals extends EcoEnchant {
|
||||
public Criticals() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Deflection extends EcoEnchant {
|
||||
public Deflection() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.Creeper;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Defusion extends EcoEnchant {
|
||||
public Defusion() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerItemHeldEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Dexterous extends EcoEnchant {
|
||||
public Dexterous() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Disappear extends EcoEnchant {
|
||||
public Disappear() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Diverse extends EcoEnchant {
|
||||
public Diverse() {
|
||||
super(
|
||||
|
@ -17,8 +17,6 @@ import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Drill extends EcoEnchant {
|
||||
public Drill() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Dullness extends EcoEnchant {
|
||||
public Dullness() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Electroshock extends EcoEnchant {
|
||||
public Electroshock() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EnderSlayer extends EcoEnchant {
|
||||
public EnderSlayer() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Evasion extends EcoEnchant {
|
||||
public Evasion() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Extinguishing extends EcoEnchant {
|
||||
public Extinguishing() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.entity.Trident;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Extract extends EcoEnchant {
|
||||
public Extract() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Famine extends EcoEnchant {
|
||||
public Famine() {
|
||||
super(
|
||||
|
@ -3,6 +3,7 @@ package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchant;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchantBuilder;
|
||||
import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
||||
import com.willfp.ecoenchants.integrations.antigrief.AntigriefManager;
|
||||
import com.willfp.ecoenchants.nms.Target;
|
||||
import com.willfp.ecoenchants.util.*;
|
||||
import org.bukkit.Location;
|
||||
@ -14,8 +15,6 @@ import org.bukkit.event.block.Action;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Farmhand extends EcoEnchant {
|
||||
public Farmhand() {
|
||||
super(
|
||||
@ -45,7 +44,7 @@ public class Farmhand extends EcoEnchant {
|
||||
if (!(Target.Applicable.HOE.getMaterials().contains(item.getType())))
|
||||
return;
|
||||
|
||||
if(!AntiGrief.canBreakBlock(player, event.getClickedBlock())) return;
|
||||
if(!AntigriefManager.canBreakBlock(player, event.getClickedBlock())) return;
|
||||
|
||||
event.getClickedBlock().setType(Material.FARMLAND);
|
||||
int initial = this.getConfig().getInt(EcoEnchants.CONFIG_LOCATION + "initial-radius");
|
||||
@ -68,7 +67,7 @@ public class Farmhand extends EcoEnchant {
|
||||
Location loc = event.getClickedBlock().getLocation().add(vec);
|
||||
Block block = event.getClickedBlock().getWorld().getBlockAt(loc);
|
||||
|
||||
if(!AntiGrief.canBreakBlock(player, block)) continue;
|
||||
if(!AntigriefManager.canBreakBlock(player, block)) continue;
|
||||
|
||||
if (!(block.getType().equals(Material.DIRT) || block.getType().equals(Material.GRASS_BLOCK)))
|
||||
continue;
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Finishing extends EcoEnchant {
|
||||
public Finishing() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FireAffinity extends EcoEnchant {
|
||||
public FireAffinity() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class FirstStrike extends EcoEnchant {
|
||||
public FirstStrike() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Flinch extends EcoEnchant {
|
||||
public Flinch() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.task.EcoRunnable;
|
||||
import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Monster;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Forcefield extends EcoEnchant implements EcoRunnable {
|
||||
public Forcefield() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Freerunner extends EcoEnchant {
|
||||
public Freerunner() {
|
||||
super(
|
||||
|
@ -14,8 +14,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Frozen extends EcoEnchant {
|
||||
public Frozen() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.entity.*;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Fury extends EcoEnchant {
|
||||
public Fury() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Goliath extends EcoEnchant {
|
||||
public Goliath() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Grapple extends EcoEnchant {
|
||||
public Grapple() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.Action;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class GreenThumb extends EcoEnchant {
|
||||
public GreenThumb() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.inventory.meta.Damageable;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Grit extends EcoEnchant {
|
||||
public Grit() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Hook extends EcoEnchant {
|
||||
public Hook() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Horde extends EcoEnchant {
|
||||
public Horde() {
|
||||
super(
|
||||
|
@ -15,8 +15,6 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class IceShot extends EcoEnchant {
|
||||
public IceShot() {
|
||||
super(
|
||||
|
@ -15,8 +15,6 @@ import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.ProjectileHitEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Ignite extends EcoEnchant {
|
||||
public Ignite() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class IllusionAspect extends EcoEnchant {
|
||||
public IllusionAspect() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Incandescence extends EcoEnchant {
|
||||
public Incandescence() {
|
||||
super(
|
||||
|
@ -24,8 +24,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class InfernalTouch extends EcoEnchant {
|
||||
public InfernalTouch() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.entity.ProjectileLaunchEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Inferno extends EcoEnchant {
|
||||
public Inferno() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import com.willfp.ecoenchants.util.Rand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.BlockDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Instantaneous extends EcoEnchant {
|
||||
public Instantaneous() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Invigoration extends EcoEnchant {
|
||||
public Invigoration() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Kinetic extends EcoEnchant {
|
||||
public Kinetic() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.Action;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Launch extends EcoEnchant {
|
||||
public Launch() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Leeching extends EcoEnchant {
|
||||
public Leeching() {
|
||||
super(
|
||||
|
@ -15,8 +15,6 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Levitate extends EcoEnchant {
|
||||
public Levitate() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.*;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class LiquidShot extends EcoEnchant {
|
||||
public LiquidShot() {
|
||||
super(
|
||||
|
@ -20,8 +20,6 @@ import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MagmaWalker extends EcoEnchant {
|
||||
public MagmaWalker() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.ExperienceOrb;
|
||||
import org.bukkit.entity.Item;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Magnetic extends EcoEnchant implements EcoRunnable {
|
||||
public Magnetic() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.ProjectileLaunchEvent;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Marksman extends EcoEnchant {
|
||||
public Marksman() {
|
||||
super(
|
||||
|
@ -13,8 +13,6 @@ import org.bukkit.entity.WitherSkeleton;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDeathEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Necrotic extends EcoEnchant {
|
||||
public Necrotic() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class NetherInfusion extends EcoEnchant {
|
||||
public NetherInfusion() {
|
||||
super(
|
||||
|
@ -9,8 +9,6 @@ import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Nocturnal extends EcoEnchant {
|
||||
public Nocturnal() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Optics extends EcoEnchant {
|
||||
public Optics() {
|
||||
super(
|
||||
|
@ -11,8 +11,6 @@ import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Oxygenate extends EcoEnchant {
|
||||
public Oxygenate() {
|
||||
super(
|
||||
|
@ -10,8 +10,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Paladin extends EcoEnchant {
|
||||
public Paladin() {
|
||||
super(
|
||||
|
@ -12,8 +12,6 @@ import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Parasitic extends EcoEnchant {
|
||||
public Parasitic() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import com.willfp.ecoenchants.util.HasEnchant;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Parry extends EcoEnchant {
|
||||
public Parry() {
|
||||
super(
|
||||
|
@ -8,8 +8,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Tameable;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Protector extends EcoEnchant {
|
||||
public Protector() {
|
||||
super(
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user