Interface SleepingEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
SleepingEvent.Failed,SleepingEvent.Finish,SleepingEvent.Pre,SleepingEvent.Tick
public interface SleepingEvent extends Event
Called when aLivingenters a bed to sleep in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSleepingEvent.FailedFires when theLivingtried to sleep but failed.static interfaceSleepingEvent.FinishFires when theLivingwakes up.static interfaceSleepingEvent.PreFires before sleeping is attempted.static interfaceSleepingEvent.TickFires every tick theLivingis sleeping.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockSnapshotbed()Gets theBlockSnapshotof the bed being used to sleep.Livingliving()Gets theLiving.
-
-
-
Method Detail
-
bed
BlockSnapshot bed()
Gets theBlockSnapshotof the bed being used to sleep.- Returns:
- The location of the bed
-
-