public class SpeciesRequirement extends AbstractPokemonRequirement<RegistryValue<Species>>
keys
Constructor and Description |
---|
SpeciesRequirement() |
SpeciesRequirement(RegistryValue<Species> species) |
Modifier and Type | Method and Description |
---|---|
void |
applyData(Pokemon pixelmon) |
java.util.List<Requirement<Pokemon,PixelmonEntity,?>> |
create(java.lang.String spec)
Creates a list of requirements from the spec being parsed
|
Requirement<Pokemon,PixelmonEntity,RegistryValue<Species>> |
createInstance(RegistryValue<Species> value)
Creates a new instance of the requirement with the given value
|
java.util.List<Requirement<Pokemon,PixelmonEntity,?>> |
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.
|
RegistryValue<Species> |
getValue()
Gets the internal value of the requirement
|
boolean |
isDataMatch(Pokemon pixelmon) |
applyMinecraft, isMinecraftMatch
getAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldContinue
public SpeciesRequirement()
public SpeciesRequirement(RegistryValue<Species> species)
public int getPriority()
Requirement
public java.util.List<Requirement<Pokemon,PixelmonEntity,?>> create(java.lang.String spec)
Requirement
create
in interface Requirement<Pokemon,PixelmonEntity,RegistryValue<Species>>
create
in class AbstractRequirement<Pokemon,PixelmonEntity,RegistryValue<Species>>
spec
- The spec being parsedpublic java.util.List<Requirement<Pokemon,PixelmonEntity,?>> createSimple(java.lang.String key, java.lang.String spec)
createSimple
in class AbstractPokemonRequirement<RegistryValue<Species>>
public Requirement<Pokemon,PixelmonEntity,RegistryValue<Species>> createInstance(RegistryValue<Species> value)
Requirement
value
- The valuepublic boolean isDataMatch(Pokemon pixelmon)
public void applyData(Pokemon pixelmon)
public RegistryValue<Species> getValue()
Requirement
public boolean fits(java.lang.String spec)
Requirement
fits
in interface Requirement<Pokemon,PixelmonEntity,RegistryValue<Species>>
fits
in class AbstractRequirement<Pokemon,PixelmonEntity,RegistryValue<Species>>
spec
- The parsed spec