net.minecraft.world.level

public abstract class BaseCommandBlock

implements CommandSource

cfy
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
name
field_9162
customName
f_45405_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public int
j()
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
k()
getLastOutput()
method_8292()
getLastOutput()
m_45437_()
public CompoundTag
a(pj arg0)
save(CompoundTag arg0)
method_8297(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_45421_(C_4917_ arg0)
public void
b(pj arg0)
load(CompoundTag arg0)
method_8305(class_2487 arg0)
readNbt(NbtCompound nbt)
m_45431_(C_4917_ arg0)
public void
a(String arg0)
setCommand(String arg0)
method_8286(String arg0)
setCommand(String command)
m_6590_(String arg0)
public String
l()
getCommand()
method_8289()
getCommand()
m_45438_()
public boolean
a(cgx arg0)
performCommand(Level arg0)
method_8301(class_1937 arg0)
execute(World world)
m_45414_(C_1596_ arg0)
public Component
m()
getName()
method_8299()
getCustomName()
m_45439_()
public void
b(rq arg0)
setName(Component arg0)
method_8290(class_2561 arg0)
setCustomName(Text name)
m_45423_(C_4996_ arg0)
public void
a(rq 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(rq 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
n()
isTrackOutput()
method_8296()
isTrackingOutput()
m_45440_()
public InteractionResult
a(buc 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
i_()
acceptsSuccess()
method_9200()
shouldReceiveFeedback()
m_6999_()
public boolean
j_()
acceptsFailure()
method_9202()
shouldTrackOutput()
m_7028_()
public boolean
G_()
shouldInformAdmins()
method_9201()
shouldBroadcastConsoleToOps()
m_6102_()