public static enum PlayerEntity.SleepFailureReason extends Enum<PlayerEntity.SleepFailureReason>
Enum Constant and Description |
---|
NOT_POSSIBLE_HERE |
NOT_POSSIBLE_NOW |
NOT_SAFE |
OBSTRUCTED |
OTHER_PROBLEM |
TOO_FAR_AWAY |
Modifier and Type | Method and Description |
---|---|
Text |
toText() |
static PlayerEntity.SleepFailureReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerEntity.SleepFailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_HERE
public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_NOW
public static final PlayerEntity.SleepFailureReason TOO_FAR_AWAY
public static final PlayerEntity.SleepFailureReason OBSTRUCTED
public static final PlayerEntity.SleepFailureReason OTHER_PROBLEM
public static final PlayerEntity.SleepFailureReason NOT_SAFE
public static PlayerEntity.SleepFailureReason[] values()
for (PlayerEntity.SleepFailureReason c : PlayerEntity.SleepFailureReason.values()) System.out.println(c);
public static PlayerEntity.SleepFailureReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null