Package net.minecraft.block.entity
Class CommandBlockBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CommandBlockBlockEntity
public class CommandBlockBlockEntity extends BlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandBlockBlockEntity.Type
-
Field Summary
Fields Modifier and Type Field Description private boolean
auto
private CommandBlockExecutor
commandExecutor
private boolean
conditionMet
private boolean
needsUpdatePacket
private boolean
powered
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description CommandBlockBlockEntity()
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos, toInitialChunkDataTag
-
Field Details
-
powered
private boolean powered -
auto
private boolean auto -
conditionMet
private boolean conditionMet -
needsUpdatePacket
private boolean needsUpdatePacket -
commandExecutor
-
-
Constructor Details
-
CommandBlockBlockEntity
public CommandBlockBlockEntity()
-
-
Method Details
-
toTag
- Overrides:
toTag
in classBlockEntity
-
fromTag
- Overrides:
fromTag
in classBlockEntity
-
toUpdatePacket
- Overrides:
toUpdatePacket
in classBlockEntity
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperator
in classBlockEntity
-
getCommandExecutor
-
setPowered
public void setPowered(boolean powered) -
isPowered
public boolean isPowered() -
isAuto
public boolean isAuto() -
setAuto
public void setAuto(boolean auto) -
method_23359
public void method_23359() -
method_23360
private void method_23360() -
isConditionMet
public boolean isConditionMet() -
updateConditionMet
public boolean updateConditionMet() -
needsUpdatePacket
public boolean needsUpdatePacket() -
setNeedsUpdatePacket
public void setNeedsUpdatePacket(boolean needsUpdatePacket) -
getCommandBlockType
-
isConditionalCommandBlock
public boolean isConditionalCommandBlock() -
cancelRemoval
public void cancelRemoval()- Overrides:
cancelRemoval
in classBlockEntity
-