diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-01-17 16:17:16 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-01-18 00:13:33 +0800 |
commit | 6a3b096fb855298a70c9492d0f564bc71bb6a823 (patch) | |
tree | bc7e3a402acccb34255e86f5d4105790af35bf36 /src/main/java/net/minecraft/server/EntityLiving.java | |
parent | 431f2f62cfbee8dd9a6ff5dce858bb09e5b70e31 (diff) | |
download | craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.gz craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.lz craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.tar.xz craftbukkit-6a3b096fb855298a70c9492d0f564bc71bb6a823.zip |
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().
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityLiving.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityLiving.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java index 76cc6b5c..f9e80257 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -3,6 +3,10 @@ package net.minecraft.server; import java.util.List; import java.util.Random; +import org.bukkit.craftbukkit.CraftServer; +import org.bukkit.craftbukkit.entity.CraftAnimals; +import org.bukkit.craftbukkit.entity.CraftLivingEntity; + public abstract class EntityLiving extends Entity { public int aF; @@ -93,6 +97,10 @@ public abstract class EntityLiving extends Entity { aG = (float) Math.random() * 12398F; v = (float) (Math.random() * 3.1415927410125732D * 2D); S = 0.5F; + //CraftBukkit start + CraftServer server = ((WorldServer) this.l).getServer(); + this.bukkitEntity = new CraftLivingEntity(server, this); + //CraftBukkit end } protected void a() {} |