枚举 PlayerEntity.SleepFailureReason
- java.lang.Object
-
- java.lang.Enum<PlayerEntity.SleepFailureReason>
-
- net.minecraft.entity.player.PlayerEntity.SleepFailureReason
-
- 所有已实现的接口:
Serializable,Comparable<PlayerEntity.SleepFailureReason>
- 封闭类:
- PlayerEntity
public static enum PlayerEntity.SleepFailureReason extends Enum<PlayerEntity.SleepFailureReason>
- Mappings:
Namespace Name official bjf$aintermediary net/minecraft/class_1657$class_1658named net/minecraft/entity/player/PlayerEntity$SleepFailureReason
-
-
枚举常量概要
枚举常量 枚举常量 说明 NOT_POSSIBLE_HERENOT_POSSIBLE_NOWNOT_SAFEOBSTRUCTEDOTHER_PROBLEMTOO_FAR_AWAY
-
构造器概要
构造器 限定符 构造器 说明 privateSleepFailureReason()privateSleepFailureReason(Text text)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable TexttoText()static PlayerEntity.SleepFailureReasonvalueOf(String name)返回带有指定名称的该类型的枚举常量。static PlayerEntity.SleepFailureReason[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
NOT_POSSIBLE_HERE
public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_HERE
- Mappings:
Namespace Name Mixin selector official aLbjf$a;a:Lbjf$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
public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_NOW
- Mappings:
Namespace Name Mixin selector official bLbjf$a;b:Lbjf$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
public static final PlayerEntity.SleepFailureReason TOO_FAR_AWAY
- Mappings:
Namespace Name Mixin selector official cLbjf$a;c:Lbjf$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
public static final PlayerEntity.SleepFailureReason OBSTRUCTED
- Mappings:
Namespace Name Mixin selector official dLbjf$a;d:Lbjf$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
public static final PlayerEntity.SleepFailureReason OTHER_PROBLEM
- Mappings:
Namespace Name Mixin selector official eLbjf$a;e:Lbjf$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
public static final PlayerEntity.SleepFailureReason NOT_SAFE
- Mappings:
Namespace Name Mixin selector official fLbjf$a;f:Lbjf$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;
-
-
字段详细资料
-
text
@Nullable private final @Nullable Text text
- Mappings:
Namespace Name Mixin selector official gLbjf$a;g:Lon;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;
-
-
构造器详细资料
-
SleepFailureReason
private SleepFailureReason()
-
SleepFailureReason
private SleepFailureReason(Text text)
- Mappings:
Namespace Name Mixin selector official <init>Lbjf$a;<init>(Ljava/lang/String;ILon;)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
-
-
方法详细资料
-
values
public static PlayerEntity.SleepFailureReason[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (PlayerEntity.SleepFailureReason c : PlayerEntity.SleepFailureReason.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static PlayerEntity.SleepFailureReason valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
toText
@Nullable public @Nullable Text toText()
- Mappings:
Namespace Name Mixin selector official aLbjf$a;a()Lon;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;
-
-