Class NSSOutput
java.lang.Object
com.tagnumelite.projecteintegration.api.recipe.nss.NSSOutput
A 'data' class to hold both a
NormalizedSimpleStack and an integer denoting the output item and amount.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNSSOutput.Builder is used to create aNSSOutputwith multiple outputs. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNSSOutput(int amount, moze_intel.projecte.api.nss.NormalizedSimpleStack nss) Create an NSSOutput with the specified amount and NSSNSSOutput(net.minecraft.world.item.ItemStack item) A helper constructor to create an NSSOutput from anItemStackNSSOutput(net.minecraft.world.item.ItemStack item, boolean forceCopyNBT) A helper constructor to create an NSSOutput from anItemStack.NSSOutput(net.minecraft.world.level.block.state.BlockState state) A helper constructor to create an NSSOutput from anBlockStateNSSOutput(net.neoforged.neoforge.fluids.FluidStack fluid) A helper constructor to create an NSSOutput from anFluidStack -
Method Summary
Modifier and TypeMethodDescriptionstatic NSSOutput.Builderbuilder(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) booleanisEmpty()A helper function to check this object has a valid NSS object with amount over 0 and isn't equal to EMPTY.toString()
-
Field Details
-
EMPTY
A Singleton to denote an empty NSSOutput -
nss
public final moze_intel.projecte.api.nss.NormalizedSimpleStack nss -
amount
public final int amount
-
-
Constructor Details
-
NSSOutput
public NSSOutput(int amount, moze_intel.projecte.api.nss.NormalizedSimpleStack nss) Create an NSSOutput with the specified amount and NSS- Parameters:
amount- The amount that will be outputtednss- The item that will be outputted
-
NSSOutput
public NSSOutput(net.minecraft.world.item.ItemStack item) A helper constructor to create an NSSOutput from anItemStack- Parameters:
item- TheItemStackto be converted
-
NSSOutput
public NSSOutput(net.minecraft.world.item.ItemStack item, boolean forceCopyNBT) A helper constructor to create an NSSOutput from anItemStack.- Parameters:
item- TheItemStackto be convertedforceCopyNBT- Force copies the NBT tag from ItemStack or just usesNSSItem.createItem(ItemStack)
-
NSSOutput
public NSSOutput(net.neoforged.neoforge.fluids.FluidStack fluid) A helper constructor to create an NSSOutput from anFluidStack- Parameters:
fluid- TheFluidStackto be converted
-
NSSOutput
public NSSOutput(net.minecraft.world.level.block.state.BlockState state) A helper constructor to create an NSSOutput from anBlockState- Parameters:
state- TheBlockStateto be converted
-
-
Method Details
-
builder
public static NSSOutput.Builder 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) -
isEmpty
public boolean isEmpty()A helper function to check this object has a valid NSS object with amount over 0 and isn't equal to EMPTY.- Returns:
- A boolean value denoting that this object has something of value.
-
toString
-