Record Class WorldVfxIrBuilder.Instruction

java.lang.Object
java.lang.Record
com.render.api.world.WorldVfxIrBuilder.Instruction
Enclosing class:
WorldVfxIrBuilder

public static record WorldVfxIrBuilder.Instruction(WorldVfxIrBuilder.OpCode opcode, WorldVfxStage stage, WorldVfxValueType type, int output, int[] inputs, WorldVfxValue literal, String symbol) extends Record
  • Constructor Details

    • Instruction

      public Instruction(WorldVfxIrBuilder.OpCode opcode, WorldVfxStage stage, WorldVfxValueType type, int output, int[] inputs, WorldVfxValue literal, String symbol)
      Creates an instance of a Instruction record class.
      Parameters:
      opcode - the value for the opcode record component
      stage - the value for the stage record component
      type - the value for the type record component
      output - the value for the output record component
      inputs - the value for the inputs record component
      literal - the value for the literal record component
      symbol - the value for the symbol record component
  • Method Details

    • inputs

      public int[] inputs()
      Returns the value of the inputs record component.
      Returns:
      the value of the inputs record component
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • opcode

      public WorldVfxIrBuilder.OpCode opcode()
      Returns the value of the opcode record component.
      Returns:
      the value of the opcode record component
    • stage

      public WorldVfxStage stage()
      Returns the value of the stage record component.
      Returns:
      the value of the stage record component
    • type

      public WorldVfxValueType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • output

      public int output()
      Returns the value of the output record component.
      Returns:
      the value of the output record component
    • literal

      public WorldVfxValue literal()
      Returns the value of the literal record component.
      Returns:
      the value of the literal record component
    • symbol

      public String symbol()
      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component