Interface SleepingEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
SleepingEvent.Failed
,SleepingEvent.Finish
,SleepingEvent.Pre
,SleepingEvent.Tick
Called when a
Living
enters a bed to sleep in.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbed()
Gets theBlockSnapshot
of the bed being used to sleep.living()
Gets theLiving
.
-
Method Details
-
living
Living living()Gets theLiving
.- Returns:
- The humanoid
-
bed
BlockSnapshot bed()Gets theBlockSnapshot
of the bed being used to sleep.- Returns:
- The location of the bed
-