Class RenderInstruction
java.lang.Object
xyz.gmitch215.socketmc.instruction.RenderInstruction
- All Implemented Interfaces:
Serializable
,DataHolder
- Direct Known Subclasses:
RenderInstruction.DebugRenderer
,RenderInstruction.GameRenderer
Represents a rendering-related instruction.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
Represents instructions for the Game Renderer. -
Method Summary
Modifier and TypeMethodDescriptiondebug()
Creates a new instruction for the DebugRenderer.game()
Creates a new instruction for the GameRenderer.getData()
Gets an immutable copy for the data for this object.int
Gets the ordinal of the instruction.int
Gets the sub-ordinal for the instruction's operation, or-1
if not set.boolean
isFilled()
Checks if this render instruction has its data filled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.gmitch215.socketmc.util.DataHolder
data, data, data, data
-
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
Description copied from interface:DataHolder
Gets an immutable copy for the data for this object.- Specified by:
getData
in interfaceDataHolder
- 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
-