Skip to content

minecraft 26.2 compat 69g5pk#585

Closed
ronjohnsonjr wants to merge 3 commits into
MCRcortex:devfrom
ouroboros-smp:claude/minecraft-26.2-compat-69g5pk
Closed

minecraft 26.2 compat 69g5pk#585
ronjohnsonjr wants to merge 3 commits into
MCRcortex:devfrom
ouroboros-smp:claude/minecraft-26.2-compat-69g5pk

Conversation

@ronjohnsonjr

Copy link
Copy Markdown

No description provided.

ronjohnsonjr and others added 3 commits June 30, 2026 12:55
Dependency versions (gradle.properties):
  minecraft_version=26.2
  loader_version=0.19.3
  loom_version=1.15-SNAPSHOT
  fabric_api_version=0.153.0+26.2
  sodium=mc26.2-0.9.1-beta.2-fabric
  iris=1.11.1+26.2-fabric
  lithium=mc26.2-0.25.1-fabric
  modmenu=20.0.0-beta.4-fabric
  chunky=4Eotm6ov

Optional mods disabled (no 26.2 builds yet — TODO comments in gradle.properties + build.gradle):
  vivecraft, flashback, nvidium

MC API changes:
  - BlockState.emissiveRendering(BlockGetter, BlockPos) -> emissiveRendering()
  - TextureFormat.RGBA8 -> GpuFormat.RGBA8_UNORM
  - Minecraft.getChatListener() -> gui.chatListener()
  - Minecraft.getMainRenderTarget() -> Window.getWidth/getHeight
  - GameRenderer.getGameRenderState() -> gameRenderState()
  - Gui.getBossOverlay() -> hud.bossOverlay (via access widener)
  - Gui.getChat() -> hud.getChat()
  - LevelRenderer.allChanged() -> resetLevelRenderData()
  - GpuDevice.isZZeroToOne() -> getDeviceInfo().isZZeroToOne()
  - ClientLevel.levelRenderer removed -> Minecraft.getInstance().levelRenderer
  - PalettedContainerRO missing forEachInPalette -> added to anonymous impl

Sodium 0.8 -> 0.9 API overhaul:
  - gl.device.CommandList/RenderDevice removed; all call sites updated
  - DefaultChunkRenderer/ShaderChunkRenderer ctor: removed RenderDevice param
  - render() signature: removed CommandList, added GpuBufferSlice/GpuBuffer params
  - RenderSectionManager ctor: removed CommandList param
  - RenderSection.setInfo() returns int (0=no-change); redirect updated
  - RenderSection.getFlags() removed; use isBuilt() instead
  - RenderRegionManager.uploadResults() signature changed; redirect consumeFade() instead
  - SodiumWorldRenderer.initRenderer() removed; inject into setLevel() instead

Mixin config:
  - Bumped compatibilityLevel to JAVA_25 in both mixin JSONs
  - Removed flashback/nvidium mixin registrations
  - Flashback/nvidium mixin classes stubbed with @mixin(targets="...") strings
    so they compile without the optional deps on the classpath

Access widener:
  - Removed invalid ClientLevel.levelRenderer entry (field removed in 26.2)
  - Added Hud.bossOverlay for ClientImportManager boss bar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MixinClientLevel: remove @shadow @Final levelRenderer — the
ClientLevel.levelRenderer field was removed in MC 26.2. The shadow
was never used in the mixin body so it is simply deleted (along with
the now-orphan @Final import).

MixinLevelRenderer: update inject target from allChanged()V to
resetLevelRenderData()V, which is the MC 26.2 rename of the method
that triggers a full chunk re-render.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- MixinClientLevel: the constructor inject's 7th parameter is
  LevelExtractor in MC 26.2, not LevelRenderer (the field/shadow was
  already dropped in the prior fix; the body never used the param).
- MixinRenderSectionManager: voxy$updateOnUpload now tracks renderable
  state via RenderSection#needsRender() (HAS_BLOCK_GEOMETRY |
  HAS_BLOCK_ENTITIES | HAS_ANIMATED_SPRITES bits) instead of isBuilt()
  (MASK_IS_BUILT), since isBuilt() is also true for built-but-empty
  sections in Sodium 0.9.1-beta.2 and would mis-track chunk bounds.
  Also drops the now-unreachable !wasBuilt && !nowBuilt branch.
- build.gradle: sodium_version_modrinth parsing now joins every
  "-"-delimited segment between the mc-version and loader tokens, so
  prerelease tags (e.g. 0.9.1-beta.2) survive instead of being
  truncated to 0.9.1, which previously produced a fabric.mod.json
  version range broader than sodium_extra_allows.
@ronjohnsonjr ronjohnsonjr changed the title Claude/minecraft 26.2 compat 69g5pk minecraft 26.2 compat 69g5pk Jun 30, 2026
@MCRcortex

Copy link
Copy Markdown
Owner

next time, dont use ai, and check what other branches are in development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants