Class AbstractCookingRecipe
java.lang.Object
net.minecraft.world.item.crafting.AbstractCookingRecipe
- Direct Known Subclasses:
BlastingRecipe,CampfireCookingRecipe,SmeltingRecipe,SmokingRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected floatprotected Stringprotected ResourceLocationprotected Ingredientprotected ItemStackprotected RecipeType<?> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCookingRecipe(RecipeType<?> p_43734_, ResourceLocation p_43735_, String p_43736_, Ingredient p_43737_, ItemStack p_43738_, float p_43739_, int p_43740_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCraftInDimensions(int p_43743_, int p_43744_)intfloatgetGroup()getId()RecipeType<?>getType()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getSerializer, getToastSymbol, isIncomplete, isSpecial
-
Field Details
-
type
-
id
-
group
-
ingredient
-
result
-
experience
protected final float experience -
cookingTime
protected final int cookingTime
-
-
Constructor Details
-
AbstractCookingRecipe
public AbstractCookingRecipe(RecipeType<?> p_43734_, ResourceLocation p_43735_, String p_43736_, Ingredient p_43737_, ItemStack p_43738_, float p_43739_, int p_43740_)
-
-
Method Details
-
matches
-
assemble
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_43743_, int p_43744_)- Specified by:
canCraftInDimensionsin interfaceRecipe<Container>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<Container>
-
getExperience
public float getExperience() -
getResultItem
- Specified by:
getResultItemin interfaceRecipe<Container>
-
getGroup
-
getCookingTime
public int getCookingTime() -
getId
-
getType
-