diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-01-30 16:15:17 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-01-30 16:15:24 +0100 |
commit | b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1 (patch) | |
tree | 6fd5368cbcc0f2b922570827034d3f57a994b66f /src/main/java/net/minecraft/server/EntitySnowball.java | |
parent | 75ba9a0f2570798d9012e4f4377d903cd2904785 (diff) | |
download | craftbukkit-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/EntitySnowball.java')
-rwxr-xr-x[-rw-r--r--] | src/main/java/net/minecraft/server/EntitySnowball.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySnowball.java b/src/main/java/net/minecraft/server/EntitySnowball.java index 7567fd0e..c47b5981 100644..100755 --- a/src/main/java/net/minecraft/server/EntitySnowball.java +++ b/src/main/java/net/minecraft/server/EntitySnowball.java @@ -4,7 +4,6 @@ import java.util.List; // CraftBukkit start import org.bukkit.craftbukkit.CraftServer; -import org.bukkit.craftbukkit.entity.CraftSnowball; import org.bukkit.event.entity.EntityDamageByProjectileEvent; import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent.DamageCause; @@ -25,18 +24,12 @@ public class EntitySnowball extends Entity { public EntitySnowball(World world) { super(world); this.a(0.25F, 0.25F); - - // CraftBukkit start - CraftServer server = ((WorldServer) this.world).getServer(); - this.bukkitEntity = new CraftSnowball(server, this); - // CraftBukkit end } protected void a() {} public EntitySnowball(World world, EntityLiving entityliving) { - this(world); // CraftBukkit super->this so we assign the entity - + super(world); this.ak = entityliving; this.a(0.25F, 0.25F); this.c(entityliving.locX, entityliving.locY + (double) entityliving.w(), entityliving.locZ, entityliving.yaw, entityliving.pitch); @@ -54,8 +47,7 @@ public class EntitySnowball extends Entity { } public EntitySnowball(World world, double d0, double d1, double d2) { - this(world); // CraftBukkit super->this so we assign the entity - + super(world); this.al = 0; this.a(0.25F, 0.25F); this.a(d0, d1, d2); |