public class SleepingTimeCheckEvent
This event is fired when the game checks if players can sleep at this time.
Failing this check will cause sleeping players to wake up and prevent awake players from sleeping.
This event has a result. Event.HasResult
setResult(ALLOW) informs game that player can sleep at this time.
setResult(DEFAULT) causes game to check !World#isDaytime() instead.
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.player.PlayerEvent