public static class NoteBlockEvent.Play extends NoteBlockEvent
NoteBlockEvent.Change, NoteBlockEvent.Instrument, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private NoteBlockEvent.Instrument |
instrument |
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
private NoteBlockEvent.Instrument instrument
public Play(World world, BlockPos pos, IBlockState state, int note, int instrument)
public NoteBlockEvent.Instrument getInstrument()
public void setInstrument(NoteBlockEvent.Instrument instrument)