public abstract class CommandBlockBaseLogic extends java.lang.Object implements ICommandSource
| Constructor and Description |
|---|
CommandBlockBaseLogic() |
| 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 WorldServer |
getWorld() |
void |
readDataFromNBT(NBTTagCompound 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(EntityPlayer playerIn) |
abstract void |
updateCommand() |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
public int getSuccessCount()
public void setSuccessCount(int successCountIn)
public ITextComponent getLastOutput()
public NBTTagCompound writeToNBT(NBTTagCompound compound)
public void readDataFromNBT(NBTTagCompound nbt)
public void setCommand(java.lang.String command)
public java.lang.String getCommand()
public boolean trigger(World worldIn)
public ITextComponent getName()
public void setName(ITextComponent nameIn)
public void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcepublic abstract WorldServer getWorld()
public abstract void updateCommand()
public void setLastOutput(@Nullable
ITextComponent lastOutputMessage)
public void setTrackOutput(boolean shouldTrackOutput)
public boolean shouldTrackOutput()
public boolean tryOpenEditCommandBlock(EntityPlayer 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