addInteractHandler

fun addInteractHandler(click: EffectiveAbstractInteract.Click, callback: (EffectiveBlockInteractable.EventsCallOptions) -> EffectiveAbstractInteract.Result)

Registers an interact handler for blocks of this custom type (matched by note-block state). RIGHT = right-click on the block, LEFT = left-click (attack) it.

Parameters

click

left/right interaction that triggers callback