Package net.minecraftforge.event.level
Class NoteBlockEvent.Play
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.NoteBlockEvent
net.minecraftforge.event.level.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.level.NoteBlockEvent
NoteBlockEvent.Change, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
Nested classes/interfaces inherited from class net.minecraftforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, 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.level.NoteBlockEvent
getNote, getOctave, getVanillaNoteId, setNote
Methods inherited from class net.minecraftforge.event.level.BlockEvent
getLevel, getPos, getState
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
instrument
-
-
Constructor Details
-
Play
-
-
Method Details
-
getInstrument
-
setInstrument
-