mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Add setSheared() to Sheep and setSize() to Slimes.
By: Celtic Minstrel <celtic.minstrel.ca@>
This commit is contained in:
parent
9c5c4622e2
commit
f7b70eb07b
2 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue