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, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
NoteBlockEvent.Note |
oldNote |
NoteBlockEvent.Octave |
oldOctave |
pos, state, world
Constructor and Description |
---|
Change(World world,
BlockPos pos,
IBlockState state,
int oldNote,
int newNote) |
getNote, getOctave, getVanillaNoteId, setNote
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final NoteBlockEvent.Note oldNote
public final NoteBlockEvent.Octave oldOctave
public Change(World world, BlockPos pos, IBlockState state, int oldNote, int newNote)