Package net.minecraft.entity.player
Enum PlayerEntity.SleepFailureReason
java.lang.Object
java.lang.Enum<PlayerEntity.SleepFailureReason>
net.minecraft.entity.player.PlayerEntity.SleepFailureReason
- All Implemented Interfaces:
Serializable,Comparable<PlayerEntity.SleepFailureReason>,java.lang.constant.Constable
- Enclosing class:
- PlayerEntity
public static enum PlayerEntity.SleepFailureReason extends Enum<PlayerEntity.SleepFailureReason>
- Mappings:
Namespace Name official bhl$aintermediary net/minecraft/class_1657$class_1658named net/minecraft/entity/player/PlayerEntity$SleepFailureReason
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description NOT_POSSIBLE_HERENOT_POSSIBLE_NOWNOT_SAFEOBSTRUCTEDOTHER_PROBLEMTOO_FAR_AWAY -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateSleepFailureReason()privateSleepFailureReason(Text text) -
Method Summary
Modifier and Type Method Description TexttoText()static PlayerEntity.SleepFailureReasonvalueOf(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.
-
Enum Constant Details
-
NOT_POSSIBLE_HERE
- Mappings:
Namespace Name Mixin selector official aLbhl$a;a:Lbhl$a;intermediary field_7528Lnet/minecraft/class_1657$class_1658;field_7528:Lnet/minecraft/class_1657$class_1658;named NOT_POSSIBLE_HERELnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_POSSIBLE_HERE:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
NOT_POSSIBLE_NOW
- Mappings:
Namespace Name Mixin selector official bLbhl$a;b:Lbhl$a;intermediary field_7529Lnet/minecraft/class_1657$class_1658;field_7529:Lnet/minecraft/class_1657$class_1658;named NOT_POSSIBLE_NOWLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_POSSIBLE_NOW:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
TOO_FAR_AWAY
- Mappings:
Namespace Name Mixin selector official cLbhl$a;c:Lbhl$a;intermediary field_7530Lnet/minecraft/class_1657$class_1658;field_7530:Lnet/minecraft/class_1657$class_1658;named TOO_FAR_AWAYLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;TOO_FAR_AWAY:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
OBSTRUCTED
- Mappings:
Namespace Name Mixin selector official dLbhl$a;d:Lbhl$a;intermediary field_18592Lnet/minecraft/class_1657$class_1658;field_18592:Lnet/minecraft/class_1657$class_1658;named OBSTRUCTEDLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;OBSTRUCTED:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
OTHER_PROBLEM
- Mappings:
Namespace Name Mixin selector official eLbhl$a;e:Lbhl$a;intermediary field_7531Lnet/minecraft/class_1657$class_1658;field_7531:Lnet/minecraft/class_1657$class_1658;named OTHER_PROBLEMLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;OTHER_PROBLEM:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
NOT_SAFE
- Mappings:
Namespace Name Mixin selector official fLbhl$a;f:Lbhl$a;intermediary field_7532Lnet/minecraft/class_1657$class_1658;field_7532:Lnet/minecraft/class_1657$class_1658;named NOT_SAFELnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;NOT_SAFE:Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;
-
-
Field Details
-
text
- Mappings:
Namespace Name Mixin selector official gLbhl$a;g:Loi;intermediary field_18593Lnet/minecraft/class_1657$class_1658;field_18593:Lnet/minecraft/class_2561;named textLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;text:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
SleepFailureReason
private SleepFailureReason() -
SleepFailureReason
- Mappings:
Namespace Name Mixin selector official <init>Lbhl$a;<init>(Ljava/lang/String;ILoi;)Vintermediary <init>Lnet/minecraft/class_1657$class_1658;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toText
- Mappings:
Namespace Name Mixin selector official aLbhl$a;a()Loi;intermediary method_19206Lnet/minecraft/class_1657$class_1658;method_19206()Lnet/minecraft/class_2561;named toTextLnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;toText()Lnet/minecraft/text/Text;
-