From 46b4fd6bd742a048bcac4bde00b95ed08fd29963 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sun, 20 Jun 2021 14:12:53 +0200 Subject: [PATCH] Fix potential memory leak --- .../holographicdisplays/nms/v1_10_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_10_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_10_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_11_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_11_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_11_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_12_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_12_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_12_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_13_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_13_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_13_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_13_R2/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_13_R2/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_13_R2/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_14_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_14_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_14_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_15_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_15_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_15_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_16_R1/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_16_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_16_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_16_R2/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_16_R2/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_16_R2/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_16_R3/CraftNMSArmorStand.java | 2 ++ .../holographicdisplays/nms/v1_16_R3/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_16_R3/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_8_R2/CraftNMSArmorStand.java | 2 ++ .../filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_8_R2/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_8_R3/CraftNMSArmorStand.java | 2 ++ .../filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_8_R3/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_9_R1/CraftNMSArmorStand.java | 2 ++ .../filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_9_R1/CraftNMSSlime.java | 2 ++ .../holographicdisplays/nms/v1_9_R2/CraftNMSArmorStand.java | 2 ++ .../filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSItem.java | 2 ++ .../holographicdisplays/nms/v1_9_R2/CraftNMSSlime.java | 2 ++ 42 files changed, 84 insertions(+) diff --git a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSArmorStand.java b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSArmorStand.java index bcd076c1..56b90f71 100644 --- a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSArmorStand.java +++ b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_10_R1.CraftServer; import org.bukkit.craftbukkit.v1_10_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -73,6 +74,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSItem.java b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSItem.java index a2c6917d..72a36b1a 100644 --- a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSItem.java +++ b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_10_R1.CraftServer; import org.bukkit.craftbukkit.v1_10_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSSlime.java b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSSlime.java index 33c244fc..9af604c2 100644 --- a/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSSlime.java +++ b/nms/v1_10_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_10_R1/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_10_R1.CraftServer; import org.bukkit.craftbukkit.v1_10_R1.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -53,6 +54,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSArmorStand.java b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSArmorStand.java index 9c1a64ab..34325f73 100644 --- a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSArmorStand.java +++ b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_11_R1.CraftServer; import org.bukkit.craftbukkit.v1_11_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -73,6 +74,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSItem.java b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSItem.java index 9fff80fa..b9c56ad1 100644 --- a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSItem.java +++ b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_11_R1.CraftServer; import org.bukkit.craftbukkit.v1_11_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSSlime.java b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSSlime.java index cc5c1216..3b5d7987 100644 --- a/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSSlime.java +++ b/nms/v1_11_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_11_R1/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_11_R1.CraftServer; import org.bukkit.craftbukkit.v1_11_R1.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -53,6 +54,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSArmorStand.java b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSArmorStand.java index 6cffc065..8d09f016 100644 --- a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSArmorStand.java +++ b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_12_R1.CraftServer; import org.bukkit.craftbukkit.v1_12_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSItem.java b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSItem.java index 77d6405d..e868f8ad 100644 --- a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSItem.java +++ b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_12_R1.CraftServer; import org.bukkit.craftbukkit.v1_12_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSSlime.java b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSSlime.java index 8fbea209..e585b088 100644 --- a/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSSlime.java +++ b/nms/v1_12_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_12_R1/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_12_R1.CraftServer; import org.bukkit.craftbukkit.v1_12_R1.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -53,6 +54,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSArmorStand.java b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSArmorStand.java index e5766bde..861d93d8 100644 --- a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSArmorStand.java +++ b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_13_R1.CraftServer; import org.bukkit.craftbukkit.v1_13_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -75,6 +76,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSItem.java b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSItem.java index e8a1f719..c63265b0 100644 --- a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSItem.java +++ b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_13_R1.CraftServer; import org.bukkit.craftbukkit.v1_13_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSSlime.java b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSSlime.java index 41f4e0e3..c3cab8c4 100644 --- a/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSSlime.java +++ b/nms/v1_13_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R1/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_13_R1.CraftServer; import org.bukkit.craftbukkit.v1_13_R1.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -55,6 +56,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSArmorStand.java b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSArmorStand.java index 4435a818..0bbf65a3 100644 --- a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSArmorStand.java +++ b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_13_R2.CraftServer; import org.bukkit.craftbukkit.v1_13_R2.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -75,6 +76,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSItem.java b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSItem.java index c7c54b44..fd7a62a9 100644 --- a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSItem.java +++ b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_13_R2.CraftServer; import org.bukkit.craftbukkit.v1_13_R2.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSSlime.java b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSSlime.java index 605cf074..f5360bbe 100644 --- a/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSSlime.java +++ b/nms/v1_13_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_13_R2/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_13_R2.CraftServer; import org.bukkit.craftbukkit.v1_13_R2.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -56,6 +57,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSArmorStand.java b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSArmorStand.java index 9503d4fc..c8fce26f 100644 --- a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSArmorStand.java +++ b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_14_R1.CraftServer; import org.bukkit.craftbukkit.v1_14_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSItem.java b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSItem.java index e515b858..1b1b98eb 100644 --- a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSItem.java +++ b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_14_R1.CraftServer; import org.bukkit.craftbukkit.v1_14_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -44,6 +45,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSSlime.java b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSSlime.java index fed3f140..d1d5b952 100644 --- a/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSSlime.java +++ b/nms/v1_14_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_14_R1/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_14_R1.CraftServer; import org.bukkit.craftbukkit.v1_14_R1.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -64,6 +65,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSArmorStand.java b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSArmorStand.java index c39111c4..a00346a5 100644 --- a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSArmorStand.java +++ b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_15_R1.CraftServer; import org.bukkit.craftbukkit.v1_15_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSItem.java b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSItem.java index 9e440f1c..3677d7e1 100644 --- a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSItem.java +++ b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_15_R1.CraftServer; import org.bukkit.craftbukkit.v1_15_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -44,6 +45,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSSlime.java b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSSlime.java index 9d0e43e3..18a0bb36 100644 --- a/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSSlime.java +++ b/nms/v1_15_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_15_R1/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_15_R1.CraftServer; import org.bukkit.craftbukkit.v1_15_R1.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -64,6 +65,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSArmorStand.java b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSArmorStand.java index 8f63552a..bf4b42ae 100644 --- a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSArmorStand.java +++ b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R1.CraftServer; import org.bukkit.craftbukkit.v1_16_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSItem.java b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSItem.java index d5784841..8c6f1b09 100644 --- a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSItem.java +++ b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R1.CraftServer; import org.bukkit.craftbukkit.v1_16_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -44,6 +45,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSSlime.java b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSSlime.java index ef6360ba..7a007244 100644 --- a/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSSlime.java +++ b/nms/v1_16_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R1/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_16_R1.CraftServer; import org.bukkit.craftbukkit.v1_16_R1.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -64,6 +65,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSArmorStand.java b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSArmorStand.java index 9a71f90e..b044733d 100644 --- a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSArmorStand.java +++ b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R2.CraftServer; import org.bukkit.craftbukkit.v1_16_R2.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSItem.java b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSItem.java index 0e1c2cee..b3c3541e 100644 --- a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSItem.java +++ b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R2.CraftServer; import org.bukkit.craftbukkit.v1_16_R2.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -44,6 +45,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSSlime.java b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSSlime.java index d80e7745..a16bc441 100644 --- a/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSSlime.java +++ b/nms/v1_16_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R2/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_16_R2.CraftServer; import org.bukkit.craftbukkit.v1_16_R2.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -64,6 +65,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSArmorStand.java b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSArmorStand.java index dfa081ae..11961301 100644 --- a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSArmorStand.java +++ b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R3.CraftServer; import org.bukkit.craftbukkit.v1_16_R3.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -74,6 +75,7 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSItem.java b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSItem.java index aeef9573..d674df2e 100644 --- a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSItem.java +++ b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_16_R3.CraftServer; import org.bukkit.craftbukkit.v1_16_R3.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -44,6 +45,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSSlime.java b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSSlime.java index c2fe5ab3..cc7a28c6 100644 --- a/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSSlime.java +++ b/nms/v1_16_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_16_R3/CraftNMSSlime.java @@ -11,6 +11,7 @@ import org.bukkit.craftbukkit.v1_16_R3.CraftServer; import org.bukkit.craftbukkit.v1_16_R3.entity.CraftSlime; import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.loot.LootTable; import org.bukkit.potion.PotionEffect; @@ -64,6 +65,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} @Override public void setGlowing(boolean flag) {} @Override public void setGravity(boolean gravity) {} @Override public void setInvulnerable(boolean flag) {} diff --git a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSArmorStand.java b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSArmorStand.java index c48535d7..a2bb087f 100644 --- a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSArmorStand.java +++ b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R2.CraftServer; import org.bukkit.craftbukkit.v1_8_R2.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -68,5 +69,6 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} } diff --git a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSItem.java b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSItem.java index c39c4f3c..c50e0be8 100644 --- a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSItem.java +++ b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R2.CraftServer; import org.bukkit.craftbukkit.v1_8_R2.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Item @Override public void setItemStack(ItemStack stack) {} diff --git a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSSlime.java b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSSlime.java index d3bb9027..4a5d9d5c 100644 --- a/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSSlime.java +++ b/nms/v1_8_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R2/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R2.CraftServer; import org.bukkit.craftbukkit.v1_8_R2.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -48,6 +49,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Slime @Override public void setSize(int size) {} diff --git a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSArmorStand.java b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSArmorStand.java index 0222f131..7dfe6f92 100644 --- a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSArmorStand.java +++ b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R3.CraftServer; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -68,5 +69,6 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} } diff --git a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSItem.java b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSItem.java index d31ce42a..14ea237d 100644 --- a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSItem.java +++ b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R3.CraftServer; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Item @Override public void setItemStack(ItemStack stack) {} diff --git a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSSlime.java b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSSlime.java index 8d4487c1..865cf28b 100644 --- a/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSSlime.java +++ b/nms/v1_8_r3/src/main/java/me/filoghost/holographicdisplays/nms/v1_8_R3/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_8_R3.CraftServer; import org.bukkit.craftbukkit.v1_8_R3.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -48,6 +49,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Slime @Override public void setSize(int size) {} diff --git a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSArmorStand.java b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSArmorStand.java index b17a05d8..c3fac4b6 100644 --- a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSArmorStand.java +++ b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R1.CraftServer; import org.bukkit.craftbukkit.v1_9_R1.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -69,5 +70,6 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} } diff --git a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSItem.java b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSItem.java index cff87a20..e0c576a7 100644 --- a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSItem.java +++ b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R1.CraftServer; import org.bukkit.craftbukkit.v1_9_R1.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Item @Override public void setItemStack(ItemStack stack) {} diff --git a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSSlime.java b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSSlime.java index 1891c0b0..21297a21 100644 --- a/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSSlime.java +++ b/nms/v1_9_r1/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R1/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R1.CraftServer; import org.bukkit.craftbukkit.v1_9_R1.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -48,6 +49,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Slime @Override public void setSize(int size) {} diff --git a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSArmorStand.java b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSArmorStand.java index 5eacce6e..89cab1ec 100644 --- a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSArmorStand.java +++ b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSArmorStand.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R2.CraftServer; import org.bukkit.craftbukkit.v1_9_R2.entity.CraftArmorStand; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -69,5 +70,6 @@ public class CraftNMSArmorStand extends CraftArmorStand { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} } diff --git a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSItem.java b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSItem.java index 874fa88f..fba2e8d3 100644 --- a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSItem.java +++ b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSItem.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R2.CraftServer; import org.bukkit.craftbukkit.v1_9_R2.entity.CraftItem; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; @@ -40,6 +41,7 @@ public class CraftNMSItem extends CraftItem { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Item @Override public void setItemStack(ItemStack stack) {} diff --git a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSSlime.java b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSSlime.java index 06fd0e08..260e67bb 100644 --- a/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSSlime.java +++ b/nms/v1_9_r2/src/main/java/me/filoghost/holographicdisplays/nms/v1_9_R2/CraftNMSSlime.java @@ -10,6 +10,7 @@ import org.bukkit.Location; import org.bukkit.craftbukkit.v1_9_R2.CraftServer; import org.bukkit.craftbukkit.v1_9_R2.entity.CraftSlime; import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.potion.PotionEffect; import org.bukkit.util.Vector; @@ -48,6 +49,7 @@ public class CraftNMSSlime extends CraftSlime { @Override public void playEffect(EntityEffect effect) {} @Override public void setCustomName(String name) {} @Override public void setCustomNameVisible(boolean flag) {} + @Override public void setLastDamageCause(EntityDamageEvent event) {} // Methods from Slime @Override public void setSize(int size) {}