Class ActionApplier

    • Field Detail

      • EMPTY

        public static final ActionApplier EMPTY
        The empty action applier
    • Constructor Detail

      • ActionApplier

        public ActionApplier​(List<me.hsgamer.hscore.action.common.Action> actions,
                             me.hsgamer.hscore.common.StringReplacer replacer)
        Create a new action applier
        Parameters:
        actions - the actions
        replacer - the replacer
      • ActionApplier

        public ActionApplier​(Menu menu,
                             Object value)
        Create a new action applier
        Parameters:
        menu - the menu
        value - the value
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Check if the applier is empty
        Returns:
        true if it is empty
      • acceptWithoutNext

        public void acceptWithoutNext​(UUID uuid,
                                      me.hsgamer.hscore.task.element.TaskProcess process)
        Apply the action to the process without the next action
        Parameters:
        uuid - the unique id
        process - the process
      • accept

        public void accept​(UUID uuid,
                           me.hsgamer.hscore.task.element.TaskProcess process)
        Specified by:
        accept in interface BiConsumer<UUID,​me.hsgamer.hscore.task.element.TaskProcess>