public abstract class CommandBlockBaseLogic extends java.lang.Object implements ICommandSender
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commandStored |
private java.lang.String |
customName |
private long |
lastExecution |
private ITextComponent |
lastOutput |
private CommandResultStats |
resultStats |
private int |
successCount |
private static java.text.SimpleDateFormat |
TIMESTAMP_FORMAT |
private boolean |
trackOutput |
private boolean |
updateLastExecution |
Constructor and Description |
---|
CommandBlockBaseLogic() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUseCommand(int permLevel,
java.lang.String commandName) |
abstract void |
fillInInfo(io.netty.buffer.ByteBuf buf) |
java.lang.String |
getCommand() |
abstract int |
getCommandBlockType() |
CommandResultStats |
getCommandResultStats() |
ITextComponent |
getLastOutput() |
java.lang.String |
getName() |
int |
getSuccessCount() |
void |
readDataFromNBT(NBTTagCompound nbt) |
boolean |
sendCommandFeedback() |
void |
sendMessage(ITextComponent component) |
void |
setCommand(java.lang.String command) |
void |
setCommandStat(CommandResultStats.Type type,
int amount) |
void |
setLastOutput(ITextComponent lastOutputMessage) |
void |
setName(java.lang.String name) |
void |
setSuccessCount(int successCountIn) |
void |
setTrackOutput(boolean shouldTrackOutput) |
boolean |
shouldTrackOutput() |
boolean |
trigger(World worldIn) |
boolean |
tryOpenEditCommandBlock(EntityPlayer playerIn) |
abstract void |
updateCommand() |
NBTTagCompound |
writeToNBT(NBTTagCompound p_189510_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandSenderEntity, getDisplayName, getEntityWorld, getPosition, getPositionVector, getServer
private static final java.text.SimpleDateFormat TIMESTAMP_FORMAT
private long lastExecution
private boolean updateLastExecution
private int successCount
private boolean trackOutput
private ITextComponent lastOutput
private java.lang.String commandStored
private java.lang.String customName
private final CommandResultStats resultStats
public int getSuccessCount()
public void setSuccessCount(int successCountIn)
public ITextComponent getLastOutput()
public NBTTagCompound writeToNBT(NBTTagCompound p_189510_1_)
public void readDataFromNBT(NBTTagCompound nbt)
public boolean canUseCommand(int permLevel, java.lang.String commandName)
canUseCommand
in interface ICommandSender
public void setCommand(java.lang.String command)
public java.lang.String getCommand()
public boolean trigger(World worldIn)
public java.lang.String getName()
getName
in interface ICommandSender
public void setName(java.lang.String name)
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSender
public boolean sendCommandFeedback()
sendCommandFeedback
in interface ICommandSender
public void setCommandStat(CommandResultStats.Type type, int amount)
setCommandStat
in interface ICommandSender
public abstract void updateCommand()
public abstract int getCommandBlockType()
public abstract void fillInInfo(io.netty.buffer.ByteBuf buf)
public void setLastOutput(@Nullable ITextComponent lastOutputMessage)
public void setTrackOutput(boolean shouldTrackOutput)
public boolean shouldTrackOutput()
public boolean tryOpenEditCommandBlock(EntityPlayer playerIn)
public CommandResultStats getCommandResultStats()