Class Instruction

java.lang.Object
xyz.gmitch215.socketmc.instruction.Instruction
All Implemented Interfaces:
Serializable, Paramaterized

public final class Instruction extends Object implements Serializable, Paramaterized
Represents a SocketMC Instruction to be sent to the client.
All instructions are serialized and sent over the network as byte arrays. They contain an id and a list of parameters that are serialized and sent through the player's channel.

Notes

  • Instructions are immutable and cannot be modified after creation.
  • Instructions are serializable and can be sent over the network as byte arrays.
  • All X, Y, Height, Width, and other measurements used in drawing instructions are in pixels.
  • Players render things on the screen based on their own FPS (Frames Per Second), hence the provision of timed renderings in milliseconds.
  • SocketMC v0.1.3 introduced a permission system that allows or disallows specific types of Instructions. If permission is not given, the Instruction will silently fail.
See Also: