If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.entity.type.player . PlayerBedSleepingProblem;
Undocumented Interfaces Comparable <Enum >
PlayerBedSleepingProblem is an enum with 6 constants. They are accessible like so:
// PlayerBedSleepingProblem.NOT_POSSIBLE_HERE
< constant : minecraft:player/bed_sleeping_problem:not_possible_here >
// PlayerBedSleepingProblem.NOT_POSSIBLE_NOW
< constant : minecraft:player/bed_sleeping_problem:not_possible_now >
// PlayerBedSleepingProblem.NOT_SAFE
< constant : minecraft:player/bed_sleeping_problem:not_safe >
// PlayerBedSleepingProblem.OBSTRUCTED
< constant : minecraft:player/bed_sleeping_problem:obstructed >
// PlayerBedSleepingProblem.OTHER_PROBLEM
< constant : minecraft:player/bed_sleeping_problem:other_problem >
// PlayerBedSleepingProblem.TOO_FAR_AWAY
< constant : minecraft:player/bed_sleeping_problem:too_far_away >
// BedSleepingProblem.message as Component
< constant : minecraft:player/bed_sleeping_problem:not_possible_here > .message
Return Type:
Component