RandomBattleAIBaseline battle AI that picks uniformly at random among usable moves, valid targets, or available switch-in party members.
Methods: RandomBattleAI, choose, onHealthChange
Bytecode-verified reference to all 42 top-level classes across battles/ai/ (8), api/battles/ (14), and api/pokeball/catching/ (20), including all 16 StrongBattleAI constructor scoring constants, 6 skill tiers (0–5), all 11 static CatchRateModifiers, 3 modifier factories, and 3 post-capture effects.
RandomBattleAIBaseline battle AI that picks uniformly at random among usable moves, valid targets, or available switch-in party members.
Methods: RandomBattleAI, choose, onHealthChange
StrongBattleAISkill-scaled tactical battle AI (skill 0..5) using ActiveTracker, 16 scoring/threshold constants, damage estimation, matchup scoring, and voluntary switch-out checks.
Fields: skill, speedTierCoefficient, trickRoomCoefficient, typeMatchupWeightConsideration (+14 more) · Methods: StrongBattleAI, checkSkillLevel, checkSwitchOutSkill, calculateDamage (+18)
AIUtilityHelper calculations supporting StrongBattleAI move scoring, stat stage adjustments, and matchup comparisons.
Fields: typeEffectiveness, multiHitMoves, statusMoves, boostFromMoves (+11 more) · Methods: AIUtility, getDamageMultiplier, getTypeEffectiveness, getMultiHitMoves (+14)
ActiveTrackerTracks active battle sides, actors, and per-Pokémon state snapshots for StrongBattleAI decision evaluation.
Fields: currentRoom, currentTerrain, currentWeather, alliedSide (+1 more) · Methods: ActiveTracker, getCurrentRoom, setCurrentRoom, getCurrentTerrain (+8)
ActiveTrackerKtKotlin top-level helpers supporting ActiveTracker state lookups during AI evaluation.
Methods: createAllied, createOpposing
TrackerActorLightweight per-actor snapshot inside ActiveTracker mirroring an actor's roster for AI scoring.
Fields: uuid, party, activePokemon · Methods: TrackerActor, getUuid, getParty, getActivePokemon (+3)
TrackerPokemonPer-Pokémon snapshot (HP, stats, types, boosts, status) consumed by StrongBattleAI damage and matchup evaluators.
Fields: id, pokemon, species, form (+9 more) · Methods: TrackerPokemon, getId, setId, getPokemon (+27)
TrackerSidePer-side battlefield snapshot (hazards, screens, weather/terrain context) consumed by StrongBattleAI.
Fields: screenCondition, tailwindCondition, sideHazards, actors · Methods: TrackerSide, getScreenCondition, setScreenCondition, getTailwindCondition (+7)
BasicContextStandard BattleContext implementation carrying an ID, turn number, type, and optional origin context.
Fields: id, turn, type, origin · Methods: BasicContext, getId, getTurn, getType (+6)
BattleContextStructured battle history entry tracking moves, statuses, boosts, and origins for Showdown interpretation.
Methods: getId, getTurn, getType, getOrigin (+1)
BattleMessageParsed pipe-delimited Showdown protocol line consumed by BattleInterpreter instruction classes.
Fields: id, rawMessage, args, optionalArguments (+3 more) · Methods: BattleMessage, getId, getRawMessage, argumentAt (+13)
EffectWrapper representing a Showdown move, ability, item, or condition effect ID parsed from BattleMessage tokens.
Methods: getId, getType, getRawData, getTypelessData
InvalidInstructionExceptionException thrown when a Showdown protocol line cannot be parsed into a valid battle instruction.
Methods: InvalidInstructionException
MissingContextFallback BattleContext placeholder returned when a referenced battle context entry is absent.
Fields: id, turn, type, origin · Methods: MissingContext, getId, getTurn, getType (+6)
BattleEndResultEnum recording how a battle terminated: VICTORY, CAPTURE, FORFEIT, FLED, or STOPPED.
Values: VICTORY, CAPTURE, FORFEIT, FLED, STOPPED · Methods: BattleEndResult, values, valueOf
PokemonBattleCentral battle controller tracking sides, turns, battle format, Showdown communication, end results, and active actors.
Fields: format, side1, side2, mute (+27 more) · Methods: PokemonBattle, getFormat, getSide1, getSide2 (+78)
AIBattleActorBattleActor implementation delegating every Showdown action request to an attached BattleAI instance.
Fields: battleAI · Methods: AIBattleActor, getBattleAI, sendUpdate, onChoiceRequested
ActorTypeEnum classifying battle participants: WILD, PLAYER, or NPC.
Values: WILD, PLAYER, NPC · Methods: ActorType, values, valueOf
BattleActorAbstract participant on a BattleSide holding its BattlePokemon roster, type, and action-request lifecycle.
Fields: uuid, pokemonList, struct, showdownId (+9 more) · Methods: BattleActor, getUuid, getPokemonList, getStruct (+38)
EntityBackedBattleActorInterface for BattleActors tied to a Minecraft world Entity (such as WildPokemon, Player, or NPC).
Methods: getEntity, getInitialPos
FleeableBattleActorInterface for BattleActors capable of fleeing a battle based on flee distance rules.
Methods: getFleeDistance, getWorldAndPosition
BattleAICore interface defining choose(activeBattlePokemon, battle, aiSide, moveset, forceSwitch) and optional health-change hooks.
Methods: choose, onHealthChange
CaptureContextImmutable result of a capture calculation (numberOfShakes, isSuccessfulCapture, isCriticalCapture).
Fields: numberOfShakes, isSuccessfulCapture, isCriticalCapture · Methods: CaptureContext, getNumberOfShakes, isSuccessfulCapture, isCriticalCapture (+4)
CaptureEffectInterface for post-capture callbacks executed on a newly caught Pokémon (e.g., Heal Ball, Friend Ball).
Methods: apply
CatchRateModifierInterface for Poké Ball catch-rate multipliers evaluated against thrower, target Pokémon, and world/battle state.
Methods: isGuaranteed, value, behavior, isValid (+1)
CaptureCalculatorInterface for Poké Ball capture math implementations returning a CaptureContext.
Methods: id, processCapture, getCatchRate
CaptureCalculatorsRegistry holding all 11 built-in capture formula IDs (cobblemon, debug, generation_1..9, generation_2_fixed).
Fields: calculators · Methods: CaptureCalculators, register, fromId, registerDefaults$common
CriticalCaptureProviderInterface defining the 6-tier Pokédex-based Critical Capture multiplier (0× to 2.5×) and 1-shake roll.
Methods: shouldHaveCriticalCapture
PokedexProgressCaptureMultiplierProviderInterface defining the 6-tier Pokédex completion catch multiplier (1229/4096 up to 1.0×).
Methods: caughtMultiplierFor
PokedexStatusCaptureInfluencerInterface adjusting capture animation to a single shake when the target species is already OWNED.
Methods: influence
CaptureEffectsSingleton defining FULL_RESTORE (Heal Ball) and friendshipSetter(int) (Friend Ball).
Fields: FULL_RESTORE · Methods: CaptureEffects, getFULL_RESTORE, friendshipSetter
FriendshipEarningBoostEffectCaptureEffect marker carrying a float multiplier (Luxury Ball 2.0×) for future friendship gains.
Fields: multiplier · Methods: FriendshipEarningBoostEffect, getMultiplier, apply
BaseStatModifierCatchRateModifier checking a Pokémon's base stat against a threshold (Fast Ball: base Speed ≥ 100 → 4.0×).
Fields: stat, comparator, multiplier · Methods: BaseStatModifier, getStat, getComparator, getMultiplier (+5)
BattleModifierCatchRateModifier evaluated using active battle state (player's active Pokémon and turn count).
Fields: calculator · Methods: BattleModifier, isGuaranteed, value, behavior (+2)
CatchRateModifierAdapterSerialization/adapter helper for CatchRateModifier implementations.
Methods: registerType
CatchRateModifiersSingleton registry of all 11 built-in Poké Ball modifiers plus typeBoosting, statusBoosting, and turnBased factories.
Fields: LEVEL, SUBMERGED_IN_WATER, NEST, LOVE (+7 more) · Methods: CatchRateModifiers, getLEVEL, getSUBMERGED_IN_WATER, getNEST (+11)
DynamicMultiplierModifierCatchRateModifier computing a variable float multiplier whenever its predicate matches (Nest Ball, Heavy Ball).
Fields: multiplier, condition · Methods: DynamicMultiplierModifier, isGuaranteed, value, behavior (+2)
GuaranteedModifierCatchRateModifier forcing a guaranteed capture regardless of HP or catch rate (Master Ball, Ancient Origin Ball).
Methods: GuaranteedModifier, isGuaranteed, value, behavior (+2)
LabelModifierCatchRateModifier multiplying catch rate based on species labels (Beast Ball: 5.0× ultra_beast, 0.1× otherwise).
Fields: multiplier, matching, labels · Methods: LabelModifier, getMultiplier, getMatching, getLabels (+5)
MultiplierModifierFixed float CatchRateModifier applied when a (LivingEntity, Pokemon) predicate returns true.
Fields: multiplier, condition · Methods: MultiplierModifier, isGuaranteed, value, behavior (+2)
PropertyBasedModifierCatchRateModifier evaluating a PokemonProperties filter against the target Pokémon.
Fields: property, multiplier · Methods: PropertyBasedModifier, getProperty, getMultiplier, isGuaranteed (+4)
WorldStateModifierCatchRateModifier inspecting live Minecraft world/entity state (brightness, underwater, moon phase, biome tag, aspects).
Fields: calculator · Methods: WorldStateModifier, value, behavior, isValid (+2)
Verified directly from StrongBattleAI.class and RandomBattleAI.class in Cobblemon 1.8.4: NPC and wild battle actors implement AIBattleActor backed by a BattleAI strategy. RandomBattleAI picks uniformly at random among usable moves and switch candidates, whereas StrongBattleAI(skill) clamps skill to 0..5 via RangesKt.coerceIn(skill, 0, 5), tracks battle state in ActiveTracker (TrackerSide, TrackerActor, TrackerPokemon), and gates tactical evaluations and voluntary switch-outs through checkSkillLevel() and checkSwitchOutSkill(). Every participant has ActorType (WILD, PLAYER, NPC) and terminates with BattleEndResult (VICTORY, CAPTURE, FORFEIT, FLED, STOPPED).
| Skill Level | checkSkillLevel() | checkSwitchOutSkill() | Bytecode Evaluation Behaviour |
|---|---|---|---|
| Skill 0 | 0% | 0% | Never passes checkSkillLevel() or checkSwitchOutSkill(); falls back to non-optimal/basic picks. |
| Skill 1 | 20% | 0% | 20% chance to pass checkSkillLevel() (Random.nextInt(100) < 20); never voluntarily switches out. |
| Skill 2 | 40% | 0% | 40% chance to pass checkSkillLevel() (Random.nextInt(100) < 40); never voluntarily switches out. |
| Skill 3 | 60% | 20% | 60% tactical check rate; unlocks voluntary defensive switching at 20% probability (0.2d). |
| Skill 4 | 80% | 60% | 80% tactical check rate; voluntary switch-out probability rises to 60% (0.6d). |
| Skill 5 | 100% | 100% | Maximum skill (RangesKt.coerceIn(skill, 0, 5)); always passes checkSkillLevel() and checkSwitchOutSkill(). |
| Constructor Field | Type | Bytecode Default | Role | Verified Usage In StrongBattleAI |
|---|---|---|---|---|
speedTierCoefficient | double | 4.0 | Scoring Weight | Multiplier applied to speed advantage comparisons when evaluating active matchups. |
trickRoomCoefficient | double | 1.0 | Scoring Weight | Sign/scaling factor (initialized to 1.0, inverted under Trick Room) applied to speed comparisons. |
typeMatchupWeightConsideration | double | 2.5 | Scoring Weight | Weight assigned to defensive and offensive type-effectiveness matchup ratings. |
moveDamageWeightConsideration | double | 0.8 | Scoring Weight | Weight scaling estimated move damage when scoring candidate actions. |
antiBoostWeightConsideration | int | 25 | Scoring Weight | Score weight given to neutralizing or punishing an opponent's stat boosts. |
hpWeightConsideration | double | 0.25 | Scoring Weight | Weight assigned to remaining HP advantage during matchup evaluation. |
hpFractionCoefficient | double | 0.4 | Scoring Weight | Coefficient scaling HP percentage differentials in estimateMatchup(). |
boostWeightCoefficient | int | 1 | Scoring Weight | Base weight per stat stage boost when evaluating setup moves and current boosts. |
switchOutMatchupThreshold | int | -2 | Switch & Tactical Threshold | Matchup rating threshold (-2) below which StrongBattleAI considers switching out. |
selfKoMoveMatchupThreshold | double | 0.3 | Switch & Tactical Threshold | Matchup threshold (0.3) governing when self-KO moves (Explosion/Memento/etc.) are considered. |
trickRoomThreshold | int | 85 | Switch & Tactical Threshold | Speed threshold (85) used to judge whether setting or exploiting Trick Room favors the AI side. |
recoveryMoveThreshold | double | 0.5 | Switch & Tactical Threshold | HP fraction threshold (0.5 = 50% HP) below which recovery moves are prioritized. |
accuracySwitchThreshold | int | -3 | Switch & Tactical Threshold | Accuracy stat stage threshold (-3) at which the AI considers switching to reset lowered accuracy. |
hpSwitchOutThreshold | double | 0.3 | Switch & Tactical Threshold | HP fraction threshold (0.3 = 30% HP) influencing defensive switch-out evaluation. |
randomProtectChance | double | 0.3 | Switch & Tactical Threshold | Probability (0.3 = 30%) applied when evaluating random Protect usage. |
statusDamageConsiderationThreshold | double | 0.8 | Switch & Tactical Threshold | Damage threshold (0.8) used to decide whether a status move is worth choosing over raw damage. |
Verified directly from CatchRateModifiers.class and CaptureEffects.class bytecode: every specialty Poké Ball combines one or more CatchRateModifier implementations (BattleModifier, WorldStateModifier, DynamicMultiplierModifier, MultiplierModifier, BaseStatModifier, LabelModifier, GuaranteedModifier, PropertyBasedModifier) and optional post-capture CaptureEffect hooks. Notice that REPEAT queries PlayerInstancedDataStoreManager.getPokedexData(uuid) directly (3.5× only when PokedexEntryProgress.OWNED).
| Static Constant | Modifier Class | Poké Ball(s) | Bytecode Formula |
|---|---|---|---|
LEVEL | BattleModifier | Level Ball | 4.0× if playerMaxLevel > 4 × targetLevel; 3.0× if > 2 × targetLevel; 2.0× if > targetLevel; else 1.0×. |
SUBMERGED_IN_WATER | WorldStateModifier | Dive Ball | 3.5× when entity.isUnderWater() is true; else 1.0×. |
NEST | DynamicMultiplierModifier | Nest Ball | (41 - pokemon.level) / 10.0f when pokemon.level < 30; else 1.0× (predicate checks level < 30). |
LOVE | BattleModifier | Love Ball | 1.0× if target is GENDERLESS; 8.0× if an active player Pokémon is opposite gender AND same species; 2.5× if opposite gender only; else 1.0×. |
MOON_PHASES | WorldStateModifier | Moon Ball | Requires night ((dayTime % 24000) >= 12000). By moonPhase (0–7): Full (0) = 4.0×; Gibbous (1, 7) = 2.5×; Quarter (2, 6) = 1.5×; Crescent/New (3, 4, 5) or daytime = 1.0×. |
LIGHT_LEVEL | WorldStateModifier | Dusk Ball | Checks level.getMaxLocalRawBrightness(blockPos): Light Level 0 = 3.5×; Light Level 1–7 = 3.0×; Light Level 8+ = 1.0×. |
SAFARI | MultiplierModifier | Safari Ball | 1.5× when the target Pokémon entity is NOT currently in battle (!entity.isBattling()). |
PARK | WorldStateModifier | Park Ball | 2.5× when the target's biome matches tag #cobblemon:is_temperate (CobblemonBiomeTags.IS_TEMPERATE); else 1.0×. |
LURE | WorldStateModifier | Lure Ball | 4.0× when entity.aspects contains "fished"; else 1.0×. |
WEIGHT_BASED | DynamicMultiplierModifier | Heavy Ball | Uses form.weight (hectograms): ≥3000 (300 kg) = 4.0×; 2000–2999 = 2.5×; 1000–1999 = 1.5×; <1000 = 1.0× (predicate weight >= 1000.0f). |
REPEAT | WorldStateModifier | Repeat Ball | Queries PlayerInstancedDataStoreManager.getPokedexData(thrower.uuid).getKnowledgeForSpecies(species): OWNED = 3.5×; else 1.0×. |
| Factory Method | Returned Class | Poké Ball(s) | Bytecode Predicate / Formula |
|---|---|---|---|
typeBoosting(multiplier, ...types) | MultiplierModifier | Net Ball (3.0× Water/Bug), Sport Ball (1.5× Bug), Beast Ball (5.0× / 0.1× via LabelModifier) | Returns multiplier if any of pokemon.types matches the provided ElementalType varargs. |
statusBoosting(multiplier, ...statuses) | MultiplierModifier | Dream Ball (4.0× Sleep) | Returns multiplier if pokemon.status.status is contained in the provided PersistentStatus varargs. |
turnBased(multiplierCalculator) | BattleModifier | Quick Ball (turn 1 → 5.0×), Timer Ball (min(4.0, 1 + turn × 1229/4096)) | Looks up BattleRegistry.getBattleByParticipatingPlayer(player).turn and invokes multiplierCalculator(turn). |
| Capture Effect | Class | Poké Ball(s) | Bytecode Post-Capture Effect |
|---|---|---|---|
CaptureEffects.FULL_RESTORE | CaptureEffects | Heal Ball | Invokes pokemon.heal() immediately on capture, restoring full HP, PP, and clearing persistent status conditions. |
CaptureEffects.friendshipSetter(amount) | CaptureEffects | Friend Ball (150) | Sets the newly captured Pokémon's initial friendship to the specified integer amount (Friend Ball sets 150). |
FriendshipEarningBoostEffect(multiplier) | FriendshipEarningBoostEffect | Luxury Ball (2.0×) | Carries a float multiplier inspected by friendship-gain hooks whenever the Pokémon caught in that Poké Ball earns friendship. |
| Class & Package | Subsystem & Kind | Inheritance | Key Methods / Enum Values | Verified Role |
|---|---|---|---|---|
RandomBattleAIbattles.ai | Battle AI (battles/ai) Class | — implements BattleAI | RandomBattleAI(), choose(), onHealthChange() | Baseline battle AI that picks uniformly at random among usable moves, valid targets, or available switch-in party members. |
StrongBattleAIbattles.ai | Battle AI (battles/ai) Class | — implements BattleAI | StrongBattleAI(), checkSkillLevel(), checkSwitchOutSkill(), calculateDamage(), mostDamagingMove() +17 more | Skill-scaled tactical battle AI (skill 0..5) using ActiveTracker, 16 scoring/threshold constants, damage estimation, matchup scoring, and voluntary switch-out checks. |
AIUtilitybattles.ai.strongBattleAI | Battle AI (battles/ai) Object | — | AIUtility(), getDamageMultiplier(), getTypeEffectiveness(), getMultiHitMoves(), getStatusMoves() +13 more | Helper calculations supporting StrongBattleAI move scoring, stat stage adjustments, and matchup comparisons. |
ActiveTrackerbattles.ai.strongBattleAI | Battle AI (battles/ai) Class | — | ActiveTracker(), getCurrentRoom(), setCurrentRoom(), getCurrentTerrain(), setCurrentTerrain() +7 more | Tracks active battle sides, actors, and per-Pokémon state snapshots for StrongBattleAI decision evaluation. |
ActiveTrackerKtbattles.ai.strongBattleAI | Battle AI (battles/ai) Class | — | createAllied(), createOpposing() | Kotlin top-level helpers supporting ActiveTracker state lookups during AI evaluation. |
TrackerActorbattles.ai.strongBattleAI | Battle AI (battles/ai) Class | — | TrackerActor(), getUuid(), getParty(), getActivePokemon(), getRemainingMons() +2 more | Lightweight per-actor snapshot inside ActiveTracker mirroring an actor's roster for AI scoring. |
TrackerPokemonbattles.ai.strongBattleAI | Battle AI (battles/ai) Class | — | TrackerPokemon(), getId(), setId(), getPokemon(), setPokemon() +26 more | Per-Pokémon snapshot (HP, stats, types, boosts, status) consumed by StrongBattleAI damage and matchup evaluators. |
TrackerSidebattles.ai.strongBattleAI | Battle AI (battles/ai) Class | — | TrackerSide(), getScreenCondition(), setScreenCondition(), getTailwindCondition(), setTailwindCondition() +6 more | Per-side battlefield snapshot (hazards, screens, weather/terrain context) consumed by StrongBattleAI. |
BasicContextapi.battles.interpreter | Battle Model & Interpreter (api/battles) Class | — implements BattleContext | BasicContext(), getId(), getTurn(), getType(), getOrigin() +5 more | Standard BattleContext implementation carrying an ID, turn number, type, and optional origin context. |
BattleContextapi.battles.interpreter | Battle Model & Interpreter (api/battles) Interface | — | getId(), getTurn(), getType(), getOrigin(), getStruct() | Structured battle history entry tracking moves, statuses, boosts, and origins for Showdown interpretation. |
BattleMessageapi.battles.interpreter | Battle Model & Interpreter (api/battles) Class | — | BattleMessage(), getId(), getRawMessage(), argumentAt(), optionalArgument() +12 more | Parsed pipe-delimited Showdown protocol line consumed by BattleInterpreter instruction classes. |
Effectapi.battles.interpreter | Battle Model & Interpreter (api/battles) Interface | — | getId(), getType(), getRawData(), getTypelessData() | Wrapper representing a Showdown move, ability, item, or condition effect ID parsed from BattleMessage tokens. |
InvalidInstructionExceptionapi.battles.interpreter | Battle Model & Interpreter (api/battles) Class | Exception | InvalidInstructionException() | Exception thrown when a Showdown protocol line cannot be parsed into a valid battle instruction. |
MissingContextapi.battles.interpreter | Battle Model & Interpreter (api/battles) Class | — implements BattleContext | MissingContext(), getId(), getTurn(), getType(), getOrigin() +5 more | Fallback BattleContext placeholder returned when a referenced battle context entry is absent. |
BattleEndResultapi.battles.model | Battle Model & Interpreter (api/battles) Enum | — | Enum: VICTORY, CAPTURE, FORFEIT, FLED, STOPPED | Enum recording how a battle terminated: VICTORY, CAPTURE, FORFEIT, FLED, or STOPPED. |
PokemonBattleapi.battles.model | Battle Model & Interpreter (api/battles) Class | — | PokemonBattle(), getFormat(), getSide1(), getSide2(), getMute() +77 more | Central battle controller tracking sides, turns, battle format, Showdown communication, end results, and active actors. |
AIBattleActorapi.battles.model.actor | Battle Model & Interpreter (api/battles) Abstract Class | BattleActor | AIBattleActor(), getBattleAI(), sendUpdate(), onChoiceRequested() | BattleActor implementation delegating every Showdown action request to an attached BattleAI instance. |
ActorTypeapi.battles.model.actor | Battle Model & Interpreter (api/battles) Enum | — | Enum: WILD, PLAYER, NPC | Enum classifying battle participants: WILD, PLAYER, or NPC. |
BattleActorapi.battles.model.actor | Battle Model & Interpreter (api/battles) Abstract Class | — | BattleActor(), getUuid(), getPokemonList(), getStruct(), getShowdownId() +37 more | Abstract participant on a BattleSide holding its BattlePokemon roster, type, and action-request lifecycle. |
EntityBackedBattleActorapi.battles.model.actor | Battle Model & Interpreter (api/battles) Interface | LivingEntity> | getEntity(), getInitialPos() | Interface for BattleActors tied to a Minecraft world Entity (such as WildPokemon, Player, or NPC). |
FleeableBattleActorapi.battles.model.actor | Battle Model & Interpreter (api/battles) Interface | — | getFleeDistance(), getWorldAndPosition() | Interface for BattleActors capable of fleeing a battle based on flee distance rules. |
BattleAIapi.battles.model.ai | Battle Model & Interpreter (api/battles) Interface | — | choose(), onHealthChange() | Core interface defining choose(activeBattlePokemon, battle, aiSide, moveset, forceSwitch) and optional health-change hooks. |
CaptureContextapi.pokeball.catching | Catching & Modifiers (api/pokeball/catching) Class | — | CaptureContext(), getNumberOfShakes(), isSuccessfulCapture(), isCriticalCapture(), copy() +3 more | Immutable result of a capture calculation (numberOfShakes, isSuccessfulCapture, isCriticalCapture). |
CaptureEffectapi.pokeball.catching | Catching & Modifiers (api/pokeball/catching) Interface | — | apply() | Interface for post-capture callbacks executed on a newly caught Pokémon (e.g., Heal Ball, Friend Ball). |
CatchRateModifierapi.pokeball.catching | Catching & Modifiers (api/pokeball/catching) Interface | — | isGuaranteed(), value(), behavior(), isValid(), modifyCatchRate() | Interface for Poké Ball catch-rate multipliers evaluated against thrower, target Pokémon, and world/battle state. |
CaptureCalculatorapi.pokeball.catching.calculators | Catching & Modifiers (api/pokeball/catching) Interface | — | id(), processCapture(), getCatchRate() | Interface for Poké Ball capture math implementations returning a CaptureContext. |
CaptureCalculatorsapi.pokeball.catching.calculators | Catching & Modifiers (api/pokeball/catching) Object | — | CaptureCalculators(), register(), fromId(), registerDefaults$common() | Registry holding all 11 built-in capture formula IDs (cobblemon, debug, generation_1..9, generation_2_fixed). |
CriticalCaptureProviderapi.pokeball.catching.calculators | Catching & Modifiers (api/pokeball/catching) Interface | — | shouldHaveCriticalCapture() | Interface defining the 6-tier Pokédex-based Critical Capture multiplier (0× to 2.5×) and 1-shake roll. |
PokedexProgressCaptureMultiplierProviderapi.pokeball.catching.calculators | Catching & Modifiers (api/pokeball/catching) Interface | — | caughtMultiplierFor() | Interface defining the 6-tier Pokédex completion catch multiplier (1229/4096 up to 1.0×). |
PokedexStatusCaptureInfluencerapi.pokeball.catching.calculators | Catching & Modifiers (api/pokeball/catching) Interface | — | influence() | Interface adjusting capture animation to a single shake when the target species is already OWNED. |
CaptureEffectsapi.pokeball.catching.effects | Catching & Modifiers (api/pokeball/catching) Object | — | CaptureEffects(), getFULL_RESTORE(), friendshipSetter() | Singleton defining FULL_RESTORE (Heal Ball) and friendshipSetter(int) (Friend Ball). |
FriendshipEarningBoostEffectapi.pokeball.catching.effects | Catching & Modifiers (api/pokeball/catching) Class | — implements CaptureEffect | FriendshipEarningBoostEffect(), getMultiplier(), apply() | CaptureEffect marker carrying a float multiplier (Luxury Ball 2.0×) for future friendship gains. |
BaseStatModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | BaseStatModifier(), getStat(), getComparator(), getMultiplier(), isGuaranteed() +4 more | CatchRateModifier checking a Pokémon's base stat against a threshold (Fast Ball: base Speed ≥ 100 → 4.0×). |
BattleModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | BattleModifier(), isGuaranteed(), value(), behavior(), isValid() +1 more | CatchRateModifier evaluated using active battle state (player's active Pokémon and turn count). |
CatchRateModifierAdapterapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Interface | JsonDeserializer | registerType() | Serialization/adapter helper for CatchRateModifier implementations. |
CatchRateModifiersapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Object | — | CatchRateModifiers(), getLEVEL(), getSUBMERGED_IN_WATER(), getNEST(), getLOVE() +10 more | Singleton registry of all 11 built-in Poké Ball modifiers plus typeBoosting, statusBoosting, and turnBased factories. |
DynamicMultiplierModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | DynamicMultiplierModifier(), isGuaranteed(), value(), behavior(), isValid() +1 more | CatchRateModifier computing a variable float multiplier whenever its predicate matches (Nest Ball, Heavy Ball). |
GuaranteedModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | GuaranteedModifier(), isGuaranteed(), value(), behavior(), isValid() +1 more | CatchRateModifier forcing a guaranteed capture regardless of HP or catch rate (Master Ball, Ancient Origin Ball). |
LabelModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | LabelModifier(), getMultiplier(), getMatching(), getLabels(), isGuaranteed() +4 more | CatchRateModifier multiplying catch rate based on species labels (Beast Ball: 5.0× ultra_beast, 0.1× otherwise). |
MultiplierModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | MultiplierModifier(), isGuaranteed(), value(), behavior(), isValid() +1 more | Fixed float CatchRateModifier applied when a (LivingEntity, Pokemon) predicate returns true. |
PropertyBasedModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | PropertyBasedModifier(), getProperty(), getMultiplier(), isGuaranteed(), value() +3 more | CatchRateModifier evaluating a PokemonProperties filter against the target Pokémon. |
WorldStateModifierapi.pokeball.catching.modifiers | Catching & Modifiers (api/pokeball/catching) Class | — implements CatchRateModifier | WorldStateModifier(), value(), behavior(), isValid(), modifyCatchRate() +1 more | CatchRateModifier inspecting live Minecraft world/entity state (brightness, underwater, moon phase, biome tag, aspects). |