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 Summary
ConstructorsConstructorDescriptionInstruction(WorldVfxIrBuilder.OpCode opcode, WorldVfxStage stage, WorldVfxValueType type, int output, int[] inputs, WorldVfxValue literal, String symbol) Creates an instance of aInstructionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.int[]inputs()Returns the value of theinputsrecord component.literal()Returns the value of theliteralrecord component.opcode()Returns the value of theopcoderecord component.intoutput()Returns the value of theoutputrecord component.stage()Returns the value of thestagerecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Instruction
public Instruction(WorldVfxIrBuilder.OpCode opcode, WorldVfxStage stage, WorldVfxValueType type, int output, int[] inputs, WorldVfxValue literal, String symbol) Creates an instance of aInstructionrecord class.- Parameters:
opcode- the value for theopcoderecord componentstage- the value for thestagerecord componenttype- the value for thetyperecord componentoutput- the value for theoutputrecord componentinputs- the value for theinputsrecord componentliteral- the value for theliteralrecord componentsymbol- the value for thesymbolrecord component
-
-
Method Details
-
inputs
public int[] inputs()Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
opcode
Returns the value of theopcoderecord component.- Returns:
- the value of the
opcoderecord component
-
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
output
public int output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
literal
Returns the value of theliteralrecord component.- Returns:
- the value of the
literalrecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-