Class AbstractStringPokemonRequirement

All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity,String>
Direct Known Subclasses:
EggGroupRequirement, FormRequirement, HasSpecFlagRequirement, NicknameRequirement, OriginalTrainerNameRequirement, PaletteRequirement, PositionRequirement, ShaderRequirement, StatusRequirement

public abstract class AbstractStringPokemonRequirement extends AbstractPokemonRequirement<String>
Basic abstract implementation for specs following the basic implementation that have a string value so that string specs are handled consistently.
All String specs extending this class can use the following format: > "spec" - returns the provided default value > "spec:" - returns the provided string
  • Field Details

    • value

      protected String value
    • defaultValue

      protected String defaultValue
  • Constructor Details

    • AbstractStringPokemonRequirement

      protected AbstractStringPokemonRequirement(Set<String> keys, String defaultValue)
    • AbstractStringPokemonRequirement

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