public class SpeciesRequirement extends AbstractPokemonRequirement<EnumSpecies>
keys
Constructor and Description |
---|
SpeciesRequirement() |
SpeciesRequirement(EnumSpecies species) |
Modifier and Type | Method and Description |
---|---|
void |
applyData(Pokemon pixelmon) |
java.util.List<Requirement<Pokemon,EntityPixelmon,?>> |
create(java.lang.String spec)
Creates a list of requirements from the spec being parsed
|
Requirement<Pokemon,EntityPixelmon,EnumSpecies> |
createInstance(EnumSpecies value)
Creates a new instance of the requirement with the given value
|
java.util.List<Requirement<Pokemon,EntityPixelmon,?>> |
createSimple(java.lang.String key,
java.lang.String spec) |
boolean |
fits(java.lang.String spec)
Checks if the given fits for this requirement
|
int |
getPriority()
Gets the order priority of the requirement.
|
EnumSpecies |
getValue()
Gets the internal value of the requirement
|
boolean |
isDataMatch(Pokemon pixelmon) |
static SpeciesRequirement |
tryCreate(java.lang.String spec)
A special method for generating a SpeciesRequirement without the prefix.
|
applyMinecraft, isMinecraftMatch
getAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldContinue
public SpeciesRequirement()
public SpeciesRequirement(EnumSpecies species)
public int getPriority()
Requirement
public java.util.List<Requirement<Pokemon,EntityPixelmon,?>> create(java.lang.String spec)
Requirement
create
in interface Requirement<Pokemon,EntityPixelmon,EnumSpecies>
create
in class AbstractRequirement<Pokemon,EntityPixelmon,EnumSpecies>
spec
- The spec being parsedpublic java.util.List<Requirement<Pokemon,EntityPixelmon,?>> createSimple(java.lang.String key, java.lang.String spec)
createSimple
in class AbstractPokemonRequirement<EnumSpecies>
public Requirement<Pokemon,EntityPixelmon,EnumSpecies> createInstance(EnumSpecies value)
Requirement
value
- The valuepublic boolean isDataMatch(Pokemon pixelmon)
public void applyData(Pokemon pixelmon)
public EnumSpecies getValue()
Requirement
public boolean fits(java.lang.String spec)
Requirement
fits
in interface Requirement<Pokemon,EntityPixelmon,EnumSpecies>
fits
in class AbstractRequirement<Pokemon,EntityPixelmon,EnumSpecies>
spec
- The parsed specpublic static SpeciesRequirement tryCreate(java.lang.String spec)
spec
- String representation of the spec