Class NSSOutput.Builder
java.lang.Object
com.tagnumelite.projecteintegration.api.recipe.nss.NSSOutput.Builder
- Enclosing class:
NSSOutput
NSSOutput.Builder is used to create a
NSSOutput with multiple outputs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an output to the mapper with all of its variants.voidAdd an output to the mapper with all of its variants.voidaddOutputs(Object... outputs) Add multiple outputs to the mapper.voidaddOutputs(List<?> outputs) Add multiple outputs to the mapper.booleanisEmpty()Check if the output stacks contains any items.toOutput()Get the resultingNSSOutputfrom all the outputs.
-
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 RecipeMapperfakeGroupManager- The fake group manager given by the RecipeMapperrecipeID- The ID of the recipe being worked on
-
-
Method Details
-
addOutput
Add an output to the mapper with all of its variants. Supported classes areItemStackandFluidStack.- Parameters:
variants- The array of variants for an output
-
addOutput
Add an output to the mapper with all of its variants. Supported classes areItemStackandFluidStack.- Parameters:
variants- The list of variants for an output
-
addOutputs
Add multiple outputs to the mapper. Supported classes areItemStackandFluidStack.- Parameters:
outputs- An array of outputs to be added
-
addOutputs
Add multiple outputs to the mapper. Supported classes areItemStackandFluidStack.- Parameters:
outputs- A list of outputs to be added
-
toOutput
Get the resultingNSSOutputfrom all the outputs.- Returns:
- A NSSOutput resulting from the outputs or
NSSOutput.EMPTYif 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
-