Class BattleRuleRegistry
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.BattleRuleRegistry
Static registry class containing a cache of all
BattleProperty
that can be used
You MUST register any custom BattleProperty
s here otherwise they will not be read/written properly-
Field Summary
Modifier and TypeFieldDescriptionstatic final BattleProperty<BattleType>
static final BattleProperty<Set<BattleClause>>
static final BattleProperty<Boolean>
static final BattleProperty<Boolean>
static final BattleProperty<EnumOldGenMode>
static final BattleProperty<Integer>
static final BattleProperty<Boolean>
static final BattleProperty<Integer>
static final BattleProperty<Boolean>
static final BattleProperty<Boolean>
static final BattleProperty<Integer>
static final BattleProperty<Tier>
static final BattleProperty<Integer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<BattleProperty<?>>
Gets a list of all registered propertiesstatic BattleProperty<?>
getProperty
(String id) Gets aBattleProperty
with the given id Will return null if none found with the IDstatic <T> BattleProperty<T>
register
(BattleProperty<T> property) Registers the given property under it's ID This will return an unmodified version of the parameter given so that you can use it for caching you're properties
-
Field Details
-
RAISE_TO_CAP
-
FULL_HEAL
-
TEAM_PREVIEW
-
LEVEL_CAP
-
NUM_POKEMON
-
TEAM_SELECT
-
TURN_TIME
-
TIER
-
CLAUSES
-
BATTLE_TYPE
-
GEN_MODE
-
NO_CRITS
-
EXITABLE
-
-
Constructor Details
-
BattleRuleRegistry
public BattleRuleRegistry()
-
-
Method Details
-
register
Registers the given property under it's ID This will return an unmodified version of the parameter given so that you can use it for caching you're properties- Type Parameters:
T
- The type of the property- Parameters:
property
- The new property- Returns:
- The given property with no modifications
-
getProperty
Gets aBattleProperty
with the given id Will return null if none found with the ID- Parameters:
id
- The id being searched for- Returns:
- The found property
-
getAllProperties
Gets a list of all registered properties- Returns:
- All registered properties
-