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 voidaddChatMessage(IChatComponent ichatcomponent)+ Send a chat message to the CommandSenderbooleancanCommandSenderUseCommand(int i, java.lang.String var2)+ Returnstrueif the CommandSender is allowed to execute the command,falseif notabstract intfunc_145751_f()abstract voidfunc_145757_a(ByteBuf var1)java.lang.StringgetCommand()+ Returns the command of the command block.IChatComponentgetDisplayName()+ Get the formatted ChatComponent that will be used for the sender's username in chatIChatComponentgetLastOutput()+ Returns the lastOutput.java.lang.StringgetName()+ Gets the name of this command sender (usually username, but possibly "Rcon")intgetSuccessCount()+ returns the successCount int.voidreadDataFromNBT(NBTTagCompound nbt)+ Reads NBT formatting and stored data into variables.booleansendCommandFeedback()+ Returns true if the command sender should be sent feedback about executed commandsvoidsetCommand(java.lang.String command)+ Sets the command.voidsetLastOutput(IChatComponent lastOutputMessage)voidsetName(java.lang.String parString1)voidsetTrackOutput(boolean shouldTrackOutput)booleanshouldTrackOutput()voidtrigger(World worldIn)booleantryOpenEditCommandBlock(EntityPlayer playerIn)abstract voidupdateCommand()voidwriteDataToNBT(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)+ Returnstrueif the CommandSender is allowed to execute the command,falseif 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)
-
-