Class AbstractIntegerPokemonRequirement

All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity,Integer>
Direct Known Subclasses:
CloneRequirement, EVsModifyRequirement, EVsRequirement, ExpRequirement, FriendshipRequirement, GenerationRequirement, GrowthStageRequirement, IVsModifyRequirement, IVsRequirement, LakeTrioRequirement, LevelRequirement, MaximumFriendshipRequirement, MaximumLevelRequirement, MinimumFriendshipRequirement, MinimumLevelRequirement, NuggetsFedRequirement, StatsModifyRequirement, StatsRequirement

public abstract class AbstractIntegerPokemonRequirement extends AbstractPokemonRequirement<Integer>
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
  • Field Details

    • value

      protected int value
    • defaultValue

      protected int defaultValue
  • Constructor Details

    • AbstractIntegerPokemonRequirement

      protected AbstractIntegerPokemonRequirement(Set<String> keys, int defaultValue)
    • AbstractIntegerPokemonRequirement

      protected AbstractIntegerPokemonRequirement(Set<String> keys, int defaultValue, int value)
  • Method Details