Addition of all Entity classes.

Each Entity creates a corresponding instance of a Craft Entity, to be
used whenever sending instances to an event handler with
getBukkitEntity().
This commit is contained in:
Andrew Ardill authored and Dinner Bone committed 2011-01-18 00:13:33 +08:00
1 parent 431f2f62cf
commit 6a3b096fb8
24 files changed
+154 -13

No files matched your search

@@ -2,6 +2,9 @@ package net.minecraft.server;
import java.util.Random;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.entity.CraftCreature;
public class EntityCreature extends EntityLiving {
private PathEntity a;
@@ -11,6 +14,10 @@ public class EntityCreature extends EntityLiving {
public EntityCreature(World world) {
super(world);
e = false;
//CraftBukkit start
CraftServer server = ((WorldServer) this.l).getServer();
this.bukkitEntity = new CraftCreature(server, this);
//CraftBukkit end
}
protected void d() {