SearchRecipeBookCategory.java
net.minecraft.client.gui.screens.recipebook.SearchRecipeBookCategory
信息
- 全限定名:net.minecraft.client.gui.screens.recipebook.SearchRecipeBookCategory
- 类型:public enum
- 包:net.minecraft.client.gui.screens.recipebook
- 源码路径:src/main/java/net/minecraft/client/gui/screens/recipebook/SearchRecipeBookCategory.java
- 起始行号:L11
- 实现:ExtendedRecipeBookCategory
- 职责:
TODO
字段/常量
-
CRAFTING_REDSTONE, FURNACE_MISC, BLAST_FURNACE_MISC, SMOKER_FOOD- 类型:
CRAFTING(RecipeBookCategories.CRAFTING_EQUIPMENT,RecipeBookCategories.CRAFTING_BUILDING_BLOCKS,RecipeBookCategories.CRAFTING_MISC,RecipeBookCategories. - 修饰符:
package-private - 源码定位:
L12 - 说明:
TODO
- 类型:
-
includedCategories- 类型:
List<RecipeBookCategory> - 修饰符:
private final - 源码定位:
L22 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
private SearchRecipeBookCategory(RecipeBookCategory... includedCategories) @ L24
- 构造器名:SearchRecipeBookCategory
- 源码定位:L24
- 修饰符:private
参数:
- includedCategories: RecipeBookCategory…
说明:
TODO
方法
下面的方法块按源码顺序生成。
public List<RecipeBookCategory> includedCategories() @ L28
- 方法名:includedCategories
- 源码定位:L28
- 返回类型:List
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public enum SearchRecipeBookCategory implements ExtendedRecipeBookCategory {
CRAFTING(
RecipeBookCategories.CRAFTING_EQUIPMENT,
RecipeBookCategories.CRAFTING_BUILDING_BLOCKS,
RecipeBookCategories.CRAFTING_MISC,
RecipeBookCategories.CRAFTING_REDSTONE
),
FURNACE(RecipeBookCategories.FURNACE_FOOD, RecipeBookCategories.FURNACE_BLOCKS, RecipeBookCategories.FURNACE_MISC),
BLAST_FURNACE(RecipeBookCategories.BLAST_FURNACE_BLOCKS, RecipeBookCategories.BLAST_FURNACE_MISC),
SMOKER(RecipeBookCategories.SMOKER_FOOD);
private final List<RecipeBookCategory> includedCategories;
private SearchRecipeBookCategory(RecipeBookCategory... includedCategories) {
this.includedCategories = List.of(includedCategories);
}
public List<RecipeBookCategory> includedCategories() {
return this.includedCategories;
}
}引用的其他类
-
- 引用位置:
实现
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
参数/字段/返回值
- 引用位置: