Skip to content

Mixin Reference and Hooks

Rifa edited this page Aug 9, 2026 · 1 revision

Mixin Reference & Hooks

Mixin Class Target Class Injection Point Purpose
LanguageMixin net.minecraft.locale.Language @Inject on loadFromJson (RETURN) Dynamic GameRule translation injection
LivingEntityLootMixin LivingEntity @ModifyVariable on dropFromLootTable Intercept drops for genetics loot scaling
MobGoalAccessor Mob @Accessor("goalSelector") Direct goal selector access for AI injections
PathfinderMobMixin PathfinderMob @Inject on <init> (RETURN) Hive Mind pulse registration hook
ProfileTriggerMixin Entity @Inject on teleportCrossDimension (RETURN) Profile trigger on dimension travel

๐Ÿ” Detailed Interceptor Breakdown

1. LanguageMixin

Injects dynamically generated English labels from DynamicGameRuleManager directly into Minecraft's localization provider without requiring raw .json entries.

2. LivingEntityLootMixin

Wraps loot drop consumers during dropFromLootTable, delegating to GeneticsLootRegistry to dynamically scale or swap drops based on mob genetics.


๐Ÿ”— Related Pages

Clone this wiki locally