Class AbstractCookingRecipe
java.lang.Object
net.minecraft.world.item.crafting.AbstractCookingRecipe
- All Implemented Interfaces:
Recipe<SingleRecipeInput>
- Direct Known Subclasses:
BlastingRecipe
,CampfireCookingRecipe
,SmeltingRecipe
,SmokingRecipe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CookingBookCategory
protected final int
protected final float
protected final String
protected final Ingredient
protected final ItemStack
protected final RecipeType
<?> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorDescriptionAbstractCookingRecipe
(RecipeType<?> p_250197_, String p_249518_, CookingBookCategory p_250891_, Ingredient p_251354_, ItemStack p_252185_, float p_252165_, int p_250256_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(SingleRecipeInput p_344932_, HolderLookup.Provider p_335957_) boolean
canCraftInDimensions
(int p_43743_, int p_43744_) category()
int
float
getGroup()
getResultItem
(HolderLookup.Provider p_328377_) RecipeType
<?> getType()
boolean
matches
(SingleRecipeInput p_343646_, Level p_345123_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getSerializer, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Field Details
-
type
-
category
-
group
-
ingredient
-
result
-
experience
protected final float experience -
cookingTime
protected final int cookingTime
-
-
Constructor Details
-
AbstractCookingRecipe
public AbstractCookingRecipe(RecipeType<?> p_250197_, String p_249518_, CookingBookCategory p_250891_, Ingredient p_251354_, ItemStack p_252185_, float p_252165_, int p_250256_)
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceRecipe<SingleRecipeInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<SingleRecipeInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_43743_, int p_43744_) - Specified by:
canCraftInDimensions
in interfaceRecipe<SingleRecipeInput>
-
getIngredients
- Specified by:
getIngredients
in interfaceRecipe<SingleRecipeInput>
-
getExperience
public float getExperience() -
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<SingleRecipeInput>
-
getGroup
- Specified by:
getGroup
in interfaceRecipe<SingleRecipeInput>
-
getCookingTime
public int getCookingTime() -
getType
- Specified by:
getType
in interfaceRecipe<SingleRecipeInput>
-
category
-