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.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
Change(World world,
BlockPos pos,
BlockState state,
int oldNote,
int newNote) |
修飾子とタイプ | メソッドと説明 |
---|---|
NoteBlockEvent.Note |
getOldNote() |
NoteBlockEvent.Octave |
getOldOctave() |
getNote, getOctave, getVanillaNoteId, setNote
getPos, getState, getWorld
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public Change(World world, BlockPos pos, BlockState state, int oldNote, int newNote)
public NoteBlockEvent.Note getOldNote()
public NoteBlockEvent.Octave getOldOctave()