summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityArrow.java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-01-30 16:15:17 +0100
committerErik Broes <erikbroes@grum.nl>2011-01-30 16:15:24 +0100
commitb2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1 (patch)
tree6fd5368cbcc0f2b922570827034d3f57a994b66f /src/main/java/net/minecraft/server/EntityArrow.java
parent75ba9a0f2570798d9012e4f4377d903cd2904785 (diff)
downloadcraftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar
craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.gz
craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.lz
craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.xz
craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.zip
Reworked getEntity; Hi instanceof, bay 16 classes
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityArrow.java')
-rwxr-xr-x[-rw-r--r--]src/main/java/net/minecraft/server/EntityArrow.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java
index d2164c65..fa85935b 100644..100755
--- a/src/main/java/net/minecraft/server/EntityArrow.java
+++ b/src/main/java/net/minecraft/server/EntityArrow.java
@@ -25,24 +25,17 @@ public class EntityArrow extends Entity {
public EntityArrow(World world) {
super(world);
this.a(0.5F, 0.5F);
-
- // CraftBukkit start
- CraftServer server = ((WorldServer) this.world).getServer();
- this.bukkitEntity = new CraftArrow(server, this);
- // CraftBukkit end
}
public EntityArrow(World world, double d0, double d1, double d2) {
- this(world); // CraftBukkit super->this so we assign the entity
-
+ super(world);
this.a(0.5F, 0.5F);
this.a(d0, d1, d2);
this.height = 0.0F;
}
public EntityArrow(World world, EntityLiving entityliving) {
- this(world); // CraftBukkit super->this so we assign the entity
-
+ super(world);
this.b = entityliving;
this.a(0.5F, 0.5F);
this.c(entityliving.locX, entityliving.locY + (double) entityliving.w(), entityliving.locZ, entityliving.yaw, entityliving.pitch);