PlayerChannelHandler

Manages the network channel for a player, allowing for packet interception and injection.

This is crucial for handling custom packets and entity tracking.

Since

1.15.2

Functions

Link copied to clipboard
@NotNull
abstract fun base(): @NotNull BasePlayer
Returns the base player adapter.
Link copied to clipboard
abstract fun close()
Closes the channel handler, cleaning up resources.
Link copied to clipboard
open fun id(): Int
Returns the integer ID of the object (e.g., entity ID).
Link copied to clipboard
abstract fun isModEnabled(): Boolean
Checks if the meg-mod is enabled.
Link copied to clipboard
@NotNull
open fun player(): @NotNull PlatformPlayer
Returns the Bukkit player associated with this handler.
Link copied to clipboard
abstract fun sendEntityData(@NotNull registry: @NotNull EntityTrackerRegistry)
Sends the correct entity data for a specific tracker to the player.
Link copied to clipboard
@NotNull
open fun uuid(): @NotNull UUID
Returns the UUID of the object.