Package net.minecraft.recipe
Class AbstractCookingRecipe
java.lang.Object
net.minecraft.recipe.AbstractCookingRecipe
- Direct Known Subclasses:
BlastingRecipe,CampfireCookingRecipe,SmeltingRecipe,SmokingRecipe
public abstract class AbstractCookingRecipe extends Object implements Recipe<Inventory>
-
Field Summary
Fields Modifier and Type Field Description protected intcookTimeprotected floatexperienceprotected Stringgroupprotected Identifieridprotected Ingredientinputprotected ItemStackoutputprotected RecipeType<?>type -
Constructor Summary
Constructors Constructor Description AbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) -
Method Summary
Modifier and Type Method Description ItemStackcraft(Inventory inv)booleanfits(int width, int height)intgetCookTime()floatgetExperience()StringgetGroup()IdentifiergetId()ItemStackgetOutput()DefaultedList<Ingredient>getPreviewInputs()RecipeType<?>getType()booleanmatches(Inventory inv, World world)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.Recipe
getRecipeKindIcon, getRemainingStacks, getSerializer, isIgnoredInRecipeBook, method_31584
-
Field Details
-
type
-
id
-
group
-
input
-
output
-
experience
protected final float experience -
cookTime
protected final int cookTime
-
-
Constructor Details
-
AbstractCookingRecipe
public AbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
-
-
Method Details
-
matches
-
craft
-
fits
@Environment(CLIENT) public boolean fits(int width, int height) -
getPreviewInputs
- Specified by:
getPreviewInputsin interfaceRecipe<Inventory>
-
getExperience
public float getExperience() -
getOutput
-
getGroup
-
getCookTime
public int getCookTime() -
getId
-
getType
-