public static enum EntityPlayer.SleepResult extends java.lang.Enum<EntityPlayer.SleepResult>
Enum Constant and Description |
---|
NOT_POSSIBLE_HERE |
NOT_POSSIBLE_NOW |
NOT_SAFE |
OK |
OTHER_PROBLEM |
TOO_FAR_AWAY |
Modifier and Type | Method and Description |
---|---|
static EntityPlayer.SleepResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityPlayer.SleepResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityPlayer.SleepResult OK
public static final EntityPlayer.SleepResult NOT_POSSIBLE_HERE
public static final EntityPlayer.SleepResult NOT_POSSIBLE_NOW
public static final EntityPlayer.SleepResult TOO_FAR_AWAY
public static final EntityPlayer.SleepResult OTHER_PROBLEM
public static final EntityPlayer.SleepResult NOT_SAFE
public static EntityPlayer.SleepResult[] values()
for (EntityPlayer.SleepResult c : EntityPlayer.SleepResult.values()) System.out.println(c);
public static EntityPlayer.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