public final class BattleClauseRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static BattleClause |
BAG_CLAUSE |
static BattleClause |
BATON_PASS_CLAUSE |
static BattleClause |
CHATTER |
static BattleClause |
DRIZZLE |
static BattleClause |
DRIZZLE_SWIM |
static BattleClause |
DROUGHT |
static BattleClause |
ENDLESS_BATTLE |
static BattleClause |
EVASION |
static BattleClause |
EVASION_ABILITY |
static BattleClause |
FORFEIT_CLAUSE |
static BattleClause |
INVERSE_BATTLE |
static BattleClause |
LEGEND_BAN |
static BattleClause |
MAX_ONE_BATON_PASS |
static BattleClause |
MEGA_STONE |
static BattleClause |
MOODY |
static BattleClause |
MULTIPLE_SPECIES |
static BattleClause |
NO_DUPLICATE_ITEMS |
static BattleClause |
OHKO |
static BattleClause |
SAND_STREAM |
static BattleClause |
SHADOW_TAG |
static BattleClause |
SKY_BATTLE |
static BattleClause |
SLEEP_CLAUSE |
static BattleClause |
SMASH_PASS |
static BattleClause |
SNOW_WARNING |
static BattleClause |
SOUL_DEW |
static BattleClause |
SPEED_PASS |
static BattleClause |
SWAGGER |
static BattleClause |
WEATHER_SPEED |
Constructor and Description |
---|
BattleClauseRegistry() |
Modifier and Type | Method and Description |
---|---|
static BattleClause |
getClause(java.lang.String id)
Gets a registered clause by its ID.
|
static java.util.List<BattleClause> |
getClauseList()
Returns a sorted list of all registered clauses.
|
static boolean |
hasClause(java.lang.String id)
Checks if a clause is registered.
|
static <T extends BattleClause> |
register(T newClause)
Registers a new clause in the registry.
|
public static final BattleClause BAG_CLAUSE
public static final BattleClause BATON_PASS_CLAUSE
public static final BattleClause MAX_ONE_BATON_PASS
public static final BattleClause CHATTER
public static final BattleClause DRIZZLE
public static final BattleClause DRIZZLE_SWIM
public static final BattleClause DROUGHT
public static final BattleClause ENDLESS_BATTLE
public static final BattleClause EVASION_ABILITY
public static final BattleClause EVASION
public static final BattleClause FORFEIT_CLAUSE
public static final BattleClause INVERSE_BATTLE
public static final BattleClause NO_DUPLICATE_ITEMS
public static final BattleClause LEGEND_BAN
public static final BattleClause MEGA_STONE
public static final BattleClause MOODY
public static final BattleClause OHKO
public static final BattleClause SAND_STREAM
public static final BattleClause SHADOW_TAG
public static final BattleClause SKY_BATTLE
public static final BattleClause SLEEP_CLAUSE
public static final BattleClause SMASH_PASS
public static final BattleClause SNOW_WARNING
public static final BattleClause SOUL_DEW
public static final BattleClause MULTIPLE_SPECIES
public static final BattleClause SPEED_PASS
public static final BattleClause SWAGGER
public static final BattleClause WEATHER_SPEED
public static BattleClause getClause(java.lang.String id)
id
- The ID of the clause.public static boolean hasClause(java.lang.String id)
id
- The ID of the clause.public static <T extends BattleClause> T register(T newClause)
newClause
- The new clause to register.java.lang.IllegalArgumentException
- If the clause has no key or a key conflicting with another clause.public static java.util.List<BattleClause> getClauseList()