Class RenderInstruction

java.lang.Object
xyz.gmitch215.socketmc.instruction.RenderInstruction
All Implemented Interfaces:
Serializable, DataHolder
Direct Known Subclasses:
RenderInstruction.DebugRenderer, RenderInstruction.GameRenderer

public abstract class RenderInstruction extends Object implements Serializable, DataHolder
Represents a rendering-related instruction.
See Also:
  • Method Details

    • getOrdinal

      public int getOrdinal()
      Gets the ordinal of the instruction.
      Returns:
      Instruction Ordinal
    • getSubOrdinal

      public int getSubOrdinal()
      Gets the sub-ordinal for the instruction's operation, or -1 if not set.
      Returns:
      Instruction Sub-Ordinal
    • isFilled

      public boolean isFilled()
      Checks if this render instruction has its data filled.
      Returns:
      Whether the instruction is filled
    • getData

      public Map<String,Object> getData()
      Description copied from interface: DataHolder
      Gets an immutable copy for the data for this object.
      Specified by:
      getData in interface DataHolder
      Returns:
      Screen Data
    • game

      Creates a new instruction for the GameRenderer.
      Returns:
      Game Renderer Instruction
    • debug

      Creates a new instruction for the DebugRenderer.
      Returns:
      Debug Renderer Instruction