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

public abstract class AssemblyRecipe extends PneumaticCraftRecipe
  • 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

      public abstract AssemblyRecipe.AssemblyProgramType 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