Class IOValue

java.lang.Object
com.saicone.rtag.registry.IOValue

@Experimental public class IOValue extends Object
Class to create I/O objects that require a certain level of registry.
  • Constructor Details

    • IOValue

      public IOValue()
  • Method Details

    • createInput

      public static Object createInput(Object compound)
      Create a tag value input using provided objects.
      This object is used to keep tract of Minecraft serialization process.
      Parameters:
      compound - the compound that will be inserted.
      Returns:
      a newly generated tag value input.
    • createInput

      public static Object createInput(Object reporter, Object provider, Object compound)
      Create a tag value input using provided objects.
      This object is used to keep track of Minecraft serialization process.
      Parameters:
      reporter - the reporter to append errors.
      provider - the access provider.
      compound - the compound that will be inserted.
      Returns:
      a newly generated tag value input.
    • createOutput

      public static Object createOutput()
      Create a tag value output-
      This object is used to keep track of Minecraft serialization process.
      Returns:
      a newly generated tag value output.
    • createOutput

      public static Object createOutput(Object reporter, Object provider)
      Create a tag value output using provided objects.
      This object is used to keep track of Minecraft serialization process.
      Parameters:
      reporter - the reporter to append errors.
      provider - the access provider.
      Returns:
      a newly generated tag value output.
    • createOutputWrapping

      public static Object createOutputWrapping(Object reporter, Object provider, Object compound)
      Create a tag value output using provided objects.
      This object is used to keep track of Minecraft serialization process.
      Parameters:
      reporter - the reporter to append errors.
      provider - the access provider.
      compound - the tag compound to insert information.
      Returns:
      a newly generated tag value output.
    • result

      public static Object result(Object output)
      Get the result of a tag value output.
      Parameters:
      output - the tag value output.
      Returns:
      a tag compound.