Villager Restocks API

== AT ==
public net.minecraft.world.entity.npc.Villager numberOfRestocksToday
This commit is contained in:
zbk 2020-04-26 23:49:01 -04:00
parent 4b1f23c2e8
commit 269fd00d2a

View File

@ -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");