Package net.minecraftforge.event.world
Class NoteBlockEvent.Change
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.world.BlockEvent
net.minecraftforge.event.world.NoteBlockEvent
net.minecraftforge.event.world.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.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
Modifier and TypeFieldDescriptionprivate final NoteBlockEvent.Note
private final NoteBlockEvent.Octave
-
Constructor Summary
ConstructorDescriptionChange
(World world, BlockPos pos, BlockState state, int oldNote, int newNote) -
Method Summary
Modifier and TypeMethodDescriptionMethods 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
-
oldNote
-
oldOctave
-
-
Constructor Details
-
Change
-
-
Method Details
-
getOldNote
-
getOldOctave
-