public class ComparatorBlockEntity extends BlockEntity
Modifier and Type | Field and Description |
---|---|
private int |
outputSignal |
pos, removed, world
Constructor and Description |
---|
ComparatorBlockEntity() |
Modifier and Type | Method and Description |
---|---|
void |
fromTag(BlockState state,
CompoundTag tag) |
int |
getOutputSignal() |
void |
setOutputSignal(int outputSignal) |
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
public CompoundTag toTag(CompoundTag tag)
toTag
in class BlockEntity
public void fromTag(BlockState state, CompoundTag tag)
fromTag
in class BlockEntity
public int getOutputSignal()
public void setOutputSignal(int outputSignal)