From 8d78cd42489a652f73e26165877e39f78c4cce3b Mon Sep 17 00:00:00 2001 From: colserra Date: Tue, 11 Aug 2026 01:46:15 +0200 Subject: [PATCH] Port to Minecraft 26.2 Minecraft ships unobfuscated from 26.1 on, so there is no yarn or intermediary for 26.2 and mods now compile directly against Mojang names. This ports the 1.21.11 source across that boundary. Build: - net.fabricmc.fabric-loom 1.17.+ (the legacy `fabric-loom` plugin id keeps a compatibility path that still demands a `mappings` dependency and fails) - no `mappings` dependency; mod deps use the plain configurations, since the `mod*` ones invoke Loom's remapper - Java 25, Gradle 9.6.1, and gradle/gradle-daemon-jvm.properties because Loom requires the Gradle daemon itself to run on Java 25 - remapJar/remapSourcesJar no longer exist, so the plain jar tasks are published - fabric.mod.json depends on `fabric-api` rather than the dropped `fabric` alias Notable API changes handled: - InGameHud split into Gui (screens: screen()/setScreen) and Hud (getChat(), getGuiTicks()); Minecraft.screen is gone - GuiGraphics -> GuiGraphicsExtractor; Renderable.render -> extractRenderState; AbstractWidget.renderWidget -> extractWidgetRenderState; drawString -> text, drawCenteredString -> centeredText - EditBox: getText/setText -> getValue/setValue, write -> insertText, getCursor -> getCursorPosition, setSelectionEnd -> setHighlightPos - GuiMessage/GuiMessageTag moved to client.multiplayer.chat; GuiMessage gained a GuiMessageSource component - ChatHud$Interactable replaced by ChatComponent$DrawingFocusedGraphicsAccess, a Consumer