Class SpeciesRequirement
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,StatueEntity,RegistryValue<Species>>
com.pixelmonmod.api.statue.requirement.AbstractStatueRequirement<RegistryValue<Species>>
com.pixelmonmod.api.statue.requirement.impl.SpeciesRequirement
- All Implemented Interfaces:
Requirement<Pokemon,StatueEntity, RegistryValue<Species>>
-
Field Summary
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the parsed requirement to the dataCreates a list of requirements from the spec being parsedAttempts to parse the spec with the key that was found in the spec stringcreateInstance(RegistryValue<Species> value) Creates a new instance of the requirement with the given valuebooleanChecks if the given fits for this requirementintGets the order priority of the requirement.getValue()Gets the internal value of the requirementbooleanisDataMatch(Pokemon pixelmon) If the data type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.statue.requirement.AbstractStatueRequirement
applyMinecraft, isMinecraftMatchMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
getAliasesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.api.requirement.Requirement
shouldContinue
-
Constructor Details
-
SpeciesRequirement
public SpeciesRequirement() -
SpeciesRequirement
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:RequirementGets the order priority of the requirement. Higher number = higher priority (i.e. it is applied first)- Returns:
- The priority
-
create
Description copied from interface:RequirementCreates a list of requirements from the spec being parsed- Specified by:
createin interfaceRequirement<Pokemon,StatueEntity, RegistryValue<Species>> - Overrides:
createin classAbstractRequirement<Pokemon,StatueEntity, RegistryValue<Species>> - Parameters:
spec- The spec being parsed- Returns:
- The new list of requirements
-
create
Description copied from class:AbstractRequirementAttempts to parse the spec with the key that was found in the spec string- Specified by:
createin classAbstractStatueRequirement<RegistryValue<Species>>- Parameters:
key- The key foundspec- The spec being parsed- Returns:
- The parse attempt
-
createInstance
public ParseAttempt<Requirement<Pokemon,StatueEntity, createInstanceRegistryValue<Species>>> (RegistryValue<Species> value) Description copied from interface:RequirementCreates a new instance of the requirement with the given value- Parameters:
value- The value- Returns:
- The new requirement instance
-
isDataMatch
Description copied from interface:RequirementIf the data type matches the parsed requirement- Parameters:
pixelmon- The data to check against- Returns:
- True if a match
-
applyData
Description copied from interface:RequirementApplies the parsed requirement to the data- Parameters:
pixelmon- The data
-
getValue
Description copied from interface:RequirementGets the internal value of the requirement- Returns:
- The value stored
-
fits
Description copied from interface:RequirementChecks if the given fits for this requirement- Specified by:
fitsin interfaceRequirement<Pokemon,StatueEntity, RegistryValue<Species>> - Overrides:
fitsin classAbstractRequirement<Pokemon,StatueEntity, RegistryValue<Species>> - Parameters:
spec- The parsed spec- Returns:
- True if this requirement is found in the parameter
-