captureDispatch
Captures the exact interaction mapping currently registered for an entity ID.
Packet listeners use this before leaving the network thread. The captured dispatch refuses to invoke its handler if the numeric entity ID is removed or replaced before the scheduled Bukkit task runs.
Return
a dispatch bound to the current mapping, or null when none is registered
Parameters
entityId
entity ID received from the client