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/EntitySnowball.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/EntitySnowball.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySnowball.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySnowball.java b/src/main/java/net/minecraft/server/EntitySnowball.java index 4e479d53..700cac8b 100644 --- a/src/main/java/net/minecraft/server/EntitySnowball.java +++ b/src/main/java/net/minecraft/server/EntitySnowball.java @@ -34,6 +34,10 @@ public class EntitySnowball extends Entity { a = 0; am = 0; a(0.25F, 0.25F); + //CraftBukkit start + CraftServer server = ((WorldServer) this.l).getServer(); + this.bukkitEntity = new CraftSnowball(server, this); + //CraftBukkit end } protected void a() {} |