net.minecraft.world.level

public abstract class BaseCommandBlock

implements CommandSource

dbb
net.minecraft.world.level.BaseCommandBlock
net.minecraft.class_1918
net.minecraft.world.CommandBlockExecutor
net.minecraft.src.C_1553_
net.minecraft.world.level.CommandBlockListenerAbstract

Field summary

Modifier and TypeField
private static final SimpleDateFormat
b
TIME_FORMAT
field_9169
DATE_FORMAT
f_45397_
private static final Component
c
DEFAULT_NAME
field_21515
DEFAULT_NAME
f_45398_
private long
d
lastExecution
field_9167
lastExecution
f_45399_
private boolean
e
updateLastExecution
field_9166
updateLastExecution
f_45400_
private int
f
successCount
field_9163
successCount
f_45401_
private boolean
g
trackOutput
field_9164
trackOutput
f_45402_
private Component
h
lastOutput
field_9165
lastOutput
f_45403_
private String
i
command
field_9168
command
f_45404_
private Component
j
customName
field_9162
customName
f_314290_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public int
k()
getSuccessCount()
method_8304()
getSuccessCount()
m_45436_()
public void
a(int arg0)
setSuccessCount(int arg0)
method_8298(int arg0)
setSuccessCount(int successCount)
m_45410_(int arg0)
public Component
l()
getLastOutput()
method_8292()
getLastOutput()
m_45437_()
public CompoundTag
a(us arg0, jk$a arg1)
save(CompoundTag arg0, HolderLookup$Provider arg1)
method_8297(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
m_45421_(C_4917_ p_329299_, C_213466_$C_254607_ arg1)
public void
b(us arg0, jk$a arg1)
load(CompoundTag arg0, HolderLookup$Provider arg1)
method_8305(class_2487 arg0, class_7225$class_7874 arg1)
readNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
m_45431_(C_4917_ p_329410_, C_213466_$C_254607_ arg1)
public void
a(String arg0)
setCommand(String arg0)
method_8286(String arg0)
setCommand(String command)
m_6590_(String arg0)
public String
m()
getCommand()
method_8289()
getCommand()
m_45438_()
public boolean
a(dca arg0)
performCommand(Level arg0)
method_8301(class_1937 arg0)
execute(World world)
m_45414_(C_1596_ arg0)
public Component
n()
getName()
method_8299()
getCustomName()
m_45439_()
public Component
o()
getCustomName()
method_57558()
getCustomNameNullable()
m_323895_()
public void
b(xp arg0)
setCustomName(Component arg0)
method_8290(class_2561 arg0)
setCustomName(Text customName)
m_321484_(C_4996_ arg0)
public void
a(xp arg0)
sendSystemMessage(Component arg0)
method_43496(class_2561 arg0)
sendMessage(Text arg0)
m_213846_(C_4996_ arg0)
public abstract ServerLevel
e()
getLevel()
method_8293()
getWorld()
m_5991_()
public abstract void
f()
onUpdated()
method_8295()
markDirty()
m_7368_()
public void
c(xp arg0)
setLastOutput(Component arg0)
method_8291(class_2561 arg0)
setLastOutput(Text lastOutput)
m_45433_(C_4996_ arg0)
public void
a(boolean arg0)
setTrackOutput(boolean arg0)
method_8287(boolean arg0)
setTrackOutput(boolean trackOutput)
m_45428_(boolean arg0)
public boolean
p()
isTrackOutput()
method_8296()
isTrackingOutput()
m_45440_()
public InteractionResult
a(cmz arg0)
usedBy(Player arg0)
method_8288(class_1657 arg0)
interact(PlayerEntity player)
m_45412_(C_1141_ arg0)
public abstract Vec3
g()
getPosition()
method_8300()
getPos()
m_6607_()
public abstract CommandSourceStack
i()
createCommandSourceStack()
method_8303()
getSource()
m_6712_()
public boolean
l_()
acceptsSuccess()
method_9200()
shouldReceiveFeedback()
m_6999_()
public boolean
w_()
acceptsFailure()
method_9202()
shouldTrackOutput()
m_7028_()
public boolean
U_()
shouldInformAdmins()
method_9201()
shouldBroadcastConsoleToOps()
m_6102_()
public abstract boolean
j()
isValid()
method_52175()
isEditable()
m_288209_()