Class BattleTierRegistry
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleTierRegistry
Static registry/cache for all tiers
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Tier>
TaddTier
(T tier) Adds a tier as a registered tier and then returns it (for caching)Gets a list of all the active tiers that have been registeredstatic Tier
getTierWithID
(String id) Gets the registered tier with the provided ID
-
Field Details
-
UNRESTRICTED
-
OU
-
UU
-
RU
-
NU
-
PU
-
-
Constructor Details
-
BattleTierRegistry
public BattleTierRegistry()
-
-
Method Details
-
addTier
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
Gets a list of all the active tiers that have been registered- Returns:
- All registered tiers
-
getTierWithID
Gets the registered tier with the provided ID- Returns:
- The requested tier, or nil if no tier with that ID exists
-