Reworked getEntity; Hi instanceof, bay 16 classes

This commit is contained in:
Erik Broes
2011-01-30 16:15:17 +01:00
parent 75ba9a0f25
commit b2a0c5a2ae
32 changed files with 85 additions and 1797 deletions

9
src/main/java/net/minecraft/server/EntityFish.java Normal file → Executable file
View File

@@ -3,7 +3,6 @@ package net.minecraft.server;
import java.util.List;
// CraftBukkit start
import org.bukkit.craftbukkit.entity.CraftFish;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.event.entity.EntityDamageByProjectileEvent;
import org.bukkit.event.entity.EntityDamageEvent;
@@ -33,18 +32,12 @@ public class EntityFish extends Entity {
public EntityFish(World world) {
super(world);
this.a(0.25F, 0.25F);
//CraftBukkit start
CraftServer server = ((WorldServer) this.world).getServer();
this.bukkitEntity = new CraftFish(server, this);
//CraftBukkit end
}
protected void a() {}
public EntityFish(World world, EntityHuman entityhuman) {
this(world); // CraftBukkit super->this so we assign the entity
super(world);
this.b = entityhuman;
this.b.hookedFish = this;
this.a(0.25F, 0.25F);