Class LogicalAndRequirement

java.lang.Object
com.pixelmonmod.api.statue.requirement.AbstractRecursiveStatueRequirement
com.pixelmonmod.api.statue.requirement.impl.LogicalAndRequirement
All Implemented Interfaces:
Requirement<Pokemon,StatueEntity,List<Requirement<Pokemon,StatueEntity,?>>>

public class LogicalAndRequirement extends AbstractRecursiveStatueRequirement
  • 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(StatueEntity 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(StatueEntity StatueEntity)
      Description copied from interface: Requirement
      Applis the parsed requirement to the minecraft data
      Parameters:
      StatueEntity - 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