public class MusicBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Noteblock
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
MusicBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeNote() |
byte |
getNote() |
boolean |
isPowered() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setNote(int note) |
void |
setPowered(boolean powered) |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, isSpawnable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic MusicBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseBlockEntitypublic boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic byte getNote()
getNote in interface org.cloudburstmc.api.blockentity.Noteblockpublic void setNote(int note)
setNote in interface org.cloudburstmc.api.blockentity.Noteblockpublic void changeNote()
changeNote in interface org.cloudburstmc.api.blockentity.Noteblockpublic boolean isPowered()
isPowered in interface org.cloudburstmc.api.blockentity.Noteblockpublic void setPowered(boolean powered)
setPowered in interface org.cloudburstmc.api.blockentity.NoteblockCopyright © 2021. All rights reserved.