public class JukeboxBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Jukebox
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
JukeboxBlockEntity(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 |
dropItem() |
org.cloudburstmc.api.item.ItemStack |
getRecordItem() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
play() |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setRecordItem(org.cloudburstmc.api.item.ItemStack recordItem) |
void |
stop() |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveClientData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic JukeboxBlockEntity(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 org.cloudburstmc.api.item.ItemStack getRecordItem()
getRecordItem in interface org.cloudburstmc.api.blockentity.Jukeboxpublic void setRecordItem(org.cloudburstmc.api.item.ItemStack recordItem)
setRecordItem in interface org.cloudburstmc.api.blockentity.Jukeboxpublic void play()
play in interface org.cloudburstmc.api.blockentity.Jukeboxpublic void stop()
stop in interface org.cloudburstmc.api.blockentity.Jukeboxpublic void dropItem()
dropItem in interface org.cloudburstmc.api.blockentity.Jukeboxpublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.