Package net.minecraftforge.event.world
Class NoteBlockEvent.Play
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.world.BlockEvent
net.minecraftforge.event.world.NoteBlockEvent
net.minecraftforge.event.world.NoteBlockEvent.Play
- Enclosing class:
- NoteBlockEvent
Fired when a Noteblock plays it's note. You can override the note and instrument
Canceling this event will stop the note from playing.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.world.NoteBlockEvent
NoteBlockEvent.Change, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
Nested classes/interfaces inherited from class net.minecraftforge.event.world.BlockEvent
BlockEvent.BlockToolInteractEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlay(Level world, BlockPos pos, BlockState state, int note, NoteBlockInstrument instrument)
-
Method Summary
Methods inherited from class net.minecraftforge.event.world.NoteBlockEvent
getNote, getOctave, getVanillaNoteId, setNote
Methods inherited from class net.minecraftforge.event.world.BlockEvent
getPos, getState, getWorld
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
instrument
-
-
Constructor Details
-
Play
-
-
Method Details
-
getInstrument
-
setInstrument
-