PresenceItemTransferTracker

Tracks container snapshots and broadcasts item transfer visuals.

Functions

Link copied to clipboard
fun clearPlayer(playerUuid: UUID)
Link copied to clipboard
fun onBlockUsed(player: ServerPlayer, blockPos: BlockPos)

Records the most recent interacted block position for transfer visuals.

Link copied to clipboard
fun onContainerClickPost(menu: AbstractContainerMenu, player: ServerPlayer, clickType: ClickType)

Compares pre/post snapshots and emits transfer packets to nearby players.

Link copied to clipboard
fun onContainerClickPre(menu: AbstractContainerMenu, player: ServerPlayer, clickType: ClickType)

Captures a pre-click snapshot for transfer-diff detection.