mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-28 18:31:29 +01:00
Villager Restocks API
== AT == public net.minecraft.world.entity.npc.Villager numberOfRestocksToday
This commit is contained in:
parent
4b1f23c2e8
commit
269fd00d2a
@ -90,6 +90,18 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
|
||||
this.getHandle().setVillagerXp(experience);
|
||||
}
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public int getRestocksToday() {
|
||||
return getHandle().numberOfRestocksToday;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRestocksToday(int restocksToday) {
|
||||
getHandle().numberOfRestocksToday = restocksToday;
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public boolean sleep(Location location) {
|
||||
Preconditions.checkArgument(location != null, "Location cannot be null");
|
||||
|
Loading…
Reference in New Issue
Block a user