Class NSSOutput.Builder

java.lang.Object
com.tagnumelite.projecteintegration.api.recipe.nss.NSSOutput.Builder
Enclosing class:
NSSOutput

public static class NSSOutput.Builder extends Object
NSSOutput.Builder is used to create a NSSOutput with multiple outputs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Builder(moze_intel.projecte.api.mapper.collector.IMappingCollector<moze_intel.projecte.api.nss.NormalizedSimpleStack,Long> mapper, moze_intel.projecte.api.mapper.recipe.INSSFakeGroupManager fakeGroupManager, net.minecraft.resources.ResourceLocation recipeID)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addOutput(Object... variants)
    Add an output to the mapper with all of its variants.
    void
    addOutput(List<?> variants)
    Add an output to the mapper with all of its variants.
    void
    addOutputs(Object... outputs)
    Add multiple outputs to the mapper.
    void
    addOutputs(List<?> outputs)
    Add multiple outputs to the mapper.
    boolean
    Check if the output stacks contains any items.
    Get the resulting NSSOutput from all the outputs.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder(moze_intel.projecte.api.mapper.collector.IMappingCollector<moze_intel.projecte.api.nss.NormalizedSimpleStack,Long> mapper, moze_intel.projecte.api.mapper.recipe.INSSFakeGroupManager fakeGroupManager, net.minecraft.resources.ResourceLocation recipeID)
      Parameters:
      mapper - The mapping collector given by the RecipeMapper
      fakeGroupManager - The fake group manager given by the RecipeMapper
      recipeID - The ID of the recipe being worked on
  • Method Details

    • addOutput

      public void addOutput(Object... variants)
      Add an output to the mapper with all of its variants. Supported classes are ItemStack and FluidStack.
      Parameters:
      variants - The array of variants for an output
    • addOutput

      public void addOutput(List<?> variants)
      Add an output to the mapper with all of its variants. Supported classes are ItemStack and FluidStack.
      Parameters:
      variants - The list of variants for an output
    • addOutputs

      public void addOutputs(Object... outputs)
      Add multiple outputs to the mapper. Supported classes are ItemStack and FluidStack.
      Parameters:
      outputs - An array of outputs to be added
    • addOutputs

      public void addOutputs(List<?> outputs)
      Add multiple outputs to the mapper. Supported classes are ItemStack and FluidStack.
      Parameters:
      outputs - A list of outputs to be added
    • toOutput

      public NSSOutput toOutput()
      Get the resulting NSSOutput from all the outputs.
      Returns:
      A NSSOutput resulting from the outputs or NSSOutput.EMPTY if it failed.
    • isEmpty

      public boolean isEmpty()
      Check if the output stacks contains any items.
      Returns:
      A True/False value of whether the outputStacks Map is empty