枚举 RecipeBookCategory

    • 枚举常量详细资料

      • CRAFTING

        public static final RecipeBookCategory CRAFTING
        Mappings:
        Namespace Name Mixin selector
        official a Lbmv;a:Lbmv;
        intermediary field_25763 Lnet/minecraft/class_5421;field_25763:Lnet/minecraft/class_5421;
        named CRAFTING Lnet/minecraft/recipe/book/RecipeBookCategory;CRAFTING:Lnet/minecraft/recipe/book/RecipeBookCategory;
      • FURNACE

        public static final RecipeBookCategory FURNACE
        Mappings:
        Namespace Name Mixin selector
        official b Lbmv;b:Lbmv;
        intermediary field_25764 Lnet/minecraft/class_5421;field_25764:Lnet/minecraft/class_5421;
        named FURNACE Lnet/minecraft/recipe/book/RecipeBookCategory;FURNACE:Lnet/minecraft/recipe/book/RecipeBookCategory;
      • BLAST_FURNACE

        public static final RecipeBookCategory BLAST_FURNACE
        Mappings:
        Namespace Name Mixin selector
        official c Lbmv;c:Lbmv;
        intermediary field_25765 Lnet/minecraft/class_5421;field_25765:Lnet/minecraft/class_5421;
        named BLAST_FURNACE Lnet/minecraft/recipe/book/RecipeBookCategory;BLAST_FURNACE:Lnet/minecraft/recipe/book/RecipeBookCategory;
      • SMOKER

        public static final RecipeBookCategory SMOKER
        Mappings:
        Namespace Name Mixin selector
        official d Lbmv;d:Lbmv;
        intermediary field_25766 Lnet/minecraft/class_5421;field_25766:Lnet/minecraft/class_5421;
        named SMOKER Lnet/minecraft/recipe/book/RecipeBookCategory;SMOKER:Lnet/minecraft/recipe/book/RecipeBookCategory;
    • 构造器详细资料

      • RecipeBookCategory

        private RecipeBookCategory()
    • 方法详细资料

      • values

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

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