diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-01-17 07:03:15 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-01-18 00:13:31 +0800 |
commit | 2de3e2e7e406baaaddd5c71fa283d81dacabf815 (patch) | |
tree | 64899352c4cd210a5d2edb9dec1de4c4cc4dbe79 /src/main/java/net/minecraft/server/EntityEgg.java | |
parent | 95cb03b50e5ee99710f2a58c29ff0d140ae51f85 (diff) | |
download | craftbukkit-2de3e2e7e406baaaddd5c71fa283d81dacabf815.tar craftbukkit-2de3e2e7e406baaaddd5c71fa283d81dacabf815.tar.gz craftbukkit-2de3e2e7e406baaaddd5c71fa283d81dacabf815.tar.lz craftbukkit-2de3e2e7e406baaaddd5c71fa283d81dacabf815.tar.xz craftbukkit-2de3e2e7e406baaaddd5c71fa283d81dacabf815.zip |
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.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityEgg.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEgg.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEgg.java b/src/main/java/net/minecraft/server/EntityEgg.java index ed244d26..75ebe9bb 100644 --- a/src/main/java/net/minecraft/server/EntityEgg.java +++ b/src/main/java/net/minecraft/server/EntityEgg.java @@ -5,6 +5,7 @@ import java.util.Random; // CraftBukkit start import org.bukkit.entity.MobType; +import org.bukkit.craftbukkit.entity.CraftArrow; import org.bukkit.craftbukkit.entity.CraftEgg; import org.bukkit.craftbukkit.entity.CraftEntity; import org.bukkit.craftbukkit.entity.CraftLivingEntity; @@ -38,6 +39,10 @@ public class EntityEgg extends Entity { a = 0; am = 0; a(0.25F, 0.25F); + //CraftBukkit start + CraftServer server = ((WorldServer) this.l).getServer(); + this.bukkitEntity = new CraftEgg(server, this); + //CraftBukkit end } protected void a() {} |