created getBukkitEntity() in minecraft.server.Entity

This returns a protected field that is set in the constructor of each
minecraft.server.Entity to a new CraftEntity of some specific type.
This commit is contained in:
Andrew Ardill
2011-01-17 07:03:15 +08:00
committed by Dinner Bone
parent 95cb03b50e
commit 2de3e2e7e4
13 changed files with 72 additions and 4 deletions

View File

@@ -16,6 +16,10 @@ public class EntityZombie extends EntityMobs {
aP = "/mob/zombie.png";
bC = 0.5F;
c = 5;
//CraftBukkit start
CraftServer server = ((WorldServer) this.l).getServer();
this.bukkitEntity = new CraftLivingEntity(server, this);
//CraftBukkit end
}
public void o() {