java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleClause
com.pixelmonmod.pixelmon.battles.api.rules.clauses.type.SkyBattleClause
All Implemented Interfaces:
IEncodeable, Comparable<BattleClause>

public class SkyBattleClause extends BattleClause
Restricts the battle to airborne Pokémon only. Prevents certain grounded moves from being used.
  • Constructor Details

    • SkyBattleClause

      public SkyBattleClause()
      Initializes the clause.
  • Method Details

    • validateSingle

      public boolean validateSingle(Pokemon pokemon)
      Description copied from class: BattleClause
      Checks if the rule allows a Pokémon to be chosen for battle.
      Overrides:
      validateSingle in class BattleClause
      Parameters:
      pokemon - The Pokémon to check.
      Returns:
      Whether the rule allows the given Pokémon to be chosen for battle.
    • isMoveAllowed

      public static boolean isMoveAllowed(Attack move)
      Checks if a move is allowed in a Sky Battle.
      Parameters:
      move - The move to check.
      Returns:
      Whether the move is allowed in a Sky Battle.