Package net.minecraft.tileentity
Class CommandBlockLogic
java.lang.Object
net.minecraft.tileentity.CommandBlockLogic
- All Implemented Interfaces:
ICommandSource
- Direct Known Subclasses:
CommandBlockMinecartEntity.MinecartCommandLogic
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private static final ITextComponent
private long
private ITextComponent
private ITextComponent
private int
private static final SimpleDateFormat
private boolean
private boolean
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
abstract CommandSource
abstract ServerWorld
getLevel()
getName()
abstract Vector3d
int
boolean
void
load
(CompoundNBT p_145759_1_) abstract void
boolean
performCommand
(World p_145755_1_) save
(CompoundNBT p_189510_1_) void
sendMessage
(ITextComponent p_145747_1_, UUID p_145747_2_) void
setCommand
(String p_145752_1_) void
setLastOutput
(ITextComponent p_145750_1_) void
setName
(ITextComponent p_207405_1_) void
setSuccessCount
(int p_184167_1_) void
setTrackOutput
(boolean p_175573_1_) boolean
usedBy
(PlayerEntity p_175574_1_)
-
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
-
CommandBlockLogic
public CommandBlockLogic()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount() -
setSuccessCount
public void setSuccessCount(int p_184167_1_) -
getLastOutput
-
save
-
load
-
setCommand
-
getCommand
-
performCommand
-
getName
-
setName
-
sendMessage
- Specified by:
sendMessage
in interfaceICommandSource
-
getLevel
-
onUpdated
public abstract void onUpdated() -
setLastOutput
-
setTrackOutput
public void setTrackOutput(boolean p_175573_1_) -
isTrackOutput
public boolean isTrackOutput() -
usedBy
-
getPosition
-
createCommandSourceStack
-
acceptsSuccess
public boolean acceptsSuccess()- Specified by:
acceptsSuccess
in interfaceICommandSource
-
acceptsFailure
public boolean acceptsFailure()- Specified by:
acceptsFailure
in interfaceICommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdmins
in interfaceICommandSource
-