public class MCNoteBlockPlayEvent extends MCNoteBlockEvent implements crafttweaker.api.event.NoteBlockPlayEvent
| Constructor and Description |
|---|
MCNoteBlockPlayEvent(net.minecraftforge.event.world.NoteBlockEvent.Play event) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInstrument() |
boolean |
isCanceled() |
void |
setCanceled(boolean canceled) |
void |
setInstrument(java.lang.String instrument) |
getNote, getNoteId, getOctave, setBoth, setNote, setOctavegetBlockState, getPosition, getWorldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNote, getNoteId, getOctave, setBoth, setNote, setOctavegetBlock, getBlockState, getWorldpublic MCNoteBlockPlayEvent(net.minecraftforge.event.world.NoteBlockEvent.Play event)
public java.lang.String getInstrument()
getInstrument in interface crafttweaker.api.event.NoteBlockPlayEventpublic void setInstrument(java.lang.String instrument)
setInstrument in interface crafttweaker.api.event.NoteBlockPlayEventpublic boolean isCanceled()
isCanceled in interface crafttweaker.api.event.IEventCancelablepublic void setCanceled(boolean canceled)
setCanceled in interface crafttweaker.api.event.IEventCancelable