net.minecraft.world.level.block.entity

public class CommandBlockEntity

extends BlockEntity

ciw
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 boolean
d
sendToClient
field_11916
needsUpdatePacket
f_59126_
private final BaseCommandBlock
e
commandBlock
field_11920
commandExecutor
f_59127_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public CompoundTag
b(na arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_6945_(C_4917_ arg0)
save(NBTTagCompound arg0)
public void
a(na arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
load(NBTTagCompound arg0)
public ClientboundBlockEntityDataPacket
Y_()
getUpdatePacket()
method_16886()
toUpdatePacket()
m_7033_()
getUpdatePacket()
public boolean
q()
onlyOpCanSetNbt()
method_11011()
copyItemDataRequiresOperator()
m_6326_()
isFilteredNBT()
public BaseCommandBlock
d()
getCommandBlock()
method_11040()
getCommandExecutor()
m_59141_()
getCommandBlock()
public void
a(boolean arg0)
setPowered(boolean arg0)
method_11038(boolean arg0)
setPowered(boolean powered)
m_59135_(boolean arg0)
public boolean
f()
isPowered()
method_11043()
isPowered()
m_59142_()
public boolean
g()
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
h()
onModeSwitch()
method_23359()
updateCommandBlock()
m_59144_()
private void
v()
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 boolean
s()
isSendToClient()
method_11036()
needsUpdatePacket()
m_59147_()
public void
c(boolean arg0)
setSendToClient(boolean arg0)
method_11037(boolean arg0)
setNeedsUpdatePacket(boolean needsUpdatePacket)
m_59139_(boolean arg0)
public CommandBlockEntity$Mode
t()
getMode()
method_11039()
getCommandBlockType()
m_59148_()
public boolean
u()
isConditional()
method_11046()
isConditionalCommandBlock()
m_59151_()