Class ConditionRequirement
- java.lang.Object
-
- me.hsgamer.bettergui.api.requirement.BaseRequirement<List<String>>
-
- me.hsgamer.bettergui.requirement.type.ConditionRequirement
-
- All Implemented Interfaces:
MenuElement
,Requirement
public class ConditionRequirement extends BaseRequirement<List<String>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface me.hsgamer.bettergui.api.requirement.Requirement
Requirement.Result
-
-
Constructor Summary
Constructors Constructor Description ConditionRequirement(RequirementBuilder.Input input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Requirement.Result
checkConverted(UUID uuid, List<String> value)
Check the requirement for the unique id with the converted valueprotected List<String>
convert(Object value, UUID uuid)
Convert the raw value to the final value-
Methods inherited from class me.hsgamer.bettergui.api.requirement.BaseRequirement
check, getFinalValue, getMenu, getName, handleValue
-
-
-
-
Constructor Detail
-
ConditionRequirement
public ConditionRequirement(RequirementBuilder.Input input)
-
-
Method Detail
-
convert
protected List<String> convert(Object value, UUID uuid)
Description copied from class:BaseRequirement
Convert the raw value to the final value- Specified by:
convert
in classBaseRequirement<List<String>>
- Parameters:
value
- the raw value- Returns:
- the final value
-
checkConverted
protected Requirement.Result checkConverted(UUID uuid, List<String> value)
Description copied from class:BaseRequirement
Check the requirement for the unique id with the converted value- Specified by:
checkConverted
in classBaseRequirement<List<String>>
- Parameters:
uuid
- the unique idvalue
- the converted value- Returns:
- the result
-
-