Cobblemon 1.8.4 World Entity, Brain Sensors & Movement AI

Cobblemon 1.8.4 Pokémon Entity & AI Engine (73 Classes)

Bytecode-verified technical reference covering all 73 top-level classes across com.cobblemon.mod.common.entity.pokemon (49 classes) and com.cobblemon.mod.common.pokemon.ai (24 classes) in Cobblemon 1.8.4. Inspect PokemonEntity (extending Minecraft ShoulderRidingEntity and implementing Rideable, Shearable, OmniPathingEntity), all 4 PokemonBehaviourFlag bit flags, the exact CobblemonAgingDespawner formula (32–96 blocks · 600–3,600 ticks), all 4 battle visual effects (IllusionEffect / TransformEffect), all 10 Brain sensors, 30 AI tasks, and 24 world movement & pathfinding classes.

Entity & AI Classes
73 Total (49 entity/pokemon + 24 pokemon/ai)
Behaviour Flags
4 Bit Flags (LOOKING · EXCITED · FLYING · PASTURE_CONFLICT)
AI Sensors & Tasks
10 Entity Sensors · 30 Brain Tasks · 4 Visual Effects
Aging Despawner
32–96 Blocks · 600–3,600 Ticks (Skips Busy)
Entity & AI Subsystem
Bytecode Kind
API Surface
Inheritance
Core Entity, Flags & Effects · ClassCobblemonAgingDespawner

Distance-and-age linear despawner reading CobblemonConfig (32–96 block band, 600–3,600 tick age band) and skipping busy Pokémon.

Fields: getAgeTicks, nearToFar, youngToOld · Methods: getGetAgeTicks, beginTracking, shouldDespawn

3 fields · 3 methodsFlags, Despawner & Effects →
Core Entity, Flags & Effects · EnumPokemonBehaviourFlag

Four-value bit-flag enum (LOOKING=1, EXCITED=2, FLYING=3, PASTURE_CONFLICT=4) synced on PokemonEntity for animation and AI state.

Flags: LOOKING, EXCITED, FLYING, PASTURE_CONFLICT · Methods: getBit

Core Entity, Flags & Effects · ClassPokemonEntity

Primary Minecraft world entity class for spawned, battled, pastured, shouldered, and rideable Pokémon, bridging entity data sync, AI Brain, effects, and riding.

Fields: removalObservable, subscriptions, schedulingTracker, brainDynamic (+66) · Methods: getRemovalObservable, getSubscriptions, getSchedulingTracker, getForm (+200)

70 fields · 204 methodsFlags, Despawner & Effects →
Core Entity, Flags & Effects · ClassPokemonServerDelegate

Server-side entity lifecycle delegate syncing Pokémon stats, hitbox dimensions, battle state, cry/ambient ticks, and despawner checks.

Fields: entity, acknowledgedHPValue, acknowledgedLevel, passengerOffsets · Methods: getEntity, setEntity, getAcknowledgedHPValue, setAcknowledgedHPValue (+29)

4 fields · 33 methodsFlags, Despawner & Effects →
Entity AI Sensors & Move Control · ClassPokemonMoveControl

Custom MoveControl subclass handling 3D land, water, and aerial flight steering vectors and speed damping for PokemonEntity.

Fields: pokemonEntity, runtime, waterLevel, banking (+5) · Methods: getPokemonEntity, getRuntime, getBanking, setBanking (+15)

9 fields · 19 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassAlphaLevelMatchingSensor

AI Sensor (`RADIUS_SQR = 1024.0`, 32-block radius) scanning nearby players to match Alpha Pokémon encounter scaling and tracking `lastMatchingPlayerId`.

Fields: lastMatchingPlayerId, RADIUS_SQR · Methods: requires, doTick

2 fields · 2 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassBeeHiveSensor

AI Sensor locating reachable vanilla Beehives/Bee Nests with available space and populating `HIVE_LOCATION` while respecting `HIVE_BLACKLIST`.

Methods: requires, doTick, isValidHive, isHiveBlock (+3)

0 fields · 7 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassDefendOwnerSensor

AI Sensor detecting hostile entities attacking a Pokémon's owner and populating `NEAREST_VISIBLE_ATTACKER`.

Methods: requires, doTick, setNearestAttacker

0 fields · 3 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassDrowsySensor

AI Sensor evaluating sleep schedule, light level, and rest behaviour to update the `POKEMON_DROWSY` memory module.

Methods: requires, doTick

0 fields · 2 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassFlowerSensor

AI Sensor scanning nearby blocks for flower blocks and storing the nearest position in `NEARBY_FLOWER`.

Methods: requires, doTick, isFlower

0 fields · 3 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassPokemonAdultSensor

AI Sensor filtering visible entities for valid adult parent species so baby Pokémon can follow their evolutionary line.

Methods: requires, doTick, setNearestPokemonAdult, targetIsValidForChild

0 fields · 4 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassPokemonGrowableCropSensor

AI Sensor finding bonemealable crops around the Pokémon and storing targets in `NEARBY_GROWABLE_CROPS`.

Methods: doTick, requires, findBoneMealPos, canBoneMeal

0 fields · 4 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassPokemonItemSensor

AI Sensor (default `16×8×16` scan box, `PICKUP_ITEMS = "pickup_items"`) detecting ground ItemEntities matching obtainable item rules.

Fields: width, height, maxTravelDistance, PICKUP_ITEMS · Methods: requires, doTick

4 fields · 2 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassSacLeavesSensor

AI Sensor locating nearby Saccharine Leaf blocks and recording the closest target in `NEARBY_SACC_LEAVES`.

Methods: requires, doTick, isValidLeafBlock

0 fields · 3 methods10 Entity AI Sensors →
Entity AI Sensors & Move Control · ClassSweetBerryBushSensor

AI Sensor (`10` horizontal, `1` vertical radius, `40`-tick interval) locating mature Sweet Berry Bushes into `NEARBY_SWEET_BERRY_BUSH`.

Fields: SCAN_RADIUS_HORIZONTAL, SCAN_RADIUS_VERTICAL, SCAN_INTERVAL · Methods: doTick, requires, findNearestBush

3 fields · 3 methods10 Entity AI Sensors →
Entity AI Brain Tasks · ObjectAttackTask

Entity AI brain task implementing attack behaviour for PokemonEntity (0 fields, 1 method).

Methods: create

0 fields · 1 method90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassEatGrassTask

Entity AI brain task implementing eat grass behaviour for PokemonEntity (4 fields, 8 methods).

Fields: eatingChance, cooldownTicks, grassPredicate, timer · Methods: getEatingChance, getCooldownTicks, getGrassPredicate, getTimer (+4)

4 fields · 8 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassEatHeldItemTask

Entity AI brain task implementing eat held item behaviour for PokemonEntity (4 fields, 8 methods).

Fields: timelastEaten, pickupItems, MAX_DURATION, COOLDOWN · Methods: getPickupItems, checkExtraStartConditions, canStillUse, canEat (+4)

4 fields · 8 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassFertilizerTask

Entity AI brain task implementing fertilizer behaviour for PokemonEntity (5 fields, 7 methods).

Fields: startTime, lastEndEntityAge, duration, pos (+1) · Methods: checkExtraStartConditions, canStillUse, start, addLookWalkTargets (+3)

5 fields · 7 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ObjectGoToSleepTask

Entity AI brain task implementing go to sleep behaviour for PokemonEntity (0 fields, 1 method).

Methods: create

0 fields · 1 method90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassHarvestSweetBerryBushTask

Entity AI brain task implementing harvest sweet berry bush behaviour for PokemonEntity (2 fields, 2 methods).

Fields: startTime, WAIT_TIME · Methods: getStartTime, setStartTime

2 fields · 2 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassHuntPlayerTask

Entity AI brain task implementing hunt player behaviour for PokemonEntity (8 fields, 5 methods).

Fields: targetEntity, lastKnownLocation, searching, searchTime (+4) · Methods: findPlayer, addLookWalkTargets, startSearching, performSearch (+1)

8 fields · 5 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassIgniteTask

Entity AI brain task implementing ignite behaviour for PokemonEntity (5 fields, 9 methods).

Fields: startTime, lastEndEntityAge, duration, pos (+1) · Methods: checkExtraStartConditions, canStillUse, findIgnitionPos, canLight (+5)

5 fields · 9 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ClassJumpOutOfWaterTask

Entity AI brain task implementing jump out of water behaviour for PokemonEntity (4 fields, 8 methods).

Fields: inWater, MAX_DURATION, CHANCE, OFFSET_MULTIPLIERS · Methods: getInWater, setInWater, checkExtraStartConditions, canStillUse (+4)

4 fields · 8 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ObjectMoveToOwnerTask

Entity AI brain task implementing move to owner behaviour for PokemonEntity (0 fields, 5 methods).

Methods: create, tryTeleport, tryTeleportTo, canTeleportTo (+1)

0 fields · 5 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ObjectPickUpItemTask

Entity AI brain task implementing pick up item behaviour for PokemonEntity (0 fields, 2 methods).

Methods: create, dropItem

0 fields · 2 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ObjectPlaceHoneyInHiveTask

Entity AI brain task implementing place honey in hive behaviour for PokemonEntity (0 fields, 2 methods).

Methods: create, wantsToEnterHive

0 fields · 2 methods90 AI JSON Task Configs →
Entity AI Brain Tasks · ObjectWakeUpTask

Entity AI brain task implementing wake up behaviour for PokemonEntity (0 fields, 1 method).

Methods: create

0 fields · 1 method90 AI JSON Task Configs →
Core Entity, Flags & Effects · AbstractBattleEffect

Abstract EntityEffect base class (`battleOnly`) managing CompletableFuture start/end animations for temporary visual battle effects.

Fields: battleOnly · Methods: getBattleOnly, start, end, apply (+1)

1 field · 5 methodsFlags, Despawner & Effects →
Core Entity, Flags & Effects · ClassEffectTracker

Per-PokemonEntity state tracker storing active CompletableFuture effect progress, MocKEffect disguise/transform state, and NBT persistence.

Fields: entity, progress, mockEffect · Methods: getEntity, getProgress, setProgress, getMockEffect (+5)

3 fields · 9 methodsFlags, Despawner & Effects →
Core Entity, Flags & Effects · ClassIllusionEffect

BattleEffect (`ID = "ILLUSION"`) implementing MocKEffect to disguise Zoroark/Zorua as another species (`PokemonProperties`) with `disguise` animation and Pokédex reveal on revert.

Fields: mock, scale · Methods: getMock, setMock, getScale, setScale (+8)

2 fields · 12 methodsFlags, Despawner & Effects →
Core Entity, Flags & Effects · ClassTransformEffect

BattleEffect (`ID = "TRANSFORM"`) implementing MocKEffect to copy another Pokémon's appearance (`mimic` animation, optional `doCry` toggle).

Fields: mock, scale, doCry · Methods: getMock, setMock, getScale, setScale (+8)

3 fields · 12 methodsFlags, Despawner & Effects →
AI Movement & World Behaviours · ClassBlockBehavior

Configures block interaction behaviour rules on species JSON.

Fields: immuneToSweetBerryBushBlock, canStandOnPowderSnow, canPathThroughSaccLeaves, immuneToCobwebBlock (+1) · Methods: getCanPathThroughSaccLeaves, getImmuneToCobwebBlock, getStruct

5 fields · 3 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassCombatBehaviour

Configures whether a wild Pokémon will defend itself (`willDefendSelf`), defend its owner (`willDefendOwner`), or flee (`willFlee`).

Fields: willDefendSelf, willFlee, willDefendOwner, fightsMelee (+1) · Methods: getWillDefendSelf, setWillDefendSelf, getWillFlee, setWillFlee (+6)

5 fields · 10 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassEntityBehaviour

Configures entity-level interaction flags such as `avoidedBySkeleton` and `avoidedByCreeper`.

Fields: avoidedByCreeper, avoidedByPhantom, avoidedByFox, avoidedBySkeleton (+1) · Methods: getAvoidedByCreeper, getAvoidedByPhantom, getAvoidedByFox, getAvoidedBySkeleton (+1)

5 fields · 5 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassFlyBehaviour

Controls aerial flight (`canFly`, `flySpeedHorizontal`) for flying Pokémon entities.

Fields: canFly, flySpeedHorizontal, struct · Methods: getCanFly, getFlySpeedHorizontal, getStruct

3 fields · 3 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassFormPokemonBehaviour

Form-specific PokemonBehaviour override allowing regional and alternate forms to replace base species movement, rest, or herd rules.

Fields: parent, _resting, _moving, _idle (+11) · Methods: getParent, setParent, getResting, getMoving (+12)

15 fields · 16 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassHerdBehaviour

Configures herding leader priority, maximum herd size, `followDistance`, and `toleratedLeaders` list.

Fields: toleratedLeaders, maxSize, followDistance, struct · Methods: getToleratedLeaders, getMaxSize, getFollowDistance, getStruct (+2)

4 fields · 6 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassIdleBehaviour

Configures ambient idle poses and animation weights when a Pokémon is stationary.

Fields: struct · Methods: getStruct

AI Movement & World Behaviours · ClassItemBehavior

Configures obtainable/pickupable item rules for a species' AI item-gathering routines.

Fields: desiredItems, struct · Methods: getStruct

2 fields · 1 methodSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassMoveBehaviour

Aggregates WalkBehaviour, SwimBehaviour, FlyBehaviour, `wanderChance`, `wanderSpeed`, and `canLook` flags for a species.

Fields: walk, swim, fly, stepHeight (+4) · Methods: getWalk, getSwim, getFly, getStepHeight (+4)

8 fields · 8 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassObtainableItem

Data record pairing an ObtainableItemCondition with pickup/return settings for item-gathering AI.

Fields: item, pickupPriority, fullnessValue, returnItem (+2) · Methods: getItem, setItem, getPickupPriority, setPickupPriority (+7)

6 fields · 11 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassOmniPathNodeMaker

Unified Pathfinding NodeEvaluator supporting amphibious, terrestrial, lava-walking, and 3D flying navigation paths.

Fields: nodePosToType, nodePosToState, canPathThroughFire, nodeFilter (+2) · Methods: getCanPathThroughFire, setCanPathThroughFire, getNodeFilter, setNodeFilter (+29)

6 fields · 33 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassPokemonBehaviour

Root species behaviour configuration container aggregating resting, moving, idle, combat, herd, fire/lightning, entity, block, and item behaviours.

Fields: resting, moving, idle, fireImmune (+10) · Methods: getResting, getMoving, setMoving, getIdle (+12)

14 fields · 16 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ObjectPokemonBrain

Factory building and configuring the Minecraft Brain (sensors, memories, schedules, and behaviour task packs) for every PokemonEntity.

Fields: ADULT_FOLLOW_RANGE, AVOID_MEMORY_DURATION, SENSORS, MEMORY_MODULES · Methods: getSENSORS, applyBrain, getMEMORY_MODULES, coreTasks (+8)

4 fields · 12 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassRestBehaviour

Configures sleep capability (`canSleep`), `sleepLight`, `times` (TimeRange), `blocks` bed list, `drowsyChance`, `rouseChance`, and `willSleepOnBed`.

Fields: canSleep, times, blocks, biomes (+9) · Methods: getCanSleep, getTimes, getBlocks, getBiomes (+9)

13 fields · 13 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassSwimBehaviour

Controls aquatic/lava swimming (`canSwimInWater`, `canSwimInLava`, `canBreatheUnderwater`, `canBreatheUnderlava`, `canWalkOnWater`, `canWalkOnLava`, `swimSpeed`).

Fields: avoidsWater, canSwimInWater, swimSpeed, canBreatheUnderwater (+5) · Methods: getAvoidsWater, getCanSwimInWater, getSwimSpeed, getCanBreatheUnderwater (+8)

9 fields · 12 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassToleratedHerdLeader

Descriptor specifying another species/tier that a herding Pokémon accepts as a herd leader.

Fields: pokemon, tier, ignoresLevel, followDistance · Methods: getPokemon, setPokemon, getTier, getIgnoresLevel (+2)

4 fields · 6 methodsSpecies Behaviour Presets →
AI Movement & World Behaviours · ClassWalkBehaviour

Controls ground walking (`canWalk`, `avoidsLand`, `walkSpeed`) for PokemonEntity navigation.

Fields: canWalk, avoidsLand, walkSpeed, struct · Methods: getCanWalk, getAvoidsLand, getWalkSpeed, setWalkSpeed (+1)

4 fields · 5 methodsSpecies Behaviour Presets →

4 Behaviour Flags, Aging Despawner, 4 Entity Effects & 10 AI Sensors

Despawner Config →

Verified from CobblemonAgingDespawner.shouldDespawn(): a Pokémon never despawns when younger than 600 ticks (30s), while PokemonEntity.isBusy() is true, or closer than 32 blocks to any player. Beyond 96 blocks or older than 3,600 ticks (180s) outside the near radius it despawns immediately; inside the 64-block transition band (32–96 blocks), the age threshold scales linearly across 3,000 ticks: age > (1 - (dist - 32) / 64) × 3000.

PokemonBehaviourFlag (4)Bit IndexRuntime Meaning
LOOKINGOrdinal 0 → Bit 1Set when the Pokémon is actively looking toward a focus target or nearby player.
EXCITEDOrdinal 1 → Bit 2Set during excited social/interaction animation triggers on PokemonEntity.
FLYINGOrdinal 2 → Bit 3Synced airborne state bit indicating active flight animation and aerial physics.
PASTURE_CONFLICTOrdinal 3 → Bit 4Set when a pastured Pokémon cannot tether cleanly or hits a pasture conflict state.
Entity Effect (4)NBT Static IDInheritanceLifecycle & Behaviour
BattleEffect
Abstract
—— · EntityEffectAbstract EntityEffect base class (`battleOnly`) managing CompletableFuture start/end animations for temporary visual battle effects.
EffectTracker
Class
——Per-PokemonEntity state tracker storing active CompletableFuture effect progress, MocKEffect disguise/transform state, and NBT persistence.
IllusionEffect
Class
ILLUSIONBattleEffect · MocKEffectBattleEffect (`ID = "ILLUSION"`) implementing MocKEffect to disguise Zoroark/Zorua as another species (`PokemonProperties`) with `disguise` animation and Pokédex reveal on revert.
TransformEffect
Class
TRANSFORMBattleEffect · MocKEffectBattleEffect (`ID = "TRANSFORM"`) implementing MocKEffect to copy another Pokémon's appearance (`mimic` animation, optional `doCry` toggle).
Entity AI Sensor (10)Cobblemon MemoriesBytecode ConstantsSensor Behaviour
AlphaLevelMatchingSensorVanilla Minecraft Brain MemoriesRADIUS_SQR = 1024.0dAI Sensor (`RADIUS_SQR = 1024.0`, 32-block radius) scanning nearby players to match Alpha Pokémon encounter scaling and tracking `lastMatchingPlayerId`.
BeeHiveSensorHIVE_BLACKLIST, HIVE_LOCATION—AI Sensor locating reachable vanilla Beehives/Bee Nests with available space and populating `HIVE_LOCATION` while respecting `HIVE_BLACKLIST`.
DefendOwnerSensorNEAREST_VISIBLE_ATTACKER—AI Sensor detecting hostile entities attacking a Pokémon's owner and populating `NEAREST_VISIBLE_ATTACKER`.
DrowsySensorPOKEMON_DROWSY—AI Sensor evaluating sleep schedule, light level, and rest behaviour to update the `POKEMON_DROWSY` memory module.
FlowerSensorNEARBY_FLOWER—AI Sensor scanning nearby blocks for flower blocks and storing the nearest position in `NEARBY_FLOWER`.
PokemonAdultSensorVanilla Minecraft Brain Memories—AI Sensor filtering visible entities for valid adult parent species so baby Pokémon can follow their evolutionary line.
PokemonGrowableCropSensorNEARBY_GROWABLE_CROPS—AI Sensor finding bonemealable crops around the Pokémon and storing targets in `NEARBY_GROWABLE_CROPS`.
PokemonItemSensorDISABLE_WALK_TO_WANTED_ITEMPICKUP_ITEMS = "pickup_items", DEFAULT_BOX = 16.0 x 8.0, maxTravel=16.0AI Sensor (default `16×8×16` scan box, `PICKUP_ITEMS = "pickup_items"`) detecting ground ItemEntities matching obtainable item rules.
SacLeavesSensorNEARBY_SACC_LEAVES—AI Sensor locating nearby Saccharine Leaf blocks and recording the closest target in `NEARBY_SACC_LEAVES`.
SweetBerryBushSensorDISABLE_WALK_TO_BERRY_BUSH, NEARBY_SWEET_BERRY_BUSHSCAN_RADIUS_HORIZONTAL = 10, SCAN_RADIUS_VERTICAL = 1, SCAN_INTERVAL = 40AI Sensor (`10` horizontal, `1` vertical radius, `40`-tick interval) locating mature Sweet Berry Bushes into `NEARBY_SWEET_BERRY_BUSH`.

All 24 World Movement Behaviours & 30 Entity AI Brain Tasks

90 AI JSON Configs →

24 pokemon/ai/* Classes (species behaviour structs, PokemonBrain, PokemonDisturbancesSensor, OmniPathNodeMaker, and item-pickup conditions):

30 entity/pokemon/ai/tasks/* Brain Tasks (combat, flight/water wandering, sleeping, sweet berry & honey gathering, crop bonemealing, item pickup, and battle pose locking):

Complete 73-Class Pokémon Entity & AI Reference Table

Pokémon Core API (83) →
Class & PackageSubsystem & KindSuperclass / InterfacesFields / MethodsRole & Bytecode Members
CobblemonAgingDespawner
entity.pokemon.CobblemonAgingDespawner
Core Entity, Flags & Effects
Class
—
implements Despawner<T>
3 / 3Distance-and-age linear despawner reading CobblemonConfig (32–96 block band, 600–3,600 tick age band) and skipping busy Pokémon.
Fields: getAgeTicks: Function1<T, Integer>, nearToFar: float, youngToOld: int · Methods: getGetAgeTicks, beginTracking, shouldDespawn
PokemonBehaviourFlag
entity.pokemon.PokemonBehaviourFlag
Core Entity, Flags & Effects
Enum
—1 / 1Four-value bit-flag enum (LOOKING=1, EXCITED=2, FLYING=3, PASTURE_CONFLICT=4) synced on PokemonEntity for animation and AI state.
Enum: LOOKING, EXCITED, FLYING, PASTURE_CONFLICT · Methods: getBit
PokemonEntity
entity.pokemon.PokemonEntity
Core Entity, Flags & Effects
Class
ShoulderRidingEntity
implements PosableEntity, Shearable, Schedulable, Rideable, ScannableEntity, MoLangScriptingEntity, OmniPathingEntity
70 / 204Primary Minecraft world entity class for spawned, battled, pastured, shouldered, and rideable Pokémon, bridging entity data sync, AI Brain, effects, and riding.
Fields: removalObservable: SimpleObservable<Entity.RemovalReason>, subscriptions: List<ObservableSubscription<?>>, schedulingTracker: SchedulingTracker, brainDynamic: Dynamic<?> · Methods: getRemovalObservable, getSubscriptions, getSchedulingTracker, getForm, getBehaviour
PokemonServerDelegate
entity.pokemon.PokemonServerDelegate
Core Entity, Flags & Effects
Class
—
implements PokemonSideDelegate
4 / 33Server-side entity lifecycle delegate syncing Pokémon stats, hitbox dimensions, battle state, cry/ambient ticks, and despawner checks.
Fields: entity: PokemonEntity, acknowledgedHPValue: int, acknowledgedLevel: int, passengerOffsets: Map<Integer, Vec3> · Methods: getEntity, setEntity, getAcknowledgedHPValue, setAcknowledgedHPValue, getAcknowledgedLevel
PokemonMoveControl
entity.pokemon.ai.PokemonMoveControl
Entity AI Sensors & Move Control
Class
MoveControl9 / 19Custom MoveControl subclass handling 3D land, water, and aerial flight steering vectors and speed damping for PokemonEntity.
Fields: pokemonEntity: PokemonEntity, runtime: MoLangRuntime, waterLevel: double, banking: boolean · Methods: getPokemonEntity, getRuntime, getBanking, setBanking, getBankDurationTicks
AlphaLevelMatchingSensor
entity.pokemon.ai.sensors.AlphaLevelMatchingSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>2 / 2AI Sensor (`RADIUS_SQR = 1024.0`, 32-block radius) scanning nearby players to match Alpha Pokémon encounter scaling and tracking `lastMatchingPlayerId`.
Fields: lastMatchingPlayerId: UUID, RADIUS_SQR: double · Methods: requires, doTick
BeeHiveSensor
entity.pokemon.ai.sensors.BeeHiveSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 7AI Sensor locating reachable vanilla Beehives/Bee Nests with available space and populating `HIVE_LOCATION` while respecting `HIVE_BLACKLIST`.
Methods: requires, doTick, isValidHive, isHiveBlock, hasReachableAdjacentSide
DefendOwnerSensor
entity.pokemon.ai.sensors.DefendOwnerSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 3AI Sensor detecting hostile entities attacking a Pokémon's owner and populating `NEAREST_VISIBLE_ATTACKER`.
Methods: requires, doTick, setNearestAttacker
DrowsySensor
entity.pokemon.ai.sensors.DrowsySensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 2AI Sensor evaluating sleep schedule, light level, and rest behaviour to update the `POKEMON_DROWSY` memory module.
Methods: requires, doTick
FlowerSensor
entity.pokemon.ai.sensors.FlowerSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 3AI Sensor scanning nearby blocks for flower blocks and storing the nearest position in `NEARBY_FLOWER`.
Methods: requires, doTick, isFlower
PokemonAdultSensor
entity.pokemon.ai.sensors.PokemonAdultSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 4AI Sensor filtering visible entities for valid adult parent species so baby Pokémon can follow their evolutionary line.
Methods: requires, doTick, setNearestPokemonAdult, targetIsValidForChild
PokemonGrowableCropSensor
entity.pokemon.ai.sensors.PokemonGrowableCropSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 4AI Sensor finding bonemealable crops around the Pokémon and storing targets in `NEARBY_GROWABLE_CROPS`.
Methods: doTick, requires, findBoneMealPos, canBoneMeal
PokemonItemSensor
entity.pokemon.ai.sensors.PokemonItemSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>4 / 2AI Sensor (default `16×8×16` scan box, `PICKUP_ITEMS = "pickup_items"`) detecting ground ItemEntities matching obtainable item rules.
Fields: width: double, height: double, maxTravelDistance: double, PICKUP_ITEMS: String · Methods: requires, doTick
SacLeavesSensor
entity.pokemon.ai.sensors.SacLeavesSensor
Entity AI Sensors & Move Control
Class
Sensor<PokemonEntity>0 / 3AI Sensor locating nearby Saccharine Leaf blocks and recording the closest target in `NEARBY_SACC_LEAVES`.
Methods: requires, doTick, isValidLeafBlock
SweetBerryBushSensor
entity.pokemon.ai.sensors.SweetBerryBushSensor
Entity AI Sensors & Move Control
Class
Sensor<LivingEntity>3 / 3AI Sensor (`10` horizontal, `1` vertical radius, `40`-tick interval) locating mature Sweet Berry Bushes into `NEARBY_SWEET_BERRY_BUSH`.
Fields: SCAN_RADIUS_HORIZONTAL: int, SCAN_RADIUS_VERTICAL: int, SCAN_INTERVAL: int · Methods: doTick, requires, findNearestBush
AttackHostileMobsTask
entity.pokemon.ai.tasks.AttackHostileMobsTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing attack hostile mobs behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
AttackTask
entity.pokemon.ai.tasks.AttackTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing attack behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
ChooseFlightWanderTargetTask
entity.pokemon.ai.tasks.ChooseFlightWanderTargetTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing choose flight wander target behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
ChooseWaterWanderTargetTask
entity.pokemon.ai.tasks.ChooseWaterWanderTargetTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing choose water wander target behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
DefendOwnerTask
entity.pokemon.ai.tasks.DefendOwnerTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing defend owner behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
EatGrassTask
entity.pokemon.ai.tasks.EatGrassTask
Entity AI Brain Tasks
Class
Behavior<PokemonEntity>4 / 8Entity AI brain task implementing eat grass behaviour for PokemonEntity (4 fields, 8 methods).
Fields: eatingChance: float, cooldownTicks: long, grassPredicate: BlockStatePredicate, timer: int · Methods: getEatingChance, getCooldownTicks, getGrassPredicate, getTimer, setTimer
EatHeldItemTask
entity.pokemon.ai.tasks.EatHeldItemTask
Entity AI Brain Tasks
Class
Behavior<PokemonEntity>4 / 8Entity AI brain task implementing eat held item behaviour for PokemonEntity (4 fields, 8 methods).
Fields: timelastEaten: long, pickupItems: List<ObtainableItem>, MAX_DURATION: int, COOLDOWN: int · Methods: getPickupItems, checkExtraStartConditions, canStillUse, canEat, start
FertilizerTask
entity.pokemon.ai.tasks.FertilizerTask
Entity AI Brain Tasks
Class
Behavior<PokemonEntity>5 / 7Entity AI brain task implementing fertilizer behaviour for PokemonEntity (5 fields, 7 methods).
Fields: startTime: long, lastEndEntityAge: long, duration: int, pos: Optional<BlockPos> · Methods: checkExtraStartConditions, canStillUse, start, addLookWalkTargets, stop
FindEntityTask
entity.pokemon.ai.tasks.FindEntityTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing find entity behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
FindRestingPlaceTask
entity.pokemon.ai.tasks.FindRestingPlaceTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing find resting place behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
GoToSleepTask
entity.pokemon.ai.tasks.GoToSleepTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing go to sleep behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
HandleBattleActivityGoal
entity.pokemon.ai.tasks.HandleBattleActivityGoal
Entity AI Brain Tasks
Object
—0 / 1AI Brain/Goal task keeping battling PokemonEntity instances locked into their active battle activity state.
Methods: create
HarvestSweetBerryBushTask
entity.pokemon.ai.tasks.HarvestSweetBerryBushTask
Entity AI Brain Tasks
Class
Behavior<LivingEntity>2 / 2Entity AI brain task implementing harvest sweet berry bush behaviour for PokemonEntity (2 fields, 2 methods).
Fields: startTime: int, WAIT_TIME: int · Methods: getStartTime, setStartTime
HuntPlayerTask
entity.pokemon.ai.tasks.HuntPlayerTask
Entity AI Brain Tasks
Class
Behavior<LivingEntity>8 / 5Entity AI brain task implementing hunt player behaviour for PokemonEntity (8 fields, 5 methods).
Fields: targetEntity: Optional<LivingEntity>, lastKnownLocation: Optional<BlockPos>, searching: boolean, searchTime: int · Methods: findPlayer, addLookWalkTargets, startSearching, performSearch, onEntityHeard
IgniteTask
entity.pokemon.ai.tasks.IgniteTask
Entity AI Brain Tasks
Class
Behavior<PokemonEntity>5 / 9Entity AI brain task implementing ignite behaviour for PokemonEntity (5 fields, 9 methods).
Fields: startTime: long, lastEndEntityAge: long, duration: int, pos: Optional<BlockPos> · Methods: checkExtraStartConditions, canStillUse, findIgnitionPos, canLight, start
JumpOutOfWaterTask
entity.pokemon.ai.tasks.JumpOutOfWaterTask
Entity AI Brain Tasks
Class
Behavior<PokemonEntity>4 / 8Entity AI brain task implementing jump out of water behaviour for PokemonEntity (4 fields, 8 methods).
Fields: inWater: boolean, MAX_DURATION: int, CHANCE: int, OFFSET_MULTIPLIERS: int[] · Methods: getInWater, setInWater, checkExtraStartConditions, canStillUse, start
LookAtTargetedBattlePokemonTask
entity.pokemon.ai.tasks.LookAtTargetedBattlePokemonTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing look at targeted battle pokemon behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
ManageFlightInBattleTask
entity.pokemon.ai.tasks.ManageFlightInBattleTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing manage flight in battle behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
MoveToItemTask
entity.pokemon.ai.tasks.MoveToItemTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing move to item behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
MoveToOwnerTask
entity.pokemon.ai.tasks.MoveToOwnerTask
Entity AI Brain Tasks
Object
—0 / 5Entity AI brain task implementing move to owner behaviour for PokemonEntity (0 fields, 5 methods).
Methods: create, tryTeleport, tryTeleportTo, canTeleportTo, getRandomInt
MoveToSweetBerryBushTask
entity.pokemon.ai.tasks.MoveToSweetBerryBushTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing move to sweet berry bush behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
PathToFlowerTask
entity.pokemon.ai.tasks.PathToFlowerTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing path to flower behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
PathToSacLeafTask
entity.pokemon.ai.tasks.PathToSacLeafTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing path to sac leaf behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
PickUpItemTask
entity.pokemon.ai.tasks.PickUpItemTask
Entity AI Brain Tasks
Object
—0 / 2Entity AI brain task implementing pick up item behaviour for PokemonEntity (0 fields, 2 methods).
Methods: create, dropItem
PlaceHoneyInHiveTask
entity.pokemon.ai.tasks.PlaceHoneyInHiveTask
Entity AI Brain Tasks
Object
—0 / 2Entity AI brain task implementing place honey in hive behaviour for PokemonEntity (0 fields, 2 methods).
Methods: create, wantsToEnterHive
PokemonMeleeTask
entity.pokemon.ai.tasks.PokemonMeleeTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing pokemon melee behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
StopTryingToReachItemTask
entity.pokemon.ai.tasks.StopTryingToReachItemTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing stop trying to reach item behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
StopTryingToReachSweetBerryBushTask
entity.pokemon.ai.tasks.StopTryingToReachSweetBerryBushTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing stop trying to reach sweet berry bush behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
WakeUpTask
entity.pokemon.ai.tasks.WakeUpTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing wake up behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
WalkTowardsParentSpeciesTask
entity.pokemon.ai.tasks.WalkTowardsParentSpeciesTask
Entity AI Brain Tasks
Object
—0 / 1Entity AI brain task implementing walk towards parent species behaviour for PokemonEntity (0 fields, 1 method).
Methods: create
BattleEffect
entity.pokemon.effects.BattleEffect
Core Entity, Flags & Effects
Abstract
—
implements EntityEffect
1 / 5Abstract EntityEffect base class (`battleOnly`) managing CompletableFuture start/end animations for temporary visual battle effects.
Fields: battleOnly: boolean · Methods: getBattleOnly, start, end, apply, revert
EffectTracker
entity.pokemon.effects.EffectTracker
Core Entity, Flags & Effects
Class
—3 / 9Per-PokemonEntity state tracker storing active CompletableFuture effect progress, MocKEffect disguise/transform state, and NBT persistence.
Fields: entity: PokemonEntity, progress: concurrent.CompletableFuture<PokemonEntity>, mockEffect: MocKEffect · Methods: getEntity, getProgress, setProgress, getMockEffect, setMockEffect
IllusionEffect
entity.pokemon.effects.IllusionEffect
Core Entity, Flags & Effects
Class
BattleEffect
implements MocKEffect
2 / 12BattleEffect (`ID = "ILLUSION"`) implementing MocKEffect to disguise Zoroark/Zorua as another species (`PokemonProperties`) with `disguise` animation and Pokédex reveal on revert.
Fields: mock: PokemonProperties, scale: float · Methods: getMock, setMock, getScale, setScale, apply
TransformEffect
entity.pokemon.effects.TransformEffect
Core Entity, Flags & Effects
Class
BattleEffect
implements MocKEffect
3 / 12BattleEffect (`ID = "TRANSFORM"`) implementing MocKEffect to copy another Pokémon's appearance (`mimic` animation, optional `doCry` toggle).
Fields: mock: PokemonProperties, scale: float, doCry: boolean · Methods: getMock, setMock, getScale, setScale, getDoCry
BlockBehavior
pokemon.ai.BlockBehavior
AI Movement & World Behaviours
Class
—5 / 3Configures block interaction behaviour rules on species JSON.
Fields: immuneToSweetBerryBushBlock: boolean, canStandOnPowderSnow: boolean, canPathThroughSaccLeaves: boolean, immuneToCobwebBlock: boolean · Methods: getCanPathThroughSaccLeaves, getImmuneToCobwebBlock, getStruct
CombatBehaviour
pokemon.ai.CombatBehaviour
AI Movement & World Behaviours
Class
—5 / 10Configures whether a wild Pokémon will defend itself (`willDefendSelf`), defend its owner (`willDefendOwner`), or flee (`willFlee`).
Fields: willDefendSelf: boolean, willFlee: boolean, willDefendOwner: boolean, fightsMelee: boolean · Methods: getWillDefendSelf, setWillDefendSelf, getWillFlee, setWillFlee, getWillDefendOwner
EntityBehaviour
pokemon.ai.EntityBehaviour
AI Movement & World Behaviours
Class
—5 / 5Configures entity-level interaction flags such as `avoidedBySkeleton` and `avoidedByCreeper`.
Fields: avoidedByCreeper: boolean, avoidedByPhantom: boolean, avoidedByFox: boolean, avoidedBySkeleton: boolean · Methods: getAvoidedByCreeper, getAvoidedByPhantom, getAvoidedByFox, getAvoidedBySkeleton, getStruct
ExpressionObtainableItemCondition
pokemon.ai.ExpressionObtainableItemCondition
AI Movement & World Behaviours
Class
—
implements ObtainableItemCondition
2 / 1ObtainableItemCondition evaluated via a MoLang expression.
Fields: expression: ExpressionLike, runtime: MoLangRuntime · Methods: isItemObtainable
FlyBehaviour
pokemon.ai.FlyBehaviour
AI Movement & World Behaviours
Class
—3 / 3Controls aerial flight (`canFly`, `flySpeedHorizontal`) for flying Pokémon entities.
Fields: canFly: boolean, flySpeedHorizontal: Expression, struct: ObjectValue<FlyBehaviour> · Methods: getCanFly, getFlySpeedHorizontal, getStruct
FormPokemonBehaviour
pokemon.ai.FormPokemonBehaviour
AI Movement & World Behaviours
Class
—15 / 16Form-specific PokemonBehaviour override allowing regional and alternate forms to replace base species movement, rest, or herd rules.
Fields: parent: PokemonBehaviour, _resting: RestBehaviour, _moving: MoveBehaviour, _idle: IdleBehaviour · Methods: getParent, setParent, getResting, getMoving, getIdle
HerdBehaviour
pokemon.ai.HerdBehaviour
AI Movement & World Behaviours
Class
—4 / 6Configures herding leader priority, maximum herd size, `followDistance`, and `toleratedLeaders` list.
Fields: toleratedLeaders: List<ToleratedHerdLeader>, maxSize: int, followDistance: IntRange, struct: ObjectValue<HerdBehaviour> · Methods: getToleratedLeaders, getMaxSize, getFollowDistance, getStruct, bestMatchLeader
IdentifierObtainableItemCondition
pokemon.ai.IdentifierObtainableItemCondition
AI Movement & World Behaviours
Class
—
implements ObtainableItemCondition
1 / 1ObtainableItemCondition matching an exact Minecraft/Cobblemon Item ResourceLocation.
Fields: itemId: ResourceLocation · Methods: isItemObtainable
IdleBehaviour
pokemon.ai.IdleBehaviour
AI Movement & World Behaviours
Class
—1 / 1Configures ambient idle poses and animation weights when a Pokémon is stationary.
Fields: struct: ObjectValue<IdleBehaviour> · Methods: getStruct
ItemBehavior
pokemon.ai.ItemBehavior
AI Movement & World Behaviours
Class
—2 / 1Configures obtainable/pickupable item rules for a species' AI item-gathering routines.
Fields: desiredItems: List<ObtainableItem>, struct: ObjectValue<ItemBehavior> · Methods: getStruct
MoveBehaviour
pokemon.ai.MoveBehaviour
AI Movement & World Behaviours
Class
—8 / 8Aggregates WalkBehaviour, SwimBehaviour, FlyBehaviour, `wanderChance`, `wanderSpeed`, and `canLook` flags for a species.
Fields: walk: WalkBehaviour, swim: SwimBehaviour, fly: FlyBehaviour, stepHeight: float · Methods: getWalk, getSwim, getFly, getStepHeight, getWanderChance
ObtainableItem
pokemon.ai.ObtainableItem
AI Movement & World Behaviours
Class
—6 / 11Data record pairing an ObtainableItemCondition with pickup/return settings for item-gathering AI.
Fields: item: ObtainableItemCondition, pickupPriority: int, fullnessValue: int, returnItem: ResourceLocation · Methods: getItem, setItem, getPickupPriority, setPickupPriority, getFullnessValue
ObtainableItemCondition
pokemon.ai.ObtainableItemCondition
AI Movement & World Behaviours
Interface
—0 / 1Polymorphic condition interface testing whether a ground ItemStack qualifies for Pokémon pickup.
Methods: isItemObtainable
ObtainableItemConditionAdapter
pokemon.ai.ObtainableItemConditionAdapter
AI Movement & World Behaviours
Object
—
implements JsonDeserializer<ObtainableItemCondition>
0 / 1Gson TypeAdapter dispatching ObtainableItemCondition JSON to expression, identifier, or tag variants.
Methods: deserialize
OmniPathNodeMaker
pokemon.ai.OmniPathNodeMaker
AI Movement & World Behaviours
Class
NodeEvaluator6 / 33Unified Pathfinding NodeEvaluator supporting amphibious, terrestrial, lava-walking, and 3D flying navigation paths.
Fields: nodePosToType: it.unimi.dsi.fastutil.longs.Long2ObjectMap<PathType>, nodePosToState: it.unimi.dsi.fastutil.longs.Long2ObjectMap<BlockState>, canPathThroughFire: boolean, nodeFilter: function.Predicate<PathType> · Methods: getCanPathThroughFire, setCanPathThroughFire, getNodeFilter, setNodeFilter, getCachedBlockState
PokemonBehaviour
pokemon.ai.PokemonBehaviour
AI Movement & World Behaviours
Class
—14 / 16Root species behaviour configuration container aggregating resting, moving, idle, combat, herd, fire/lightning, entity, block, and item behaviours.
Fields: resting: RestBehaviour, moving: MoveBehaviour, idle: IdleBehaviour, fireImmune: boolean · Methods: getResting, getMoving, setMoving, getIdle, getFireImmune
PokemonBrain
pokemon.ai.PokemonBrain
AI Movement & World Behaviours
Object
—4 / 12Factory building and configuring the Minecraft Brain (sensors, memories, schedules, and behaviour task packs) for every PokemonEntity.
Fields: ADULT_FOLLOW_RANGE: UniformInt, AVOID_MEMORY_DURATION: UniformInt, SENSORS: Collection<SensorType<? extends Sensor<? super PokemonEntity>>>, MEMORY_MODULES: List<MemoryModuleType<?>> · Methods: getSENSORS, applyBrain, getMEMORY_MODULES, coreTasks, fightTasks
PokemonDisturbancesSensor
pokemon.ai.PokemonDisturbancesSensor
AI Movement & World Behaviours
Class
Sensor<PokemonEntity>0 / 2Custom AI Sensor detecting nearby player/mob disturbances that wake sleeping Pokémon or trigger fleeing.
Methods: doTick, requires
RestBehaviour
pokemon.ai.RestBehaviour
AI Movement & World Behaviours
Class
—13 / 13Configures sleep capability (`canSleep`), `sleepLight`, `times` (TimeRange), `blocks` bed list, `drowsyChance`, `rouseChance`, and `willSleepOnBed`.
Fields: canSleep: boolean, times: TimeRange, blocks: List<RegistryLikeCondition<Block>>, biomes: List<RegistryLikeCondition<Biome>> · Methods: getCanSleep, getTimes, getBlocks, getBiomes, getFluids
SwimBehaviour
pokemon.ai.SwimBehaviour
AI Movement & World Behaviours
Class
—9 / 12Controls aquatic/lava swimming (`canSwimInWater`, `canSwimInLava`, `canBreatheUnderwater`, `canBreatheUnderlava`, `canWalkOnWater`, `canWalkOnLava`, `swimSpeed`).
Fields: avoidsWater: boolean, canSwimInWater: boolean, swimSpeed: Expression, canBreatheUnderwater: boolean · Methods: getAvoidsWater, getCanSwimInWater, getSwimSpeed, getCanBreatheUnderwater, getCanWalkOnWater
TagObtainableItemCondition
pokemon.ai.TagObtainableItemCondition
AI Movement & World Behaviours
Class
—
implements ObtainableItemCondition
1 / 1ObtainableItemCondition matching a Minecraft/Cobblemon Item TagKey.
Fields: tagKey: TagKey<Item> · Methods: isItemObtainable
ThunderstruckBehaviour
pokemon.ai.ThunderstruckBehaviour
AI Movement & World Behaviours
Class
—2 / 3Configures species reactions when struck by lightning.
Fields: rotateFeatures: List<ThunderstruckBehaviour$RotateFeature>, struct: ObjectValue<ThunderstruckBehaviour> · Methods: getRotateFeatures, isSpecial, getStruct
ToleratedHerdLeader
pokemon.ai.ToleratedHerdLeader
AI Movement & World Behaviours
Class
—4 / 6Descriptor specifying another species/tier that a herding Pokémon accepts as a herd leader.
Fields: pokemon: PokemonProperties, tier: int, ignoresLevel: boolean, followDistance: IntRange · Methods: getPokemon, setPokemon, getTier, getIgnoresLevel, getFollowDistance
WalkBehaviour
pokemon.ai.WalkBehaviour
AI Movement & World Behaviours
Class
—4 / 5Controls ground walking (`canWalk`, `avoidsLand`, `walkSpeed`) for PokemonEntity navigation.
Fields: canWalk: boolean, avoidsLand: boolean, walkSpeed: Expression, struct: ObjectValue<WalkBehaviour> · Methods: getCanWalk, getAvoidsLand, getWalkSpeed, setWalkSpeed, getStruct