Companion

object Companion

Functions

Link copied to clipboard
fun addClickHandler(item: ItemStack, click: EffectiveAbstractInteract.Click, callback: InteractCallback, ifRightClickOpenContainer: Boolean = false, cooldownData: EffectiveAbstractInteract.CooldownData<EffectiveClickable.EventsCallOptions>? = null)

Registers a click handler for stacks matching item: by namespaced key if item is a custom item, otherwise by item's org.bukkit.Material (so pass a plain vanilla stack to match all stacks of that material).

Link copied to clipboard

Clears the per-tick guard tracking players who already interacted with an entity.

Link copied to clipboard

Runs every handler matching the interacted item and returns whether the event should be cancelled. Called by the module's event listeners; rarely needed directly.