Class CanMegaEvolveRequirement

All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity,Boolean>

public class CanMegaEvolveRequirement extends AbstractBooleanPokemonRequirement
  • Constructor Details

    • CanMegaEvolveRequirement

      public CanMegaEvolveRequirement()
    • CanMegaEvolveRequirement

      public CanMegaEvolveRequirement(boolean value)
  • Method Details

    • createInstance

      public ParseAttempt<Requirement<Pokemon,PixelmonEntity,Boolean>> createInstance(Boolean value)
      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

      public boolean isDataMatch(Pokemon pixelmon)
      Description copied from interface: Requirement
      If the data type matches the parsed requirement
      Parameters:
      pixelmon - The data to check against
      Returns:
      True if a match
    • applyData

      public void applyData(Pokemon pixelmon)
      Description copied from interface: Requirement
      Applies the parsed requirement to the data
      Parameters:
      pixelmon - The data