public class CommandBlockBlockEntity extends BlockEntity
Modifier and Type | Class and Description |
---|---|
static class |
CommandBlockBlockEntity.Type |
Modifier and Type | Field and Description |
---|---|
private boolean |
auto |
private CommandBlockExecutor |
commandExecutor |
private boolean |
conditionMet |
private boolean |
needsUpdatePacket |
private boolean |
powered |
pos, removed, world
Constructor and Description |
---|
CommandBlockBlockEntity() |
Modifier and Type | Method and Description |
---|---|
void |
cancelRemoval() |
boolean |
copyItemDataRequiresOperator() |
void |
fromTag(BlockState state,
CompoundTag tag) |
CommandBlockBlockEntity.Type |
getCommandBlockType() |
CommandBlockExecutor |
getCommandExecutor() |
boolean |
isAuto() |
boolean |
isConditionalCommandBlock() |
boolean |
isConditionMet() |
boolean |
isPowered() |
void |
method_23359() |
private void |
method_23360() |
boolean |
needsUpdatePacket() |
void |
setAuto(boolean auto) |
void |
setNeedsUpdatePacket(boolean needsUpdatePacket) |
void |
setPowered(boolean powered) |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
boolean |
updateConditionMet() |
applyMirror, applyRotation, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag
private boolean powered
private boolean auto
private boolean conditionMet
private boolean needsUpdatePacket
private final CommandBlockExecutor commandExecutor
public CompoundTag toTag(CompoundTag tag)
toTag
in class BlockEntity
public void fromTag(BlockState state, CompoundTag tag)
fromTag
in class BlockEntity
@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket
in class BlockEntity
public boolean copyItemDataRequiresOperator()
copyItemDataRequiresOperator
in class BlockEntity
public CommandBlockExecutor getCommandExecutor()
public void setPowered(boolean powered)
public boolean isPowered()
public boolean isAuto()
public void setAuto(boolean auto)
public void method_23359()
private void method_23360()
public boolean isConditionMet()
public boolean updateConditionMet()
public boolean needsUpdatePacket()
public void setNeedsUpdatePacket(boolean needsUpdatePacket)
public CommandBlockBlockEntity.Type getCommandBlockType()
public boolean isConditionalCommandBlock()
public void cancelRemoval()
cancelRemoval
in class BlockEntity