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 SummaryFieldsModifier and TypeFieldDescriptionprivate Stringprivate static final Componentprivate longprivate Componentprivate Componentprivate intprivate static final SimpleDateFormatprivate booleanprivate booleanFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanabstract CommandSourceStackabstract ServerLevelgetLevel()getName()abstract Vec3intbooleanabstract booleanisValid()voidload(CompoundTag p_45432_) abstract voidbooleanperformCommand(Level p_45415_) save(CompoundTag p_45422_) voidsendSystemMessage(Component p_220330_) voidsetCommand(String p_45420_) voidsetLastOutput(Component p_45434_) voidvoidsetSuccessCount(int p_45411_) voidsetTrackOutput(boolean p_45429_) booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAccepts
- 
Field Details- 
TIME_FORMAT
- 
DEFAULT_NAME
- 
lastExecutionprivate long lastExecution
- 
updateLastExecutionprivate boolean updateLastExecution
- 
successCountprivate int successCount
- 
trackOutputprivate boolean trackOutput
- 
lastOutput
- 
command
- 
name
 
- 
- 
Constructor Details- 
BaseCommandBlockpublic BaseCommandBlock()
 
- 
- 
Method Details- 
getSuccessCountpublic int getSuccessCount()
- 
setSuccessCountpublic void setSuccessCount(int p_45411_) 
- 
getLastOutput
- 
save
- 
load
- 
setCommand
- 
getCommand
- 
performCommand
- 
getName
- 
setName
- 
sendSystemMessage- Specified by:
- sendSystemMessagein interface- CommandSource
 
- 
getLevel
- 
onUpdatedpublic abstract void onUpdated()
- 
setLastOutput
- 
setTrackOutputpublic void setTrackOutput(boolean p_45429_) 
- 
isTrackOutputpublic boolean isTrackOutput()
- 
usedBy
- 
getPosition
- 
createCommandSourceStack
- 
acceptsSuccesspublic boolean acceptsSuccess()- Specified by:
- acceptsSuccessin interface- CommandSource
 
- 
acceptsFailurepublic boolean acceptsFailure()- Specified by:
- acceptsFailurein interface- CommandSource
 
- 
shouldInformAdminspublic boolean shouldInformAdmins()- Specified by:
- shouldInformAdminsin interface- CommandSource
 
- 
isValidpublic abstract boolean isValid()
 
-