PresenceServerPayloadHandler

Handles server-side presence updates and fan-out synchronization.

Functions

Link copied to clipboard
fun handleStatusUpdate(data: PresenceStatusUpdateC2SPacket, context: ServerPlayNetworking.Context)

Applies a client status update and broadcasts it to connected players.

Link copied to clipboard
fun refreshCapabilities(player: ServerPlayer)

Refreshes packet capability cache for a player after connect or protocol changes.

Link copied to clipboard
fun removeStatus(playerUuid: UUID)

Removes cached presence state for a disconnected player.

Link copied to clipboard
fun sendSnapshotTo(playerContext: ServerPlayer)

Sends the latest cached presence snapshot to a joining player.

Link copied to clipboard
fun supportsItemTransfer(player: ServerPlayer): Boolean

Returns true when the player can receive item transfer visualization packets.