Package net.minecraft.command.server
Class CommandBlockLogic
- java.lang.Object
-
- net.minecraft.command.server.CommandBlockLogic
-
public abstract class CommandBlockLogic extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommandBlockLogic()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addChatMessage(IChatComponent ichatcomponent)
+ Send a chat message to the CommandSenderboolean
canCommandSenderUseCommand(int i, java.lang.String var2)
+ Returnstrue
if the CommandSender is allowed to execute the command,false
if notabstract int
func_145751_f()
abstract void
func_145757_a(ByteBuf var1)
java.lang.String
getCommand()
+ Returns the command of the command block.IChatComponent
getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chatIChatComponent
getLastOutput()
+ Returns the lastOutput.java.lang.String
getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")int
getSuccessCount()
+ returns the successCount int.void
readDataFromNBT(NBTTagCompound nbt)
+ Reads NBT formatting and stored data into variables.boolean
sendCommandFeedback()
+ Returns true if the command sender should be sent feedback about executed commandsvoid
setCommand(java.lang.String command)
+ Sets the command.void
setLastOutput(IChatComponent lastOutputMessage)
void
setName(java.lang.String parString1)
void
setTrackOutput(boolean shouldTrackOutput)
boolean
shouldTrackOutput()
void
trigger(World worldIn)
boolean
tryOpenEditCommandBlock(EntityPlayer playerIn)
abstract void
updateCommand()
void
writeDataToNBT(NBTTagCompound tagCompound)
+ Stores data to NBT format.
-
-
-
Method Detail
-
getSuccessCount
public int getSuccessCount()
+ returns the successCount int.
-
getLastOutput
public IChatComponent getLastOutput()
+ Returns the lastOutput.
-
writeDataToNBT
public void writeDataToNBT(NBTTagCompound tagCompound)
+ Stores data to NBT format.
-
readDataFromNBT
public void readDataFromNBT(NBTTagCompound nbt)
+ Reads NBT formatting and stored data into variables.
-
canCommandSenderUseCommand
public boolean canCommandSenderUseCommand(int i, java.lang.String var2)
+ Returnstrue
if the CommandSender is allowed to execute the command,false
if not
-
setCommand
public void setCommand(java.lang.String command)
+ Sets the command.
-
getCommand
public java.lang.String getCommand()
+ Returns the command of the command block.
-
trigger
public void trigger(World worldIn)
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")
-
getDisplayName
public IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat
-
setName
public void setName(java.lang.String parString1)
-
addChatMessage
public void addChatMessage(IChatComponent ichatcomponent)
+ Send a chat message to the CommandSender
-
sendCommandFeedback
public boolean sendCommandFeedback()
+ Returns true if the command sender should be sent feedback about executed commands
-
updateCommand
public abstract void updateCommand()
-
func_145751_f
public abstract int func_145751_f()
-
func_145757_a
public abstract void func_145757_a(ByteBuf var1)
-
setLastOutput
public void setLastOutput(IChatComponent lastOutputMessage)
-
setTrackOutput
public void setTrackOutput(boolean shouldTrackOutput)
-
shouldTrackOutput
public boolean shouldTrackOutput()
-
tryOpenEditCommandBlock
public boolean tryOpenEditCommandBlock(EntityPlayer playerIn)
-
-