Class FormRequirement

All Implemented Interfaces:
Requirement<Pokemon,StatueEntity,String>

public class FormRequirement extends AbstractStringStatueRequirement
  • Constructor Details

    • FormRequirement

      public FormRequirement()
    • FormRequirement

      public FormRequirement(String value)
  • Method Details

    • getPriority

      public int getPriority()
      Description copied from interface: Requirement
      Gets the order priority of the requirement. Higher number = higher priority (i.e. it is applied first)
      Returns:
      The priority
    • createInstance

      public ParseAttempt<Requirement<Pokemon,StatueEntity,String>> createInstance(String 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