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/EntityBoat.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/EntityBoat.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityBoat.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityBoat.java b/src/main/java/net/minecraft/server/EntityBoat.java index 3c01822d..24ae4606 100644 --- a/src/main/java/net/minecraft/server/EntityBoat.java +++ b/src/main/java/net/minecraft/server/EntityBoat.java @@ -5,6 +5,7 @@ import java.util.Random; // CraftBukkit start import org.bukkit.Location; +import org.bukkit.craftbukkit.entity.CraftArrow; import org.bukkit.craftbukkit.entity.CraftBoat; import org.bukkit.craftbukkit.entity.CraftEntity; import org.bukkit.craftbukkit.CraftMappable; @@ -48,6 +49,10 @@ public class EntityBoat extends Entity implements CraftMappable { // CraftBukkit M = false; handleCreation(world); // CraftBukkit + //CraftBukkit start + CraftServer server = ((WorldServer) this.l).getServer(); + this.bukkitEntity = new CraftBoat(server, this); + //CraftBukkit end } protected void a() {} |