registerNoteBlockChange

open fun registerNoteBlockChange(method: Any): EventTrigger

Registers a new trigger that runs before a noteblock is changed.

Passes through four arguments:

  • The note block change event's Vector3f position

  • The note block change event's note's name

  • The note block change event's octave

  • The note block change event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard