Skip to content

Sync 1.20.1 with 26.1 implementation - #236

Closed
rsdadada wants to merge 34 commits into
xTracr:1.20.1from
rsdadada:codex/sync-26.1-into-1.20.1-20260719
Closed

Sync 1.20.1 with 26.1 implementation#236
rsdadada wants to merge 34 commits into
xTracr:1.20.1from
rsdadada:codex/sync-26.1-into-1.20.1-20260719

Conversation

@rsdadada

Copy link
Copy Markdown
Contributor

Summary

  • Synchronize the 1.20.1 branch with the applicable implementation changes from 26.1/dev through a real Git merge.
  • Port the shared core, configuration, compatibility, and model-view behavior, including safe entity visibility restoration, EMF pause handling, live disable-rule preview, unified swimming/crawling handling, fall-flying support, and exitTick migration.
  • Sync the applicable language entries, documentation, issue forms, workflows, Fabric metadata, and 0.7.9-beta version.

Why

The actively developed 26.1 implementation has accumulated behavior and safety improvements that should also be available to 1.20.1. The older branch still targets substantially different Minecraft, Java, loader, rendering, and mixin APIs, so the merge keeps the 1.20.1 platform boundary while adopting compatible upstream behavior.

1.20.1 compatibility adaptations

  • Retain Java 17, Gradle 8.14, Groovy build scripts, Architectury, Fabric, and Forge 47.
  • Retain the 1.20.1 immediate-mode rendering pipeline, loader events, mixin signatures, accessors, and YSM projection-sampling fix.
  • Do not introduce the Java 25, NeoForge, Submit/PIP, AvatarRenderer, or GuiGraphicsExtractor APIs that only exist in the newer target.
  • Migrate legacy disable configuration fields without requiring users to recreate their configuration.

User/developer impact

  • Disable rules now expose consistent swimming/crawling, fall-flying, and exit-delay behavior.
  • Preview rendering uses current draft rules and restores EMF and entity rendering state safely.
  • Fabric metadata explicitly declares the existing access widener.
  • Produced artifacts remain compatible with Minecraft 1.20.1 Fabric and Forge.

Validation

.\gradlew.bat clean build --rerun-tasks --console=plain

BUILD SUCCESSFUL: all 34 actionable tasks executed, including common/Fabric/Forge compilation, access-widener validation, shadowing, remapping, and packaging. The repository currently has no test sources, so the test tasks report NO-SOURCE.

H31M5 and others added 30 commits October 28, 2025 12:41
Signed-off-by: dqsk_zze <1935752350@qq.com>
* Try to adapt to 26.1-snapshot environment
* Update workflows to use Java 25
* Replace `deltaTick` with `partialTicks`
* Upgrade to 26.1.1
* Reformat the code
* Optimize `IterableVertexBuffer` and add `RoutingSubmitCollector` to fix shadow rendering
* Add back commitSHA
* Add solid feature rendering and refactor icon buttons
* Fix DoubleSlider, raycast
* Fix neoforge, improve build.gradle.kts
…eading

Replaces the UV coordinate float array cache with primitive index caching,
enabling direct primitive lookup via IterableVertexBuffer.readPrimitiveAt.
Removes the VertexPointer inner class and byte-pointer traversal in favor of
index-based readVertexAt calls, centralizing vertex decoding.
…d GUI state

- Rename RenderTypeUtil → RenderTypeCache, use Object2IntMap for primitive cache
- Rename MultiVertexCatcher.endCatching → forEachBuffer, separating batch finalization
- Remove stored pose state from ModelAnalyser, pass as parameter instead
- Tighten access modifiers, use var for map entries, clean up formatting
- Bump version to 0.7.8-beta
…x pointInQuad

- Replace Object[] sort entries with a typed ZEntry record in ModelAnalyser
- Make focusedPolyhedron private, add getFocusedPolyhedron() accessor
- Pass modelScale as parameter instead of storing field in ModelAnalyser
- Replace List<Integer> indexes with boolean[] visited for polyhedron building
- Rename GUIHelper.polygon → triangleOrQuad, MeshCatcher.initialize → clear
-- Replace O(n²) haveCommonVertex with LongOpenHashSet quantized-key lookup for
-- polyhedron expansion. Extract MutableVertex from VertexData inner class.
-- Create NumberWidgetPair combining DoubleSlider and NumberField for offset
-- controls. Replace varargs MathUtil.floor/ceil with fixed arity overloads.
-- Rename DoubleSlider getDouble/setDouble to getNumber/setNumber.
- Extract compressed Base64 serialization from ModelViewScreen into BindTarget.fromCompressedBase64()/toCompressedBase64() using DataResult.
- Rename static fields to UPPER_CASE across all files (entries, defaultTargets, serialVersion, colors, Z values).
- Add FALSE-predicate short-circuit in DisableHelper.Entry to avoid unnecessary predicate wrapping.
… initialization

- Move BindTarget/DisableConfig/OffsetConfig/UVRectangle read methods and DisableConfigAdapter to a versioned serialization package for forward compatibility.
- Inline allModelViewScreen widget field initialization to declaration site.
- Simplify renderCameraEntity matrix transform
- Migrate from FriendlyByteBuf manual read/write to Minecraft StreamCodec
- Rename config.serialization package to config.codec
- Change array fields in config classes to list fields
- Remove all manual write(FriendlyByteBuf) methods from config classes
- DisableConfigAdapter: suppress unused nextName() returns with String _
* Fix model view config interactions

* Clarify disable setting add tooltip
- Rename MODID to MOD_ID across all usages for consistent naming
- Convert ConfigCodec from interface to final class, removing redundant version() method
- Make ModelViewScreen dimensions responsive to window size
- Fix y-axis bounds bug in ColoredFloatLineRenderState
- Merged disableWhenSneaking and disableWhenCrawling setting, added disableWhenFlying
* Added compatibility with Entity_Model_Features

* Fix: Update issue template
* Fix live disable draft preview

* Apply suggestion from @xTracr

Co-authored-by: xTracr <57320980+xTracr@users.noreply.github.com>
Signed-off-by: rsdadada <rsddadada@outlook.com>

* Inline disable preview config overlay

* Simplify live disable draft handling

* Remove redundant disable draft helper

---------

Signed-off-by: rsdadada <rsddadada@outlook.com>
Co-authored-by: xTracr <57320980+xTracr@users.noreply.github.com>
zze-666 and others added 4 commits July 5, 2026 19:40
@rsdadada
rsdadada marked this pull request as ready for review July 19, 2026 03:38
@H31M5 H31M5 closed this Jul 23, 2026
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.

4 participants