public class JukeboxBlockEntity extends BlockEntity implements Clearable
Modifier and Type | Field and Description |
---|---|
private ItemStack |
record |
pos, removed, world
Constructor and Description |
---|
JukeboxBlockEntity() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
fromTag(BlockState state,
CompoundTag tag) |
ItemStack |
getRecord() |
void |
setRecord(ItemStack stack) |
CompoundTag |
toTag(CompoundTag tag) |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag, toUpdatePacket
private ItemStack record
public void fromTag(BlockState state, CompoundTag tag)
fromTag
in class BlockEntity
public CompoundTag toTag(CompoundTag tag)
toTag
in class BlockEntity
public ItemStack getRecord()
public void setRecord(ItemStack stack)