Class CommandBlockLogic

    • Field Detail

      • TIME_FORMAT

        private static final java.text.SimpleDateFormat TIME_FORMAT
      • lastExecution

        private long lastExecution
      • updateLastExecution

        private boolean updateLastExecution
      • successCount

        private int successCount
      • trackOutput

        private boolean trackOutput
      • command

        private java.lang.String command
    • Constructor Detail

      • CommandBlockLogic

        public CommandBlockLogic()
    • Method Detail

      • getSuccessCount

        public int getSuccessCount()
      • setSuccessCount

        public void setSuccessCount​(int p_184167_1_)
      • setCommand

        public void setCommand​(java.lang.String p_145752_1_)
      • getCommand

        public java.lang.String getCommand()
      • performCommand

        public boolean performCommand​(World p_145755_1_)
      • setName

        public void setName​(@Nullable
                            ITextComponent p_207405_1_)
      • onUpdated

        public abstract void onUpdated()
      • setLastOutput

        public void setLastOutput​(@Nullable
                                  ITextComponent p_145750_1_)
      • setTrackOutput

        public void setTrackOutput​(boolean p_175573_1_)
      • isTrackOutput

        public boolean isTrackOutput()
      • getPosition

        public abstract Vector3d getPosition()
      • createCommandSourceStack

        public abstract CommandSource createCommandSourceStack()