public abstract class AbstractRecursivePokemonRequirement extends java.lang.Object implements Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Requirement<Pokemon,PixelmonEntity,?>> |
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,PixelmonEntity,?>> requirements) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Requirement<Pokemon,PixelmonEntity,?>> |
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,PixelmonEntity,?>> |
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,PixelmonEntity,?>> requirements
public AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys)
public AbstractRecursivePokemonRequirement(java.util.Set<java.lang.String> keys, java.util.List<Requirement<Pokemon,PixelmonEntity,?>> requirements)
public java.util.List<java.lang.String> getAliases()
getAliases
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
public int getPriority()
Requirement
getPriority
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
public boolean shouldContinue()
Requirement
shouldContinue
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
public boolean fits(java.lang.String spec)
Requirement
fits
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
spec
- The parsed specpublic java.util.List<Requirement<Pokemon,PixelmonEntity,?>> create(java.lang.String spec)
Requirement
create
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>
spec
- The spec being parsedpublic java.util.List<Requirement<Pokemon,PixelmonEntity,?>> getValue()
Requirement
getValue
in interface Requirement<Pokemon,PixelmonEntity,java.util.List<Requirement<Pokemon,PixelmonEntity,?>>>