Crux hooks into the game in two ways.
1. ASM patches (Fabric and vanilla)
Crux inserts a single static call to crux.client.CruxHooks into each target method. It never adds branches, removes methods or renames anything. On Fabric the mixin plugin crux.fabric.CruxMixinPlugin applies these patches in preApply of the empty mixin CruxTargets.
If a target method is not found, only that feature turns off and the game keeps running. If one feature throws 50 errors at runtime, Crux turns it off. Most RETURN hooks only change the value while that Crux feature is on and active; otherwise they return it unchanged.
| Class | Method | At | Crux feature |
|---|---|---|---|
PackRepository | openAllSelected | RETURN | Adds the Crux resource packs |
Hud | extractRenderState | RETURN | Draws the Crux HUD and waypoints |
Hud | extractCrosshair | after reading CROSSHAIR_SPRITE | Crosshair (when on, the vanilla sprite is blanked) |
Hud | extractScoreboardSidebar · extractTitle · extractBossOverlay · extractOverlayMessage · extractEffects | HEAD · RETURN | Scale or hide when enabled (pushes and pops the pose; untouched when off) |
Hud | displayScoreboardSidebar | after numberFormatOrDefault / getBackgroundColor | Hide sidebar score numbers, background opacity |
PlayerTabOverlay | extractPingIcon | after reading PING_* · RETURN | Ping as a number (when on) |
ItemStack | getTooltipLines | RETURN | Adds a hunger · saturation line to food tooltips (when on) |
DisconnectedScreen | init | RETURN | Reconnect button and auto reconnect |
SkinTextureDownloader | registerTextureInManager | HEAD | 3D skin layers: copies the alpha of downloaded skins (image untouched) |
AbstractContainerScreen | extractTooltip | RETURN | Shulker box and map previews (vanilla tooltip untouched, drawn separately above it) |
DebugEntryPosition 외 6개 | display | HEAD (argument) | Hide coordinates in F3 |
PlayerTabOverlay | getNameForDisplay | RETURN | Logo and badges before tab-list names |
EntityRenderer | getNameTag | RETURN | Logo and badges before name tags |
EntityRenderer | extractNameTags | after shouldShowName | Own name tag in third person |
AvatarRenderer | <init> | RETURN | Adds the cosmetic render layers |
AvatarRenderer | renderHand | RETURN | First-person arm cosmetics |
PlayerModel | setupAnim | HEAD | Restores only the parts Crux hid last time |
PlayerModel | setupAnim | RETURN | Hides head/body/limbs when a cosmetic transforms (hide only) |
Options | <init> | before keyMappings is stored | Registers the Crux keys in Controls |
Camera | calculateFov | RETURN | Zoom |
Camera | alignWithEntity | after getViewYRot / getViewXRot | Freelook camera angle |
Camera | tick | RETURN | 1.7 sneak (eye height) |
Entity | turn | HEAD (arguments) | Freelook (mouse turn goes to the camera) |
Gui | setScreen | HEAD (argument) | Swaps the title / pause screens for Crux screens |
Gui | setOverlay | HEAD (argument) | Game loading overlay |
LevelLoadingScreen | extractRenderState | RETURN | World loading screen |
TitleScreen · PauseScreen | init | RETURN | "Back to Crux" button on the vanilla screens |
PauseScreen | extractRenderState | RETURN | Logo on the vanilla pause menu |
PackSelectionScreen | init | RETURN | "Get resource packs" button |
ChatComponent | addMessage | HEAD (argument) | Chat timestamps, stacking, streamer-mode names |
ChatComponent | all methods | after the int constant 100 | Chat history length |
ChatListener | handlePlayerChatMessage | HEAD (argument) | Logo and badges before the sender name |
ChatListener | handlePlayerChatMessage | HEAD | In-game report: records sender and Mojang signature (message unchanged) |
LightmapRenderStateExtractor | extract | RETURN | Fullbright |
AbstractClientPlayer | getSkin | RETURN | Hide your Minecraft cape (so it does not overlap wings · flags) |
FramerateLimitTracker | getFramerateLimit | RETURN | Background FPS limit |
ScreenEffectRenderer | submitFire | HEAD · RETURN | Lower fire overlay |
Level | getRainLevel · getThunderLevel | RETURN | Hide weather (client only) |
ClientClockManager$ClientClockInstance | totalTicks | RETURN | Time lock (client only) |
ClientPacketListener | handleSetTime | HEAD | TPS estimate (read only) |
MultiPlayerGameMode | attack | HEAD | Reach / combo display (read only) |
LevelRenderer | submitHitOutline | HEAD (arguments) | Block outline color and width |
OverlayTexture | <init> | RETURN | Hit color |
EquipmentLayerRenderer | renderLayers | after reading NO_OVERLAY | 1.7 animations (armor hit tint) |
ItemEntityRenderer | submit | after sin / getSpin / rotate | Item physics |
SubmitNodeCollection | submitNameTag | after getBackgroundOpacity | Name tag background opacity |
GameRenderer | update | RETURN | Motion blur |
Screenshot | lambda$grab$3 | RETURN | Copy screenshot to clipboard |
Minecraft | tick | HEAD | Per-tick logic (keys etc.) |
Minecraft | createTitle | RETURN | Window title |
Minecraft | fillSystemReport | RETURN | "Crux" section in crash reports |
Classes use their official names under net.minecraft (FramerateLimitTracker is in com.mojang.blaze3d.platform). "DebugEntryPosition + 6" = DebugEntryPosition, SectionPosition, LookingAt, LookingAtEntity, Heightmap, ChunkGeneration, LocalDifficulty.
2. Mixins (Fabric only)
All are @Inject with remap = false, defaultRequire = 0 (silently skipped if the target is missing). They only cancel anything while Crux optimizations (Settings → Performance) are on.
| Class | Method | Effect |
|---|---|---|
EntityRenderer | shouldRender (RETURN) | Skips occluded entities |
EntityRenderer | shouldShowName (RETURN) | Hides distant name tags |
BlockEntityRenderDispatcher | tryExtractRenderState (HEAD) | Skips hidden block entities |
HumanoidArmorLayer · CustomHeadLayer · ItemInHandLayer | submit (HEAD) | Skips armor / head / held items at distance |
WingsLayer | submit (HEAD) | Skips elytra at distance |
ItemFrameRenderer | extractRenderState (RETURN) | Hides distant item-frame contents |
ParticleEngine | add (HEAD) | Particle cap |
GameRenderer | renderLevel (HEAD) | Skips world rendering while minimized |
CRUX