V - the type of the final valuepublic abstract class TakableRequirement<V> extends BaseRequirement<V>
Requirement.Result| Modifier | Constructor and Description |
|---|---|
protected |
TakableRequirement(RequirementBuilder.Input input)
Create a new requirement
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
getDefaultTake()
Get the default "take" state
|
protected abstract Object |
getDefaultValue()
Get the default value
|
protected Object |
handleValue(Object inputValue)
Get the value from the input value
|
Requirement.Result |
successConditional(Consumer<UUID> applier)
Get the success result with the conditional "take" state
|
Requirement.Result |
successConditional(ProcessApplier applier)
Get the success result with the conditional "take" state
|
check, checkConverted, convert, getFinalValue, getMenu, getNameprotected TakableRequirement(RequirementBuilder.Input input)
input - the inputprotected Object handleValue(Object inputValue)
BaseRequirementhandleValue in class BaseRequirement<V>inputValue - the input valueprotected abstract boolean getDefaultTake()
protected abstract Object getDefaultValue()
public Requirement.Result successConditional(ProcessApplier applier)
applier - the applierpublic Requirement.Result successConditional(Consumer<UUID> applier)
applier - the applierCopyright © 2023. All rights reserved.