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