Package me.hsgamer.bettergui.requirement
Class RequirementApplier
- java.lang.Object
-
- me.hsgamer.bettergui.requirement.RequirementApplier
-
- All Implemented Interfaces:
BiConsumer<UUID,TaskProcess>,ProcessApplier
public class RequirementApplier extends Object implements ProcessApplier
The requirement setting used in Menus/Buttons/...
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(UUID uuid, TaskProcess process)static Map<AdvancedClickType,RequirementApplier>convertClickRequirementAppliers(Map<String,Object> section, WrappedButton button)Convert the section to a map of click requirement appliersRequirement.ResultgetResult(UUID uuid)Get the result of the requirement-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Method Detail
-
convertClickRequirementAppliers
public static Map<AdvancedClickType,RequirementApplier> convertClickRequirementAppliers(Map<String,Object> section, WrappedButton button)
Convert the section to a map of click requirement appliers- Parameters:
section- the sectionbutton- the button- Returns:
- the map
-
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, TaskProcess process)
- Specified by:
acceptin interfaceBiConsumer<UUID,TaskProcess>
-
-