java.lang.Object
com.tagnumelite.projecteintegration.api.recipe.nss.NSSOutput

public class NSSOutput extends Object
A 'data' class to hold both a NormalizedSimpleStack and an integer denoting the output item and amount.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    NSSOutput.Builder is used to create a NSSOutput with multiple outputs.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    static final NSSOutput
    A Singleton to denote an empty NSSOutput
    final moze_intel.projecte.api.nss.NormalizedSimpleStack
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NSSOutput(int amount, moze_intel.projecte.api.nss.NormalizedSimpleStack nss)
    Create an NSSOutput with the specified amount and NSS
    NSSOutput(net.minecraft.world.item.ItemStack item)
    A helper constructor to create an NSSOutput from an ItemStack
    NSSOutput(net.minecraft.world.item.ItemStack item, boolean forceCopyNBT)
    A helper constructor to create an NSSOutput from an ItemStack.
    NSSOutput(net.minecraft.world.level.block.state.BlockState state)
    A helper constructor to create an NSSOutput from an BlockState
    NSSOutput(net.neoforged.neoforge.fluids.FluidStack fluid)
    A helper constructor to create an NSSOutput from an FluidStack
  • Method Summary

    Modifier and Type
    Method
    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)
     
    boolean
    A helper function to check this object has a valid NSS object with amount over 0 and isn't equal to EMPTY.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • EMPTY

      public static final NSSOutput 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 outputted
      nss - The item that will be outputted
    • NSSOutput

      public NSSOutput(net.minecraft.world.item.ItemStack item)
      A helper constructor to create an NSSOutput from an ItemStack
      Parameters:
      item - The ItemStack to be converted
    • NSSOutput

      public NSSOutput(net.minecraft.world.item.ItemStack item, boolean forceCopyNBT)
      A helper constructor to create an NSSOutput from an ItemStack.
      Parameters:
      item - The ItemStack to be converted
      forceCopyNBT - Force copies the NBT tag from ItemStack or just uses NSSItem.createItem(ItemStack)
    • NSSOutput

      public NSSOutput(net.neoforged.neoforge.fluids.FluidStack fluid)
      A helper constructor to create an NSSOutput from an FluidStack
      Parameters:
      fluid - The FluidStack to be converted
    • NSSOutput

      public NSSOutput(net.minecraft.world.level.block.state.BlockState state)
      A helper constructor to create an NSSOutput from an BlockState
      Parameters:
      state - The BlockState to 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

      public String toString()
      Overrides:
      toString in class Object