Add setSheared() to Sheep and setSize() to Slimes.

By: Celtic Minstrel <celtic.minstrel.ca@>
This commit is contained in:
Bukkit/Spigot 2011-03-18 17:12:00 -04:00
parent 9c5c4622e2
commit f7b70eb07b
2 changed files with 20 additions and 2 deletions

View file

@ -11,5 +11,14 @@ import org.bukkit.material.Colorable;
*
*/
public interface Sheep extends Animals, Colorable {
/**
* @author Celtic Minstrel
* @return Whether the sheep is sheared.
*/
public boolean isSheared();
/**
* @author Celtic Minstrel
* @param flag Whether to shear the sheep
*/
public void setSheared(boolean flag);
}

View file

@ -10,5 +10,14 @@ package org.bukkit.entity;
*
*/
public interface Slime extends LivingEntity {
/**
* @author Celtic Minstrel
* @return The size of the slime
*/
public int getSize();
/**
* @author Celtic Minstrel
* @param sz The new size of the slime.
*/
public void setSize(int sz);
}