Skip to content

🔌 Référence des Mixins et points d'injection bytecode ​

📌 Clause de non-responsabilité relative au code source : La documentation de ce Wiki reflète l'état actuel du code source dans le dépôt, incluant d'éventuels commits récents non publiés sur CurseForge ou Modrinth.

Better Bats uses Bytecode Mixins to modify vanilla entity and world spawning behavior while keeping world saves 100% vanilla-safe.

☕ Note du développeur: Si vous appréciez les nuées de chauves-souris en 3D réaliste fertilisant vos cultures avec leur guano, soutenez mon travail sur Ko-fi !


📋 Table complète des injections Mixin ​

Mixin ClassTarget Vanilla ClassTarget Method@At Injection PointCancellation / Behavior
BatMixinnet.minecraft.world.entity.ambient.Bat<init>@At("TAIL")Registers custom AI goals (Panic, Sleep, HuntLight, DiveBomb) into goalSelector.
BatMixinnet.minecraft.world.entity.ambient.BatcustomServerAiStep@At("HEAD")cancellable = true. Completely replaces vanilla flight calculation with BatFlightHelper forces and resting logic.
BatMixinnet.minecraft.world.entity.ambient.BatcheckBatSpawnRules@At("HEAD")cancellable = true. Validates surface nighttime spawning rules.
BatMixinnet.minecraft.world.entity.ambient.BataddAdditionalSaveData@At("TAIL")Writes betterbats:guano_ticks integer tag to ValueOutput.
BatMixinnet.minecraft.world.entity.ambient.BatreadAdditionalSaveData@At("TAIL")Reads betterbats:guano_ticks integer tag from ValueInput.
GameEventDispatcherMixinnet.minecraft.world.level.gameevent.vibrations.VibrationSystem$ListenerhandleGameEvent@At("HEAD")Notifies nearby bats of sprint/explosion vibrations.
NaturalSpawnerMixinnet.minecraft.world.level.NaturalSpawnerm_6419_@At("HEAD")Replaces vanilla bat spawn weights with bat_spawn_weight GameRule.

See also: Architecture et paquets | Profils comportementaux AI

Official documentation & web portal for Dasik Igaijinn mods.