Class BattleTierRegistry

java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleTierRegistry

public class BattleTierRegistry extends Object
Static registry/cache for all tiers
  • Field Details

    • UNRESTRICTED

      public static final Tier UNRESTRICTED
    • OU

      public static final Tier OU
    • UU

      public static final Tier UU
    • RU

      public static final Tier RU
    • NU

      public static final Tier NU
    • PU

      public static final Tier PU
  • Constructor Details

    • BattleTierRegistry

      public BattleTierRegistry()
  • Method Details

    • addTier

      public static <T extends Tier> T addTier(T tier)
      Adds a tier as a registered tier and then returns it (for caching)
      Type Parameters:
      T - The tier type
      Parameters:
      tier - The registered tier
      Returns:
      The given tier - unmodified
    • getAllTiers

      public static List<Tier> getAllTiers()
      Gets a list of all the active tiers that have been registered
      Returns:
      All registered tiers
    • getTierWithID

      public static Tier getTierWithID(String id)
      Gets the registered tier with the provided ID
      Returns:
      The requested tier, or nil if no tier with that ID exists