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

@@ -3,9 +3,7 @@ package net.minecraft.server;
import java.util.List;
import java.util.Random;
// CraftBukkit start
import org.bukkit.craftbukkit.entity.CraftEntity;
import org.bukkit.craftbukkit.entity.CraftLivingEntity;
import org.bukkit.craftbukkit.entity.CraftHumanEntity;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
@@ -53,7 +51,7 @@ public abstract class EntityPlayer extends EntityLiving {
aP = "/mob/char.png";
//CraftBukkit start
CraftServer server = ((WorldServer) this.l).getServer();
this.bukkitEntity = new CraftLivingEntity(server, this);
this.bukkitEntity = new CraftHumanEntity(server, this);
//CraftBukkit end
}