Package net.minecraftforge.event.level
Class NoteBlockEvent.Change
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.NoteBlockEvent
net.minecraftforge.event.level.NoteBlockEvent.Change
- Enclosing class:
- NoteBlockEvent
Fired when a Noteblock is changed. You can adjust the note it will change to via
NoteBlockEvent.setNote(Note, Octave)
.
Canceling this event will not change the note and also stop the Noteblock from playing it's note.-
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
Modifier and TypeFieldDescriptionprivate final NoteBlockEvent.Note
private final NoteBlockEvent.Octave
-
Constructor Summary
ConstructorDescriptionChange
(Level world, BlockPos pos, BlockState state, int oldNote, int newNote) -
Method Summary
Modifier and TypeMethodDescriptionMethods 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
-
oldNote
-
oldOctave
-
-
Constructor Details
-
Change
-
-
Method Details
-
getOldNote
-
getOldOctave
-