- 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
boolean
Sets the occupation state of a bed block.
-
Method Details
-
setBedOccupationState
Sets the occupation state of a bed block.
- Parameters:
entity - the sleeping entity
sleepingPos - the sleeping position
bedState - the block state of the bed
occupied - true if occupied, false if free
- Returns:
true if the occupation state was successfully modified, false to fall back to other callbacks