Add setSheared() to Sheep and setSize() to Slimes.
This commit is contained in:
parent
04cddaa47a
commit
3be580aa61
@ -11,5 +11,14 @@ import org.bukkit.material.Colorable;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface Sheep extends Animals, 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);
|
||||||
}
|
}
|
||||||
|
@ -10,5 +10,14 @@ package org.bukkit.entity;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface Slime extends LivingEntity {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user