Class AbstractDoublePokemonRequirement

All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity,Double>
Direct Known Subclasses:
SizeRequirement

public abstract class AbstractDoublePokemonRequirement extends AbstractPokemonRequirement<Double>
Basic abstract implementation for specs following the basic implementation that have a double value so that double specs are handled consistently.
All double 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 double value
    • defaultValue

      protected double defaultValue
  • Constructor Details

    • AbstractDoublePokemonRequirement

      protected AbstractDoublePokemonRequirement(Set<String> keys, double defaultValue)
    • AbstractDoublePokemonRequirement

      protected AbstractDoublePokemonRequirement(Set<String> keys, double defaultValue, double value)
  • Method Details