Uses of Enum Class
net.minecraft.world.entity.player.Player.BedSleepingProblem
Packages that use Player.BedSleepingProblem
Package
Description
-
Uses of Player.BedSleepingProblem in net.minecraft.server.level
Methods in net.minecraft.server.level that return types with arguments of type Player.BedSleepingProblemModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> ServerPlayer.startSleepInBed(BlockPos p_9115_) -
Uses of Player.BedSleepingProblem in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return Player.BedSleepingProblemModifier and TypeMethodDescriptionstatic Player.BedSleepingProblemReturns 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.Methods in net.minecraft.world.entity.player that return types with arguments of type Player.BedSleepingProblemModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<Player.BedSleepingProblem, Unit> Player.startSleepInBed(BlockPos p_36203_) -
Uses of Player.BedSleepingProblem in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event that return types with arguments of type Player.BedSleepingProblemModifier 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) Methods in net.neoforged.neoforge.event with parameters of type Player.BedSleepingProblemModifier and TypeMethodDescriptionstatic booleanEventHooks.canEntityContinueSleeping(LivingEntity sleeper, @Nullable Player.BedSleepingProblem problem) Checks if a sleeping entity can continue sleeping with the given sleeping problem.Method parameters in net.neoforged.neoforge.event with type arguments of type Player.BedSleepingProblemModifier 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
Fields in net.neoforged.neoforge.event.entity.player declared as Player.BedSleepingProblemModifier and TypeFieldDescriptionprotected final @Nullable Player.BedSleepingProblemCanContinueSleepingEvent.problemprivate @Nullable Player.BedSleepingProblemCanPlayerSleepEvent.problemprivate final @Nullable Player.BedSleepingProblemCanPlayerSleepEvent.vanillaProblemMethods in net.neoforged.neoforge.event.entity.player that return Player.BedSleepingProblemModifier and TypeMethodDescription@Nullable Player.BedSleepingProblemCanContinueSleepingEvent.getProblem()Returns the current sleeping problem, if any.@Nullable Player.BedSleepingProblemCanPlayerSleepEvent.getProblem()Returns the current sleeping problem.@Nullable Player.BedSleepingProblemCanPlayerSleepEvent.getVanillaProblem()Returns the default sleeping problem based on the vanilla checks.Methods in net.neoforged.neoforge.event.entity.player with parameters of type Player.BedSleepingProblemModifier and TypeMethodDescriptionvoidCanPlayerSleepEvent.setProblem(@Nullable Player.BedSleepingProblem problem) Sets a new sleeping problem.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type Player.BedSleepingProblemModifierConstructorDescriptionCanContinueSleepingEvent(LivingEntity entity, @Nullable Player.BedSleepingProblem problem) CanPlayerSleepEvent(ServerPlayer player, BlockPos pos, @Nullable Player.BedSleepingProblem problem)