public static class NoteBlockEvent.Play extends NoteBlockEvent
NoteBlockEvent.Change, NoteBlockEvent.Instrument, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.PlayBlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEventEvent.HasResult, Event.Result| Constructor and Description |
|---|
Play(World world,
BlockPos pos,
IBlockState state,
int note,
int instrument) |
| Modifier and Type | Method and Description |
|---|---|
NoteBlockEvent.Instrument |
getInstrument() |
void |
setInstrument(NoteBlockEvent.Instrument instrument) |
getNote, getOctave, getVanillaNoteId, setNotegetPos, getState, getWorldgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic Play(World world, BlockPos pos, IBlockState state, int note, int instrument)
public NoteBlockEvent.Instrument getInstrument()
public void setInstrument(NoteBlockEvent.Instrument instrument)