public abstract class CommandBlockLogic extends java.lang.Object implements ICommandSource
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
commandStored |
private ITextComponent |
customName |
private static ITextComponent |
field_226655_c_ |
private long |
lastExecution |
private ITextComponent |
lastOutput |
private int |
successCount |
private static java.text.SimpleDateFormat |
TIMESTAMP_FORMAT |
private boolean |
trackOutput |
private boolean |
updateLastExecution |
DUMMY| Constructor and Description |
|---|
CommandBlockLogic() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLogging() |
java.lang.String |
getCommand() |
abstract CommandSource |
getCommandSource() |
ITextComponent |
getLastOutput() |
ITextComponent |
getName() |
abstract Vec3d |
getPositionVector() |
int |
getSuccessCount() |
abstract ServerWorld |
getWorld() |
void |
read(CompoundNBT nbt) |
void |
sendMessage(ITextComponent component) |
void |
setCommand(java.lang.String command) |
void |
setLastOutput(ITextComponent lastOutputMessage) |
void |
setName(ITextComponent nameIn) |
void |
setSuccessCount(int successCountIn) |
void |
setTrackOutput(boolean shouldTrackOutput) |
boolean |
shouldReceiveErrors() |
boolean |
shouldReceiveFeedback() |
boolean |
shouldTrackOutput() |
boolean |
trigger(World worldIn) |
boolean |
tryOpenEditCommandBlock(PlayerEntity playerIn) |
abstract void |
updateCommand() |
CompoundNBT |
write(CompoundNBT compound) |
private static final java.text.SimpleDateFormat TIMESTAMP_FORMAT
private static final ITextComponent field_226655_c_
private long lastExecution
private boolean updateLastExecution
private int successCount
private boolean trackOutput
private ITextComponent lastOutput
private java.lang.String commandStored
private ITextComponent customName
public int getSuccessCount()
public void setSuccessCount(int successCountIn)
public ITextComponent getLastOutput()
public CompoundNBT write(CompoundNBT compound)
public void read(CompoundNBT nbt)
public void setCommand(java.lang.String command)
public java.lang.String getCommand()
public boolean trigger(World worldIn)
public ITextComponent getName()
public void setName(@Nullable
ITextComponent nameIn)
public void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcepublic abstract ServerWorld getWorld()
public abstract void updateCommand()
public void setLastOutput(@Nullable
ITextComponent lastOutputMessage)
public void setTrackOutput(boolean shouldTrackOutput)
public boolean shouldTrackOutput()
public boolean tryOpenEditCommandBlock(PlayerEntity playerIn)
public abstract Vec3d getPositionVector()
public abstract CommandSource getCommandSource()
public boolean shouldReceiveFeedback()
shouldReceiveFeedback in interface ICommandSourcepublic boolean shouldReceiveErrors()
shouldReceiveErrors in interface ICommandSourcepublic boolean allowLogging()
allowLogging in interface ICommandSource