Class AbstractIntegerPokemonRequirement
java.lang.Object
com.pixelmonmod.api.requirement.AbstractRequirement<Pokemon,PixelmonEntity,Integer>
com.pixelmonmod.api.pokemon.requirement.AbstractPokemonRequirement<Integer>
com.pixelmonmod.api.pokemon.requirement.AbstractIntegerPokemonRequirement
- All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity, Integer>
- Direct Known Subclasses:
CloneRequirement,EVsModifyRequirement,EVsRequirement,ExpRequirement,FriendshipRequirement,GenerationRequirement,GimmighoulCoinsGivenRequirement,GrowthStageRequirement,IVsModifyRequirement,IVsRequirement,LakeTrioRequirement,LevelRequirement,MaximumFriendshipRequirement,MaximumLevelRequirement,MinimumFriendshipRequirement,MinimumLevelRequirement,NuggetsFedRequirement,StatsModifyRequirement,StatsRequirement
Basic abstract implementation for specs following
the basic implementation that have an integer value so that
integer specs are handled consistently.
All integer specs extending this class can use the following format: > "spec" - returns the provided default value > "spec:" - returns the provided integer
> "spec:" - returns the provided default value
All integer specs extending this class can use the following format: > "spec" - returns the provided default value > "spec:
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
keys -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIntegerPokemonRequirement(Set<String> keys, int defaultValue) protectedAbstractIntegerPokemonRequirement(Set<String> keys, int defaultValue, int value) -
Method Summary
Modifier and TypeMethodDescriptionAttempts to parse the spec with the key that was found in the spec stringgetValue()Gets the internal value of the requirementMethods inherited from class com.pixelmonmod.api.pokemon.requirement.AbstractPokemonRequirement
applyMinecraft, isMinecraftMatchMethods inherited from class com.pixelmonmod.api.requirement.AbstractRequirement
create, fits, 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
applyData, createInstance, getPriority, isDataMatch, shouldContinue
-
Field Details
-
value
protected int value -
defaultValue
protected int defaultValue
-
-
Constructor Details
-
AbstractIntegerPokemonRequirement
-
AbstractIntegerPokemonRequirement
-
-
Method Details
-
create
Description copied from class:AbstractRequirementAttempts to parse the spec with the key that was found in the spec string- Specified by:
createin classAbstractPokemonRequirement<Integer>- Parameters:
key- The key foundspec- The spec being parsed- Returns:
- The parse attempt
-
getValue
Description copied from interface:RequirementGets the internal value of the requirement- Returns:
- The value stored
-