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, toUpdatePacketprivate ItemStack record
public void fromTag(BlockState state, CompoundTag tag)
fromTag in class BlockEntitypublic CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntitypublic ItemStack getRecord()
public void setRecord(ItemStack stack)