net.minecraft.block.entity

public class CommandBlockBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable, EntryConvertible

net.minecraft.world.level.block.entity.CommandBlockEntity
net.minecraft.class_2593
net.minecraft.block.entity.CommandBlockBlockEntity

Field summary

Modifier and TypeField
private static final boolean
DEFAULT_POWERED
field_57772
DEFAULT_POWERED
private static final boolean
DEFAULT_CONDITION_MET
field_57773
DEFAULT_AUTO
private static final boolean
DEFAULT_AUTOMATIC
field_57774
DEFAULT_CONDITION_MET
private boolean
powered
field_11919
powered
private boolean
auto
field_11918
auto
private boolean
conditionMet
field_11917
conditionMet
private final CommandBlockExecutor
commandBlock
field_11920
commandExecutor

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
public CommandBlockExecutor
getCommandBlock()
method_11040()
getCommandExecutor()
public void
setPowered(boolean powered)
method_11038(boolean arg0)
setPowered(boolean powered)
public boolean
isPowered()
method_11043()
isPowered()
public boolean
isAutomatic()
method_11042()
isAuto()
public void
setAutomatic(boolean auto)
method_11041(boolean arg0)
setAuto(boolean auto)
public void
onModeSwitch()
method_23359()
updateCommandBlock()
private void
scheduleTick()
method_23360()
scheduleAutoTick()
public boolean
wasConditionMet()
method_11044()
isConditionMet()
public boolean
markConditionMet()
method_11045()
updateConditionMet()
public CommandBlockBlockEntity$Type
getMode()
method_11039()
getCommandBlockType()
public boolean
isConditional()
method_11046()
isConditionalCommandBlock()
protected void
applyImplicitComponents(DataComponentGetter components)
method_57568(class_9473 arg0)
readComponents(ComponentsAccess arg0)
protected void
collectImplicitComponents(DataComponentMap$Builder components)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder arg0)
public void
removeComponentsFromTag(ValueOutput output)
method_57569(class_11372 arg0)
removeFromCopiedStackData(WriteView arg0)