Class AnimationFrameRequirement
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,StatueEntity,A>
com.pixelmonmod.api.statue.requirement.AbstractStatueRequirement<Integer>
com.pixelmonmod.api.statue.requirement.AbstractIntegerStatueRequirement
com.pixelmonmod.api.statue.requirement.impl.AnimationFrameRequirement
- All Implemented Interfaces:
Requirement<Pokemon,
StatueEntity, Integer>
-
Field Summary
Fields inherited from class com.pixelmonmod.api.statue.requirement.AbstractIntegerStatueRequirement
defaultValue, value
Fields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the parsed requirement to the datavoid
applyMinecraft
(StatueEntity entity) Applis the parsed requirement to the minecraft datacreateInstance
(Integer value) Creates a new instance of the requirement with the given valueboolean
isDataMatch
(Pokemon pixelmon) If the data type matches the parsed requirementboolean
isMinecraftMatch
(StatueEntity entity) If the minecraft type matches the parsed requirementMethods inherited from class com.pixelmonmod.api.statue.requirement.AbstractIntegerStatueRequirement
create, getValue
Methods 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
getPriority, shouldContinue
-
Constructor Details
-
AnimationFrameRequirement
public AnimationFrameRequirement() -
AnimationFrameRequirement
public AnimationFrameRequirement(int value)
-
-
Method Details
-
createInstance
Description copied from interface:Requirement
Creates a new instance of the requirement with the given value- Parameters:
value
- The value- Returns:
- The new requirement instance
-
isDataMatch
Description copied from interface:Requirement
If the data type matches the parsed requirement- Parameters:
pixelmon
- The data to check against- Returns:
- True if a match
-
applyData
Description copied from interface:Requirement
Applies the parsed requirement to the data- Parameters:
pixelmon
- The data
-
isMinecraftMatch
Description copied from interface:Requirement
If the minecraft type matches the parsed requirement- Specified by:
isMinecraftMatch
in interfaceRequirement<Pokemon,
StatueEntity, Integer> - Overrides:
isMinecraftMatch
in classAbstractStatueRequirement<Integer>
- Parameters:
entity
- The minecraft data to check against- Returns:
- True if a match
-
applyMinecraft
Description copied from interface:Requirement
Applis the parsed requirement to the minecraft data- Specified by:
applyMinecraft
in interfaceRequirement<Pokemon,
StatueEntity, Integer> - Overrides:
applyMinecraft
in classAbstractStatueRequirement<Integer>
- Parameters:
entity
- The minecraft data
-