Package net.minecraft.entity.player
Enum PlayerEntity.SleepResult
- java.lang.Object
-
- java.lang.Enum<PlayerEntity.SleepResult>
-
- net.minecraft.entity.player.PlayerEntity.SleepResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PlayerEntity.SleepResult>
- Enclosing class:
- PlayerEntity
public static enum PlayerEntity.SleepResult extends java.lang.Enum<PlayerEntity.SleepResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_POSSIBLE_HERE
NOT_POSSIBLE_NOW
NOT_SAFE
OBSTRUCTED
OTHER_PROBLEM
TOO_FAR_AWAY
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
message
-
Constructor Summary
Constructors Modifier Constructor Description private
SleepResult()
private
SleepResult(ITextComponent p_i50668_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NOT_POSSIBLE_HERE
public static final PlayerEntity.SleepResult NOT_POSSIBLE_HERE
-
NOT_POSSIBLE_NOW
public static final PlayerEntity.SleepResult NOT_POSSIBLE_NOW
-
TOO_FAR_AWAY
public static final PlayerEntity.SleepResult TOO_FAR_AWAY
-
OBSTRUCTED
public static final PlayerEntity.SleepResult OBSTRUCTED
-
OTHER_PROBLEM
public static final PlayerEntity.SleepResult OTHER_PROBLEM
-
NOT_SAFE
public static final PlayerEntity.SleepResult NOT_SAFE
-
-
Field Detail
-
message
@Nullable private final ITextComponent message
-
-
Constructor Detail
-
SleepResult
private SleepResult()
-
SleepResult
private SleepResult(ITextComponent p_i50668_3_)
-
-
Method Detail
-
values
public static PlayerEntity.SleepResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PlayerEntity.SleepResult c : PlayerEntity.SleepResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayerEntity.SleepResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMessage
@Nullable public ITextComponent getMessage()
-
-