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