PacketContext

public interface PacketContext

Interface defining a context used during packet processing. Allows access to additional information, such as the source/target of the player, or the correct task queue to enqueue synchronization-requiring code on.

Functions

getPacketEnvironment
Link copied to clipboard
abstract EnvType getPacketEnvironment()
Get the environment associated with the packet.
getPlayer
Link copied to clipboard
abstract PlayerEntity getPlayer()
Get the player associated with the packet.
getTaskQueue
Link copied to clipboard
abstract ThreadExecutor getTaskQueue()
Get the task queue for a given side.

Sources

jvm source
Link copied to clipboard