Add API for getting and setting Skeleton and Zombie types. Fixes BUKKIT-2818

By: James Clarke <jamesrtclarke@me.com>
This commit is contained in:
Bukkit/Spigot
2012-11-05 18:09:38 +00:00
parent 0a9f6c2cc2
commit e788e4799e
2 changed files with 84 additions and 2 deletions

View File

@@ -3,4 +3,32 @@ package org.bukkit.entity;
/**
* Represents a Zombie.
*/
public interface Zombie extends Monster {}
public interface Zombie extends Monster {
/**
* Gets whether the zombie is a baby
*
* @return Whether the zombie is a baby
*/
public boolean isBaby();
/**
* Sets whether the zombie is a baby
*
* @param flag Whether the zombie is a baby
*/
public void setBaby(boolean flag);
/**
* Gets whether the zombie is a villager
*
* @return Whether the zombie is a villager
*/
public boolean isVillager();
/**
* Sets whether the zombie is a villager
*
* @param flag Whether the zombie is a villager
*/
public void setVillager(boolean flag);
}