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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classRepresents 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.intGets the ordinal of the instruction.intGets the sub-ordinal for the instruction's operation, or-1if not set.booleanisFilled()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, waitMethods 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-1if 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:DataHolderGets an immutable copy for the data for this object.- Specified by:
getDatain 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
-