Make EnderDragon extend/implement Mob

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-12-30 09:35:50 +11:00
parent 5a3105919b
commit 1eaf82a627
2 changed files with 1 additions and 22 deletions

View file

@ -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";
}
}

View file

@ -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);