Class NoteBlockEvent.Change

java.lang.Object
net.neoforged.bus.api.Event
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
NoteBlockEvent

public static class NoteBlockEvent.Change extends NoteBlockEvent implements net.neoforged.bus.api.ICancellableEvent
Fired when a Noteblock is changed. You can adjust the note it will change to via NoteBlockEvent.setNote(Note, Octave). Canceling this event will not change the note and also stop the Noteblock from playing it's note.