Class CommandBlockLogic


  • public abstract class CommandBlockLogic
    extends java.lang.Object
    • Constructor Detail

      • CommandBlockLogic

        public CommandBlockLogic()
    • 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)
        + Returns true 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)