类 SingleItemRecipe
java.lang.Object
net.minecraft.world.item.crafting.SingleItemRecipe
- 直接已知子类:
StonecutterRecipe
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected final String
protected final ResourceLocation
protected final Ingredient
protected final ItemStack
private final RecipeSerializer<?>
private final RecipeType<?>
-
构造器概要
构造器构造器说明SingleItemRecipe
(RecipeType<?> pType, RecipeSerializer<?> pSerializer, ResourceLocation pId, String pGroup, Ingredient pIngredient, ItemStack pResult) -
方法概要
修饰符和类型方法说明assemble
(Container pContainer, RegistryAccess pRegistryAccess) boolean
canCraftInDimensions
(int pWidth, int pHeight) getGroup()
getId()
getResultItem
(RegistryAccess pRegistryAccess) RecipeType<?>
getType()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isIncomplete, isSpecial, matches, showNotification
-
字段详细资料
-
ingredient
-
result
-
type
-
serializer
-
id
-
group
-
-
构造器详细资料
-
SingleItemRecipe
public SingleItemRecipe(RecipeType<?> pType, RecipeSerializer<?> pSerializer, ResourceLocation pId, String pGroup, Ingredient pIngredient, ItemStack pResult)
-
-
方法详细资料
-
getType
-
getSerializer
- 指定者:
getSerializer
在接口中Recipe<Container>
-
getId
-
getGroup
-
getResultItem
- 指定者:
getResultItem
在接口中Recipe<Container>
-
getIngredients
- 指定者:
getIngredients
在接口中Recipe<Container>
-
canCraftInDimensions
public boolean canCraftInDimensions(int pWidth, int pHeight) - 指定者:
canCraftInDimensions
在接口中Recipe<Container>
-
assemble
-