mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +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
|
||||
*/
|
||||
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