Package me.hsgamer.bettergui.requirement
Class RequirementSet
- java.lang.Object
-
- me.hsgamer.bettergui.requirement.RequirementSet
-
- All Implemented Interfaces:
MenuElement
,Requirement
public class RequirementSet extends Object implements Requirement
The requirement set
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface me.hsgamer.bettergui.api.requirement.Requirement
Requirement.Result
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Requirement.Result
check(UUID uuid)
Check the requirement for the unique idActionApplier
getFailActionApplier()
Get the fail action applierMenu
getMenu()
Get the menu containing the elementString
getName()
Get the name of the requirementList<Requirement>
getRequirements()
Get the requirementsActionApplier
getSuccessActionApplier()
Get the success action applier
-
-
-
Method Detail
-
getRequirements
public List<Requirement> getRequirements()
Get the requirements- Returns:
- the requirements
-
getSuccessActionApplier
public ActionApplier getSuccessActionApplier()
Get the success action applier- Returns:
- the success action applier
-
getFailActionApplier
public ActionApplier getFailActionApplier()
Get the fail action applier- Returns:
- the fail action applier
-
check
public Requirement.Result check(UUID uuid)
Description copied from interface:Requirement
Check the requirement for the unique id- Specified by:
check
in interfaceRequirement
- Parameters:
uuid
- the unique id- Returns:
- the result
-
getName
public String getName()
Description copied from interface:Requirement
Get the name of the requirement- Specified by:
getName
in interfaceRequirement
- Returns:
- the name
-
getMenu
public Menu getMenu()
Description copied from interface:MenuElement
Get the menu containing the element- Specified by:
getMenu
in interfaceMenuElement
- Returns:
- the menu
-
-