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