Class VersionRequirement
- java.lang.Object
-
- me.hsgamer.bettergui.api.requirement.BaseRequirement<Integer>
-
- me.hsgamer.bettergui.requirement.type.VersionRequirement
-
- All Implemented Interfaces:
MenuElement,Requirement
public class VersionRequirement extends BaseRequirement<Integer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface me.hsgamer.bettergui.api.requirement.Requirement
Requirement.Result
-
-
Constructor Summary
Constructors Constructor Description VersionRequirement(RequirementBuilder.Input input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Requirement.ResultcheckConverted(UUID uuid, Integer value)Check the requirement for the unique id with the converted valueprotected Integerconvert(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
-
VersionRequirement
public VersionRequirement(RequirementBuilder.Input input)
-
-
Method Detail
-
convert
protected Integer convert(Object value, UUID uuid)
Description copied from class:BaseRequirementConvert the raw value to the final value- Specified by:
convertin classBaseRequirement<Integer>- Parameters:
value- the raw value- Returns:
- the final value
-
checkConverted
protected Requirement.Result checkConverted(UUID uuid, Integer value)
Description copied from class:BaseRequirementCheck the requirement for the unique id with the converted value- Specified by:
checkConvertedin classBaseRequirement<Integer>- Parameters:
uuid- the unique idvalue- the converted value- Returns:
- the result
-
-