mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Villager Restocks API
This commit is contained in:
parent
ec2e3991b9
commit
cb3bc4f15f
1 changed files with 14 additions and 0 deletions
|
@ -82,6 +82,20 @@ public interface Villager extends AbstractVillager {
|
|||
*/
|
||||
public void setVillagerExperience(int experience);
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the amount of times a villager has restocked their trades today
|
||||
* @return The amount of trade restocks.
|
||||
*/
|
||||
public int getRestocksToday();
|
||||
|
||||
/**
|
||||
* Sets the amount of times a villager has restocked their trades today
|
||||
* @param restocksToday new restock count
|
||||
*/
|
||||
public void setRestocksToday(int restocksToday);
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Attempts to make this villager sleep at the given location.
|
||||
* <br>
|
||||
|
|
Loading…
Reference in a new issue