public static class NoteBlockEvent.Play extends NoteBlockEvent
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 |
---|
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, setNote
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public Play(World world, BlockPos pos, IBlockState state, int note, int instrument)
public NoteBlockEvent.Instrument getInstrument()
public void setInstrument(NoteBlockEvent.Instrument instrument)