Class LogicalAndRequirement

java.lang.Object
com.pixelmonmod.api.pokemon.requirement.AbstractRecursivePokemonRequirement
com.pixelmonmod.api.pokemon.requirement.impl.LogicalAndRequirement
All Implemented Interfaces:
Requirement<Pokemon,PixelmonEntity,List<Requirement<Pokemon,PixelmonEntity,?>>>

public class LogicalAndRequirement extends AbstractRecursivePokemonRequirement
  • Constructor Details

  • Method Details

    • createInstance

      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
    • isMinecraftMatch

      public boolean isMinecraftMatch(PixelmonEntity entity)
      Description copied from interface: Requirement
      If the minecraft type matches the parsed requirement
      Parameters:
      entity - The minecraft data to check against
      Returns:
      True if a match
    • 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
    • applyMinecraft

      public void applyMinecraft(PixelmonEntity pixelmonEntity)
      Description copied from interface: Requirement
      Applis the parsed requirement to the minecraft data
      Parameters:
      pixelmonEntity - The minecraft data
    • applyData

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