public static class NoteBlockEvent.Play extends NoteBlockEvent
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
Modifier and Type | Field and Description |
---|---|
private NoteBlockInstrument |
instrument |
Constructor and Description |
---|
Play(World world,
BlockPos pos,
BlockState state,
int note,
NoteBlockInstrument instrument) |
Modifier and Type | Method and Description |
---|---|
NoteBlockInstrument |
getInstrument() |
void |
setInstrument(NoteBlockInstrument instrument) |
getNote, getOctave, getVanillaNoteId, setNote
getPos, getState, getWorld
private NoteBlockInstrument instrument
public Play(World world, BlockPos pos, BlockState state, int note, NoteBlockInstrument instrument)
public NoteBlockInstrument getInstrument()
public void setInstrument(NoteBlockInstrument instrument)