Class SleepStatus
java.lang.Object
net.minecraft.server.players.SleepStatus
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanareEnoughDeepSleeping(int sleepPercentageNeeded, List<ServerPlayer> players) booleanareEnoughSleeping(int sleepPercentageNeeded) voidintsleepersNeeded(int sleepPercentageNeeded) booleanupdate(List<ServerPlayer> players)
-
Field Details
-
activePlayers
private int activePlayers -
sleepingPlayers
private int sleepingPlayers
-
-
Constructor Details
-
SleepStatus
public SleepStatus()
-
-
Method Details
-
areEnoughSleeping
public boolean areEnoughSleeping(int sleepPercentageNeeded) -
areEnoughDeepSleeping
-
sleepersNeeded
public int sleepersNeeded(int sleepPercentageNeeded) -
removeAllSleepers
public void removeAllSleepers() -
amountSleeping
public int amountSleeping() -
update
-