public abstract class AbstractRecursivePokemonRequirement extends java.lang.Object implements Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Requirement<Pokemon,EntityPixelmon,?>> |
requirements |
Constructor and Description |
---|
AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys) |
AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys,
java.util.List<Requirement<Pokemon,EntityPixelmon,?>> requirements) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Requirement<Pokemon,EntityPixelmon,?>> |
create(java.lang.String spec)
Creates a list of requirements from the spec being parsed
|
boolean |
fits(java.lang.String spec)
Checks if the given fits for this requirement
|
java.util.List<java.lang.String> |
getAliases() |
int |
getPriority()
Gets the order priority of the requirement.
|
java.util.List<Requirement<Pokemon,EntityPixelmon,?>> |
getValue()
Gets the internal value of the requirement
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyData, applyMinecraft, createInstance, isDataMatch, isMinecraftMatch
protected java.util.List<Requirement<Pokemon,EntityPixelmon,?>> requirements
public AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys)
public AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys, java.util.List<Requirement<Pokemon,EntityPixelmon,?>> requirements)
public java.util.List<java.lang.String> getAliases()
getAliases
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
public int getPriority()
Requirement
getPriority
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
public boolean shouldContinue()
Requirement
shouldContinue
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
public boolean fits(java.lang.String spec)
Requirement
fits
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
spec
- The parsed specpublic java.util.List<Requirement<Pokemon,EntityPixelmon,?>> create(java.lang.String spec)
Requirement
create
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>
spec
- The spec being parsedpublic java.util.List<Requirement<Pokemon,EntityPixelmon,?>> getValue()
Requirement
getValue
in interface Requirement<Pokemon,EntityPixelmon,java.util.List<Requirement<Pokemon,EntityPixelmon,?>>>