From 1eaf82a627aec07a05cfc8d68560bc3b2f3f3b95 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 30 Dec 2021 09:35:50 +1100 Subject: [PATCH] Make EnderDragon extend/implement Mob By: md_5 --- .../entity/CraftComplexLivingEntity.java | 21 ------------------- .../craftbukkit/entity/CraftEnderDragon.java | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexLivingEntity.java diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexLivingEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexLivingEntity.java deleted file mode 100644 index 3550eb81b6..0000000000 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexLivingEntity.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.bukkit.craftbukkit.entity; - -import net.minecraft.world.entity.EntityLiving; -import org.bukkit.craftbukkit.CraftServer; -import org.bukkit.entity.ComplexLivingEntity; - -public abstract class CraftComplexLivingEntity extends CraftLivingEntity implements ComplexLivingEntity { - public CraftComplexLivingEntity(CraftServer server, EntityLiving entity) { - super(server, entity); - } - - @Override - public EntityLiving getHandle() { - return (EntityLiving) entity; - } - - @Override - public String toString() { - return "CraftComplexLivingEntity"; - } -} diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderDragon.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderDragon.java index 7a8359b0bc..0ac107f0e3 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderDragon.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderDragon.java @@ -15,7 +15,7 @@ import org.bukkit.entity.EnderDragon; import org.bukkit.entity.EnderDragon.Phase; import org.bukkit.entity.EntityType; -public class CraftEnderDragon extends CraftComplexLivingEntity implements EnderDragon { +public class CraftEnderDragon extends CraftMob implements EnderDragon { public CraftEnderDragon(CraftServer server, EntityEnderDragon entity) { super(server, entity);