Package net.minecraft.world.level
Class BaseCommandBlock
java.lang.Object
net.minecraft.world.level.BaseCommandBlock
- All Implemented Interfaces:
CommandSource
- Direct Known Subclasses:
MinecartCommandBlock.MinecartCommandBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final Componentprivate longprivate Componentprivate Componentprivate intprivate static final SimpleDateFormatprivate booleanprivate booleanFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanabstract CommandSourceStackabstract ServerLevelgetLevel()getName()abstract Vec3intbooleanvoidload(CompoundTag p_45432_) abstract voidbooleanperformCommand(Level p_45415_) save(CompoundTag p_45422_) voidsendMessage(Component p_45426_, UUID p_45427_) voidsetCommand(String p_45420_) voidsetLastOutput(Component p_45434_) voidvoidsetSuccessCount(int p_45411_) voidsetTrackOutput(boolean p_45429_) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
-
Field Details
-
TIME_FORMAT
-
DEFAULT_NAME
-
lastExecution
private long lastExecution -
updateLastExecution
private boolean updateLastExecution -
successCount
private int successCount -
trackOutput
private boolean trackOutput -
lastOutput
-
command
-
name
-
-
Constructor Details
-
BaseCommandBlock
public BaseCommandBlock()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount() -
setSuccessCount
public void setSuccessCount(int p_45411_) -
getLastOutput
-
save
-
load
-
setCommand
-
getCommand
-
performCommand
-
getName
-
setName
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSource
-
getLevel
-
onUpdated
public abstract void onUpdated() -
setLastOutput
-
setTrackOutput
public void setTrackOutput(boolean p_45429_) -
isTrackOutput
public boolean isTrackOutput() -
usedBy
-
getPosition
-
createCommandSourceStack
-
acceptsSuccess
public boolean acceptsSuccess()- Specified by:
acceptsSuccessin interfaceCommandSource
-
acceptsFailure
public boolean acceptsFailure()- Specified by:
acceptsFailurein interfaceCommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdminsin interfaceCommandSource
-