Class RequirementApplier

    • Constructor Detail

      • RequirementApplier

        public RequirementApplier​(List<RequirementSet> requirementSets,
                                  ActionApplier failActionApplier)
        Create a new requirement applier
        Parameters:
        requirementSets - the requirement sets
        failActionApplier - the fail action applier
      • RequirementApplier

        public RequirementApplier​(Menu menu,
                                  String name,
                                  Map<String,​Object> section)
        Create a new requirement applier
        Parameters:
        menu - the menu
        name - the name
        section - the section
    • Method Detail

      • convertClickRequirementAppliers

        public static Map<me.hsgamer.hscore.bukkit.clicktype.BukkitClickType,​RequirementApplier> convertClickRequirementAppliers​(Map<String,​Object> section,
                                                                                                                                       WrappedButton button)
        Convert the section to a map of click requirement appliers
        Parameters:
        section - the section
        button - the button
        Returns:
        the map
      • isEmpty

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

        public Requirement.Result getResult​(UUID uuid)
        Get the result of the requirement
        Parameters:
        uuid - the unique id
        Returns:
        the result
      • 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>