createPacketInteractionEntity

public PacketInteractionEntity createPacketInteractionEntity(Location location, float width, float height)

Creates a packet-only Interaction entity for detecting player clicks. The entity exists only in packets - it's invisible but clickable. Use setRightClickCallback/setLeftClickCallback to handle interactions.

Return

A packet interaction entity that can receive click events

Parameters

location

The spawn location

width

The width (and depth) of the interaction hitbox

height

The height of the interaction hitbox