Class AssemblyRecipe
java.lang.Object
me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
me.desht.pneumaticcraft.api.crafting.recipe.AssemblyRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<PneumaticCraftRecipe.DummyIInventory>
- Direct Known Subclasses:
AssemblyRecipeImpl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
PneumaticCraftRecipe.DummyIInventory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssemblyRecipe(net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionabstract net.minecraft.world.item.crafting.IngredientgetInput()Get the input ingredient.abstract intGet the number of items required/usedabstract net.minecraft.world.item.ItemStackGet the output item for this recipe.abstract AssemblyRecipe.AssemblyProgramTypeGet the program required.abstract booleanmatches(net.minecraft.world.item.ItemStack stack) Check if the given stack is a valid input for this recipe.Methods inherited from class me.desht.pneumaticcraft.api.crafting.recipe.PneumaticCraftRecipe
assemble, canCraftInDimensions, getId, getResultItem, isSpecial, matches, writeMethods 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
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, getType, isIncomplete, showNotification
-
Constructor Details
-
AssemblyRecipe
protected AssemblyRecipe(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
getInput
public abstract net.minecraft.world.item.crafting.Ingredient getInput()Get the input ingredient.- Returns:
- the input ingredient
-
getInputAmount
public abstract int getInputAmount()Get the number of items required/used- Returns:
- the number of items
-
getOutput
@Nonnull public abstract net.minecraft.world.item.ItemStack getOutput()Get the output item for this recipe.- Returns:
- the output item
-
getProgramType
Get the program required.- Returns:
- the program type
-
matches
public abstract boolean matches(net.minecraft.world.item.ItemStack stack) Check if the given stack is a valid input for this recipe.- Parameters:
stack- input stack- Returns:
- true if valid, false otherwise
-