Class AbstractRecursiveStatueRequirement
java.lang.Object
com.pixelmonmod.api.statue.requirement.AbstractRecursiveStatueRequirement
- All Implemented Interfaces:
- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Direct Known Subclasses:
- LogicalAndRequirement,- LogicalOrRequirement
public abstract class AbstractRecursiveStatueRequirement
extends Object
implements Requirement<Pokemon,StatueEntity,List<Requirement<Pokemon,StatueEntity,?>>>    
The basics for a recursive requirement
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedprotectedAbstractRecursiveStatueRequirement(Set<String> keys, List<Requirement<Pokemon, StatueEntity, ?>> requirements) 
- 
Method SummaryModifier and TypeMethodDescriptionCreates a list of requirements from the spec being parsedbooleanChecks if the given fits for this requirementThe aliases of the requirement that it can match againstintGets the order priority of the requirement.getValue()Gets the internal value of the requirementbooleanIf the spec should continue processing the results after applying this requirement.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.api.requirement.RequirementapplyData, applyMinecraft, createInstance, isDataMatch, isMinecraftMatch
- 
Field Details- 
keys
- 
requirements
 
- 
- 
Constructor Details- 
AbstractRecursiveStatueRequirement
- 
AbstractRecursiveStatueRequirementprotected AbstractRecursiveStatueRequirement(Set<String> keys, List<Requirement<Pokemon, StatueEntity, ?>> requirements) 
 
- 
- 
Method Details- 
getAliasesDescription copied from interface:RequirementThe aliases of the requirement that it can match against- Specified by:
- getAliasesin interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Returns:
- The aliases
 
- 
getPrioritypublic int getPriority()Description copied from interface:RequirementGets the order priority of the requirement. Higher number = higher priority (i.e. it is applied first)- Specified by:
- getPriorityin interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Returns:
- The priority
 
- 
shouldContinuepublic boolean shouldContinue()Description copied from interface:RequirementIf 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- Specified by:
- shouldContinuein interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Returns:
- True if it should continue processing
 
- 
fitsDescription copied from interface:RequirementChecks if the given fits for this requirement- Specified by:
- fitsin interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Parameters:
- spec- The parsed spec
- Returns:
- True if this requirement is found in the parameter
 
- 
createDescription copied from interface:RequirementCreates a list of requirements from the spec being parsed- Specified by:
- createin interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Parameters:
- spec- The spec being parsed
- Returns:
- The new list of requirements
 
- 
getValueDescription copied from interface:RequirementGets the internal value of the requirement- Specified by:
- getValuein interface- Requirement<Pokemon,- StatueEntity, - List<Requirement<Pokemon, - StatueEntity, - ?>>> 
- Returns:
- The value stored
 
 
-