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:
committed by
Dinner Bone
parent
95cb03b50e
commit
2de3e2e7e4
@@ -51,6 +51,10 @@ public abstract class EntityPlayer extends EntityLiving {
|
||||
aR = 180F;
|
||||
Y = 20;
|
||||
aP = "/mob/char.png";
|
||||
//CraftBukkit start
|
||||
CraftServer server = ((WorldServer) this.l).getServer();
|
||||
this.bukkitEntity = new CraftLivingEntity(server, this);
|
||||
//CraftBukkit end
|
||||
}
|
||||
|
||||
public void b_() {
|
||||
|
||||
Reference in New Issue
Block a user