枚举 PlayerEntity.SleepFailureReason

    • 枚举常量详细资料

      • NOT_POSSIBLE_HERE

        public static final PlayerEntity.SleepFailureReason NOT_POSSIBLE_HERE
        Mappings:
        Namespace Name Mixin selector
        official a Lbjf$a;a:Lbjf$a;
        intermediary field_7528 Lnet/minecraft/class_1657$class_1658;field_7528:Lnet/minecraft/class_1657$class_1658;
        named NOT_POSSIBLE_HERE Lnet/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 b Lbjf$a;b:Lbjf$a;
        intermediary field_7529 Lnet/minecraft/class_1657$class_1658;field_7529:Lnet/minecraft/class_1657$class_1658;
        named NOT_POSSIBLE_NOW Lnet/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 c Lbjf$a;c:Lbjf$a;
        intermediary field_7530 Lnet/minecraft/class_1657$class_1658;field_7530:Lnet/minecraft/class_1657$class_1658;
        named TOO_FAR_AWAY Lnet/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 d Lbjf$a;d:Lbjf$a;
        intermediary field_18592 Lnet/minecraft/class_1657$class_1658;field_18592:Lnet/minecraft/class_1657$class_1658;
        named OBSTRUCTED Lnet/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 e Lbjf$a;e:Lbjf$a;
        intermediary field_7531 Lnet/minecraft/class_1657$class_1658;field_7531:Lnet/minecraft/class_1657$class_1658;
        named OTHER_PROBLEM Lnet/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 f Lbjf$a;f:Lbjf$a;
        intermediary field_7532 Lnet/minecraft/class_1657$class_1658;field_7532:Lnet/minecraft/class_1657$class_1658;
        named NOT_SAFE Lnet/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 g Lbjf$a;g:Lon;
        intermediary field_18593 Lnet/minecraft/class_1657$class_1658;field_18593:Lnet/minecraft/class_2561;
        named text Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_1657$class_1658;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;)V
        named <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 a Lbjf$a;a()Lon;
        intermediary method_19206 Lnet/minecraft/class_1657$class_1658;method_19206()Lnet/minecraft/class_2561;
        named toText Lnet/minecraft/entity/player/PlayerEntity$SleepFailureReason;toText()Lnet/minecraft/text/Text;