Implemented new 1.2 entities - this fixes BUKKIT-872 and BUKKIT-885

This commit is contained in:
Nathan Adams
2012-03-01 18:02:16 +00:00
parent 5108569383
commit f1f9802ded
9 changed files with 213 additions and 100 deletions

View File

@@ -0,0 +1,27 @@
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityIronGolem;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.IronGolem;
public class CraftIronGolem extends CraftGolem implements IronGolem {
public CraftIronGolem(CraftServer server, EntityIronGolem entity) {
super(server, entity);
}
@Override
public EntityIronGolem getHandle() {
return (EntityIronGolem) entity;
}
@Override
public String toString() {
return "CraftIronGolem";
}
@Override
public EntityType getType() {
return EntityType.IRON_GOLEM;
}
}