public abstract class CommandBlockLogic extends java.lang.Object implements ICommandSource
field_213139_a_| 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) |
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(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