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