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
2011-01-17 16:17:16 +08:00
committed by Dinner Bone
parent 431f2f62cf
commit 6a3b096fb8
24 changed files with 154 additions and 13 deletions

View File

@@ -2,6 +2,9 @@ package net.minecraft.server;
import java.util.Random;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.entity.CraftSquid;
public class EntitySquid extends EntityWaterMob {
public float a;
@@ -38,6 +41,10 @@ public class EntitySquid extends EntityWaterMob {
aP = "/mob/squid.png";
a(0.95F, 0.95F);
ap = (1.0F / (W.nextFloat() + 1.0F)) * 0.2F;
//CraftBukkit start
CraftServer server = ((WorldServer) this.l).getServer();
this.bukkitEntity = new CraftSquid(server, this);
//CraftBukkit end
}
public void a(NBTTagCompound nbttagcompound) {