public static class NoteBlockEvent.Change extends NoteBlockEvent
NoteBlockEvent.setNote(Note, Octave)
.
Canceling this event will not change the note and also stop the Noteblock from playing it's note.NoteBlockEvent.Change, NoteBlockEvent.Instrument, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
BlockEvent.BreakEvent, BlockEvent.HarvestDropsEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
NoteBlockEvent.Note |
oldNote |
NoteBlockEvent.Octave |
oldOctave |
block, blockMetadata, world, x, y, z
Constructor and Description |
---|
NoteBlockEvent.Change(World world,
int x,
int y,
int z,
int meta,
int oldNote,
int newNote) |
getNote, getOctave, getVanillaNoteId, setNote
getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResult, setup
public final NoteBlockEvent.Note oldNote
public final NoteBlockEvent.Octave oldOctave
public NoteBlockEvent.Change(World world, int x, int y, int z, int meta, int oldNote, int newNote)