枚举 CreateWorldScreen.Mode

    • 枚举常量详细资料

      • SURVIVAL

        public static final CreateWorldScreen.Mode SURVIVAL
        Mappings:
        Namespace Name Mixin selector
        official a Lect$b;a:Lect$b;
        intermediary field_20624 Lnet/minecraft/class_525$class_4539;field_20624:Lnet/minecraft/class_525$class_4539;
        named SURVIVAL Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;SURVIVAL:Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;
      • HARDCORE

        public static final CreateWorldScreen.Mode HARDCORE
        Mappings:
        Namespace Name Mixin selector
        official b Lect$b;b:Lect$b;
        intermediary field_20625 Lnet/minecraft/class_525$class_4539;field_20625:Lnet/minecraft/class_525$class_4539;
        named HARDCORE Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;HARDCORE:Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;
      • CREATIVE

        public static final CreateWorldScreen.Mode CREATIVE
        Mappings:
        Namespace Name Mixin selector
        official c Lect$b;c:Lect$b;
        intermediary field_20626 Lnet/minecraft/class_525$class_4539;field_20626:Lnet/minecraft/class_525$class_4539;
        named CREATIVE Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;CREATIVE:Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;
      • DEBUG

        public static final CreateWorldScreen.Mode DEBUG
        Mappings:
        Namespace Name Mixin selector
        official d Lect$b;d:Lect$b;
        intermediary field_20627 Lnet/minecraft/class_525$class_4539;field_20627:Lnet/minecraft/class_525$class_4539;
        named DEBUG Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;DEBUG:Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;
    • 字段详细资料

      • translationSuffix

        private final String translationSuffix
        Mappings:
        Namespace Name Mixin selector
        official e Lect$b;e:Ljava/lang/String;
        intermediary field_20628 Lnet/minecraft/class_525$class_4539;field_20628:Ljava/lang/String;
        named translationSuffix Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;translationSuffix:Ljava/lang/String;
      • defaultGameMode

        private final GameMode defaultGameMode
        Mappings:
        Namespace Name Mixin selector
        official f Lect$b;f:Lbvo;
        intermediary field_20629 Lnet/minecraft/class_525$class_4539;field_20629:Lnet/minecraft/class_1934;
        named defaultGameMode Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;defaultGameMode:Lnet/minecraft/world/GameMode;
      • text

        private final Text text
        Mappings:
        Namespace Name Mixin selector
        official g Lect$b;g:Lon;
        intermediary field_27999 Lnet/minecraft/class_525$class_4539;field_27999:Lnet/minecraft/class_2561;
        named text Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;text:Lnet/minecraft/text/Text;
    • 构造器详细资料

      • Mode

        private Mode​(String translationSuffix,
                     GameMode defaultGameMode)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lect$b;<init>(Ljava/lang/String;ILjava/lang/String;Lbvo;)V
        intermediary <init> Lnet/minecraft/class_525$class_4539;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_1934;)V
        named <init> Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/world/GameMode;)V
    • 方法详细资料

      • values

        public static CreateWorldScreen.Mode[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (CreateWorldScreen.Mode c : CreateWorldScreen.Mode.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static CreateWorldScreen.Mode valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • asText

        public Text asText()
        Mappings:
        Namespace Name Mixin selector
        official a Lect$b;a()Lon;
        intermediary method_32673 Lnet/minecraft/class_525$class_4539;method_32673()Lnet/minecraft/class_2561;
        named asText Lnet/minecraft/client/gui/screen/world/CreateWorldScreen$Mode;asText()Lnet/minecraft/text/Text;