Uses of Enum Class
net.minecraft.world.entity.player.Player.BedSleepingProblem
Package
Description
-
Uses of Player.BedSleepingProblem in net.minecraft.server.level
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> ServerPlayer.startSleepInBed
(BlockPos p_9115_) -
Uses of Player.BedSleepingProblem in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionstatic Player.BedSleepingProblem
Returns the enum constant of this class with the specified name.static Player.BedSleepingProblem[]
Player.BedSleepingProblem.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> Player.startSleepInBed
(BlockPos p_36203_) -
Uses of Player.BedSleepingProblem in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping
(ServerPlayer player, BlockPos pos, com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> vanillaResult) Modifier and TypeMethodDescriptionstatic boolean
EventHooks.canEntityContinueSleeping
(LivingEntity sleeper, @Nullable Player.BedSleepingProblem problem) Checks if a sleeping entity can continue sleeping with the given sleeping problem.Modifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either
<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping
(ServerPlayer player, BlockPos pos, com.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> vanillaResult) -
Uses of Player.BedSleepingProblem in net.neoforged.neoforge.event.entity.player
Modifier and TypeFieldDescriptionprotected final @Nullable Player.BedSleepingProblem
CanContinueSleepingEvent.problem
private @Nullable Player.BedSleepingProblem
CanPlayerSleepEvent.problem
private final @Nullable Player.BedSleepingProblem
CanPlayerSleepEvent.vanillaProblem
Modifier and TypeMethodDescription@Nullable Player.BedSleepingProblem
CanContinueSleepingEvent.getProblem()
Returns the current sleeping problem, if any.@Nullable Player.BedSleepingProblem
CanPlayerSleepEvent.getProblem()
Returns the current sleeping problem.@Nullable Player.BedSleepingProblem
CanPlayerSleepEvent.getVanillaProblem()
Returns the default sleeping problem based on the vanilla checks.Modifier and TypeMethodDescriptionvoid
CanPlayerSleepEvent.setProblem
(@Nullable Player.BedSleepingProblem problem) Sets a new sleeping problem.ModifierConstructorDescriptionCanContinueSleepingEvent
(LivingEntity entity, @Nullable Player.BedSleepingProblem problem) CanPlayerSleepEvent
(ServerPlayer player, BlockPos pos, @Nullable Player.BedSleepingProblem problem)