Add Bee#set/getTimeSinceSting() methods (#12792)

This commit is contained in:
Umbre11as
2025-07-18 23:17:06 +03:00
committed by GitHub
parent f7c59f914c
commit 0dad7f150b
3 changed files with 36 additions and 0 deletions
@@ -118,4 +118,15 @@ public class CraftBee extends CraftAnimals implements Bee {
public int getTicksSincePollination() {
return this.getHandle().ticksWithoutNectarSinceExitingHive;
}
@Override
public void setTimeSinceSting(int time) {
Preconditions.checkArgument(time >= 0, "Time since sting cannot be negative");
this.getHandle().timeSinceSting = time;
}
@Override
public int getTimeSinceSting() {
return this.getHandle().timeSinceSting;
}
}