Implement API for Skeleton and Zombie types. Fixes BUKKIT-2818

This commit is contained in:
James Clarke
2012-11-05 18:09:40 +00:00
committed by Travis Watkins
parent dca54ff187
commit bd0868ae1e
3 changed files with 27 additions and 1 deletions

View File

@@ -25,4 +25,20 @@ public class CraftZombie extends CraftMonster implements Zombie {
public EntityType getType() {
return EntityType.ZOMBIE;
}
public boolean isBaby() {
return getHandle().isBaby();
}
public void setBaby(boolean flag) {
getHandle().setBaby(flag);
}
public boolean isVillager() {
return getHandle().isVillager();
}
public void setVillager(boolean flag) {
getHandle().setVillager(flag);
}
}