A
- The reforged objectB
- The minecraft objectC
- The data being stored in this requirementpublic interface Requirement<A,B,C>
Modifier and Type | Method and Description |
---|---|
void |
applyData(A a) |
void |
applyMinecraft(B b) |
java.util.List<Requirement<A,B,?>> |
create(java.lang.String spec)
Creates a list of requirements from the spec being parsed
|
Requirement<A,B,C> |
createInstance(C value)
Creates a new instance of the requirement with the given value
|
boolean |
fits(java.lang.String spec)
Checks if the given fits for this requirement
|
java.util.List<java.lang.String> |
getAliases() |
default int |
getPriority()
Gets the order priority of the requirement.
|
C |
getValue()
Gets the internal value of the requirement
|
boolean |
isDataMatch(A a) |
boolean |
isMinecraftMatch(B b) |
default boolean |
shouldContinue()
If the spec should continue processing the results after applying this requirement
For example, for a logical AND this would return false as it handles the processing of the remaining requirements
|
default int getPriority()
default boolean shouldContinue()
java.util.List<java.lang.String> getAliases()
boolean fits(java.lang.String spec)
spec
- The parsed specjava.util.List<Requirement<A,B,?>> create(java.lang.String spec)
spec
- The spec being parsedRequirement<A,B,C> createInstance(C value)
value
- The valueboolean isDataMatch(A a)
boolean isMinecraftMatch(B b)
void applyData(A a)
void applyMinecraft(B b)
C getValue()