类 BaseCommandBlock
java.lang.Object
net.minecraft.world.level.BaseCommandBlock
- 所有已实现的接口:
CommandSource
-
字段概要
字段修饰符和类型字段说明private String
private static final Component
private long
private Component
private Component
private int
private static final SimpleDateFormat
private boolean
private boolean
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
boolean
abstract CommandSourceStack
abstract ServerLevel
getLevel()
getName()
abstract Vec3
int
boolean
abstract boolean
isValid()
void
load
(CompoundTag pNbt) abstract void
boolean
performCommand
(Level pLevel) save
(CompoundTag pCompound) void
sendSystemMessage
(Component pComponent) void
setCommand
(String pCommand) void
setLastOutput
(Component pLastOutputMessage) void
void
setSuccessCount
(int pSuccessCount) void
setTrackOutput
(boolean pShouldTrackOutput) boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
-
字段详细资料
-
TIME_FORMAT
-
DEFAULT_NAME
-
lastExecution
private long lastExecution -
updateLastExecution
private boolean updateLastExecution -
successCount
private int successCount -
trackOutput
private boolean trackOutput -
lastOutput
-
command
-
name
-
-
构造器详细资料
-
BaseCommandBlock
public BaseCommandBlock()
-
-
方法详细资料
-
getSuccessCount
public int getSuccessCount() -
setSuccessCount
public void setSuccessCount(int pSuccessCount) -
getLastOutput
-
save
-
load
-
setCommand
-
getCommand
-
performCommand
-
getName
-
setName
-
sendSystemMessage
- 指定者:
sendSystemMessage
在接口中CommandSource
-
getLevel
-
onUpdated
public abstract void onUpdated() -
setLastOutput
-
setTrackOutput
public void setTrackOutput(boolean pShouldTrackOutput) -
isTrackOutput
public boolean isTrackOutput() -
usedBy
-
getPosition
-
createCommandSourceStack
-
acceptsSuccess
public boolean acceptsSuccess()- 指定者:
acceptsSuccess
在接口中CommandSource
-
acceptsFailure
public boolean acceptsFailure()- 指定者:
acceptsFailure
在接口中CommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()- 指定者:
shouldInformAdmins
在接口中CommandSource
-
isValid
public abstract boolean isValid()
-