Make EnderDragon extend/implement Mob

This commit is contained in:
md_5 2021-12-30 09:35:50 +11:00
parent 633ac8b31c
commit eea8d55965
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
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);