net.minecraft.world.level.block.entity

public class CommandBlockEntity

extends BlockEntity

css
net.minecraft.world.level.block.entity.CommandBlockEntity
net.minecraft.class_2593
net.minecraft.block.entity.CommandBlockBlockEntity
net.minecraft.src.C_1998_
net.minecraft.world.level.block.entity.TileEntityCommand

Field summary

Modifier and TypeField
private boolean
a
powered
field_11919
powered
f_59123_
private boolean
b
auto
field_11918
auto
f_59124_
private boolean
c
conditionMet
field_11917
conditionMet
f_59125_
private final BaseCommandBlock
d
commandBlock
field_11920
commandExecutor
f_59127_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
b(pj arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(pj arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
public boolean
u()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
m_6326_()
public BaseCommandBlock
c()
getCommandBlock()
method_11040()
getCommandExecutor()
m_59141_()
public void
a(boolean arg0)
setPowered(boolean arg0)
method_11038(boolean arg0)
setPowered(boolean powered)
m_59135_(boolean arg0)
public boolean
d()
isPowered()
method_11043()
isPowered()
m_59142_()
public boolean
f()
isAutomatic()
method_11042()
isAuto()
m_59143_()
public void
b(boolean arg0)
setAutomatic(boolean arg0)
method_11041(boolean arg0)
setAuto(boolean auto)
m_59137_(boolean arg0)
public void
g()
onModeSwitch()
method_23359()
updateCommandBlock()
m_59144_()
private void
x()
scheduleTick()
method_23360()
scheduleAutoTick()
m_59152_()
public boolean
i()
wasConditionMet()
method_11044()
isConditionMet()
m_59145_()
public boolean
j()
markConditionMet()
method_11045()
updateConditionMet()
m_59146_()
public CommandBlockEntity$Mode
t()
getMode()
method_11039()
getCommandBlockType()
m_59148_()
public boolean
w()
isConditional()
method_11046()
isConditionalCommandBlock()
m_59151_()