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