- Enclosing class:
EntitySleepEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifies or provides a wake-up position for an entity waking up.
-
Method Details
-
modifyWakeUpPosition
Modifies or provides a wake-up position for an entity waking up.
- Parameters:
entity - the sleeping entity
sleepingPos - the position of the block slept on
bedState - the block slept on
wakeUpPos - the old wake-up position, or null if not determined by vanilla or previous callbacks
- Returns:
- the new wake-up position