- 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
@Nullable net.minecraft.world.entity.player.Player.BedSleepingProblem
allowSleep(net.minecraft.world.entity.player.Player player,
net.minecraft.core.BlockPos sleepingPos)
Checks whether a player can start sleeping in a bed-like block.