PlayerBedSleepingProblem

Importing the class

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.

script.zs
import crafttweaker.api.entity.type.player.PlayerBedSleepingProblem;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

PlayerBedSleepingProblem is an enum with 6 constants. They are accessible like so:

script.zs
// 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>

Members

Getter
script.zs
// BedSleepingProblem.message as Component
<constant:minecraft:player/bed_sleeping_problem:not_possible_here>.message

Return Type: Component