Class JukeboxBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.JukeboxBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.Jukebox
public class JukeboxBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.Jukebox
- Author:
- CreeperFace
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionJukeboxBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionvoiddropItem()org.cloudburstmc.api.item.ItemStackbooleanbooleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidplay()voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetRecordItem(org.cloudburstmc.api.item.ItemStack recordItem)voidstop()Methods inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
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, updateNbtMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.blockentity.BlockEntity
close, getBlock, getBlockState, getCustomName, getLevel, getPosition, getType, hasCustomName, isClosed, isMovable, onBreak, onUpdate, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll
-
Constructor Details
-
JukeboxBlockEntity
public JukeboxBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position)
-
-
Method Details
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classBaseBlockEntity
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classBaseBlockEntity
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
getRecordItem
public org.cloudburstmc.api.item.ItemStack getRecordItem()- Specified by:
getRecordItemin interfaceorg.cloudburstmc.api.blockentity.Jukebox
-
setRecordItem
public void setRecordItem(org.cloudburstmc.api.item.ItemStack recordItem)- Specified by:
setRecordItemin interfaceorg.cloudburstmc.api.blockentity.Jukebox
-
play
public void play()- Specified by:
playin interfaceorg.cloudburstmc.api.blockentity.Jukebox
-
stop
public void stop()- Specified by:
stopin interfaceorg.cloudburstmc.api.blockentity.Jukebox
-
dropItem
public void dropItem()- Specified by:
dropItemin interfaceorg.cloudburstmc.api.blockentity.Jukebox
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-