add Interact Handler
fun addInteractHandler(click: EffectiveAbstractInteract.Click, callback: InteractCallback, cooldownData: EffectiveAbstractInteract.CooldownData<EffectiveEntityInteractable.EventsCallOptions>? = null)
Registers an interact handler for entities of this custom type (matched by key). To instead handle a plain vanilla EntityType, register through EffectiveEntityInteractable.addInteractHandler with a non-custom entity.
Parameters
click
left/right interaction that triggers callback
cooldown Data
optional per-player cooldown