public class CooldownRequirement extends BaseRequirement<Duration>
Requirement.Result| Constructor and Description |
|---|
CooldownRequirement(RequirementBuilder.Input input) |
| Modifier and Type | Method and Description |
|---|---|
protected Requirement.Result |
checkConverted(UUID uuid,
Duration value)
Check the requirement for the unique id with the converted value
|
protected Duration |
convert(Object value,
UUID uuid)
Convert the raw value to the final value
|
check, getFinalValue, getMenu, getName, handleValuepublic CooldownRequirement(RequirementBuilder.Input input)
protected Duration convert(Object value, UUID uuid)
BaseRequirementconvert in class BaseRequirement<Duration>value - the raw valueprotected Requirement.Result checkConverted(UUID uuid, Duration value)
BaseRequirementcheckConverted in class BaseRequirement<Duration>uuid - the unique idvalue - the converted valueCopyright © 2023. All rights reserved.