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 authored and Dinner Bone committed 2011-01-18 00:13:31 +08:00
1 parent 95cb03b50e
commit 2de3e2e7e4
13 files changed
+72 -4

No files matched your search

@@ -16,6 +16,10 @@ public class EntitySkeleton extends EntityMobs {
public EntitySkeleton(World world) {
super(world);
aP = "/mob/skeleton.png";
//CraftBukkit start
CraftServer server = ((WorldServer) this.l).getServer();
this.bukkitEntity = new CraftLivingEntity(server, this);
//CraftBukkit end
}
protected String e() {