Interface SleepingEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
SleepingEvent.Failed
,SleepingEvent.Finish
,SleepingEvent.Pre
,SleepingEvent.Tick
public interface SleepingEvent extends Event
Called when aLiving
enters a bed to sleep in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SleepingEvent.Failed
Fires when theLiving
tried to sleep but failed.static interface
SleepingEvent.Finish
Fires when theLiving
wakes up.static interface
SleepingEvent.Pre
Fires before sleeping is attempted.static interface
SleepingEvent.Tick
Fires every tick theLiving
is sleeping.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockSnapshot
bed()
Gets theBlockSnapshot
of the bed being used to sleep.Living
living()
Gets theLiving
.
-
-
-
Method Detail
-
bed
BlockSnapshot bed()
Gets theBlockSnapshot
of the bed being used to sleep.- Returns:
- The location of the bed
-
-