类 NoteBlockEvent.Change
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.NoteBlockEvent
net.neoforged.neoforge.event.level.NoteBlockEvent.Change
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
NoteBlockEvent
public static class NoteBlockEvent.Change
extends NoteBlockEvent
implements net.neoforged.bus.api.ICancellableEvent
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.-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.NoteBlockEvent
NoteBlockEvent.Change, NoteBlockEvent.Note, NoteBlockEvent.Octave, NoteBlockEvent.Play
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.neoforged.neoforge.event.level.NoteBlockEvent
getNote, getOctave, getVanillaNoteId, setNote
从类继承的方法 net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
字段详细资料
-
oldNote
-
oldOctave
-
-
构造器详细资料
-
Change
-
-
方法详细资料
-
getOldNote
-
getOldOctave
-