public interface Note extends TileEntity
Modifier and Type | Method and Description |
---|---|
default NoteData |
getNoteData()
Retrieves the
NoteData for this note block. |
default Value<NotePitch> |
note()
|
void |
playNote()
|
createArchetype, getBlock, getLocatableBlock, getType, isValid, setValid
setRawData, validateRawData
getContentVersion, toContainer
getApplicableProperties, getProperty
copyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, require, supports, transform, tryOffer, tryOffer, tryOffer, tryOffer, undo
copy, get, getKeys, getOrElse, getOrNull, getValue, getValues, require, supports, supports
getLocation, getWorld
void playNote()
default NoteData getNoteData()
NoteData
for this note block.default Value<NotePitch> note()
Keys.NOTE_PITCH