mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
Make EnderDragon extend/implement Mob
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5a3105919b
commit
1eaf82a627
2 changed files with 1 additions and 22 deletions
|
@ -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";
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue