Class AbstractStatueRequirement<A>
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,StatueEntity,A>
com.pixelmonmod.api.statue.requirement.AbstractStatueRequirement<A>
- Type Parameters:
A
- The data type
- All Implemented Interfaces:
Requirement<Pokemon,
StatueEntity, A>
- Direct Known Subclasses:
AbstractBooleanStatueRequirement
,AbstractIntegerStatueRequirement
,AbstractStringStatueRequirement
,GenderRequirement
,GrowthRequirement
,SpeciesRequirement
public abstract class AbstractStatueRequirement<A>
extends AbstractRequirement<Pokemon,StatueEntity,A>
Basic abstract implementation for specs following the format :
-
Field Summary
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyMinecraft
(StatueEntity entityPixelmon) Applis the parsed requirement to the minecraft dataabstract ParseAttempt<List<Requirement<Pokemon,
StatueEntity, ?>>> Attempts to parse the spec with the key that was found in the spec stringboolean
isMinecraftMatch
(StatueEntity entityPixelmon) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
create, fits, getAliases
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.api.requirement.Requirement
applyData, createInstance, getPriority, getValue, isDataMatch, shouldContinue
-
Constructor Details
-
AbstractStatueRequirement
-
-
Method Details
-
create
public abstract ParseAttempt<List<Requirement<Pokemon,StatueEntity, create?>>> (String key, String spec) Description copied from class:AbstractRequirement
Attempts to parse the spec with the key that was found in the spec string- Specified by:
create
in classAbstractRequirement<Pokemon,
StatueEntity, A> - Parameters:
key
- The key foundspec
- The spec being parsed- Returns:
- The parse attempt
-
applyMinecraft
Description copied from interface:Requirement
Applis the parsed requirement to the minecraft data- Parameters:
entityPixelmon
- The minecraft data
-
isMinecraftMatch
Description copied from interface:Requirement
If the minecraft type matches the parsed requirement- Parameters:
entityPixelmon
- The minecraft data to check against- Returns:
- True if a match
-