mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
Add new Wolf methods for taming
By: Mike Primm <mike@primmhome.com>
This commit is contained in:
parent
03ff88b71d
commit
be1e3989c3
@ -32,4 +32,33 @@ public interface Wolf extends Animals {
|
|||||||
* @param sitting true if sitting
|
* @param sitting true if sitting
|
||||||
*/
|
*/
|
||||||
public void setSitting(boolean sitting);
|
public void setSitting(boolean sitting);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if this wolf is tame
|
||||||
|
*
|
||||||
|
* @return true if tame
|
||||||
|
*/
|
||||||
|
public boolean isTame();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets if wolf is tame
|
||||||
|
*
|
||||||
|
* @param tame true if tame
|
||||||
|
*/
|
||||||
|
public void setTame(boolean tame);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the name of the current owning player
|
||||||
|
*
|
||||||
|
* @return owners name, "" or null if unowned
|
||||||
|
*/
|
||||||
|
public String getOwner();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the wolf to be owned by given player (also is tamed)
|
||||||
|
*
|
||||||
|
* @param player name of owner, or null/"" if setting to unowned
|
||||||
|
*/
|
||||||
|
public void setOwner(String player);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user