feat: Stonecutter multi-version support (1.21.8 + 1.21.11)#42
Merged
Conversation
- Upgrade Gradle to 9.5.0 and Fabric Loom to 1.16-SNAPSHOT - Add Stonecutter 0.9.3 for multi-version builds - Port client rendering code to 1.21.11 API using preprocessor conditionals - Update publish workflow to produce per-version artifacts - Update build workflow artifact/screenshot paths for versioned structure - Add git-hooks.nix pre-commit hook to guard vcsVersion consistency - Update fabric.mod.json to template minecraft_version from build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BlockEntityRenderState,OrderedRenderCommandQueue,RenderLayers) へのポート (Stonecutter preprocessor 使用)cachix/git-hooks.nixによる pre-commit hook 追加 (vcsVersion ガード)Changes
Build System
settings.gradle.kts+stonecutter.gradle.kts)libs.versions.toml: 共有依存のみ残し、バージョン固有はbuild.gradle.ktsのwhen (mcVersion)で管理Rendering Port (1.21.11)
BlockEntityRenderer<T>→BlockEntityRenderer<T, S extends BlockEntityRenderState>VertexConsumerProvider→OrderedRenderCommandQueue+submitCustomcallbackSpecialModelRenderersignature changes (extra seed param,Consumer<Vector3fc>,BakeContext)RenderLayer.getEntityTranslucent()→RenderLayers.entityTranslucent()CI/CD
publish.yml: バージョン別ビルド +gh release createで全 jar を添付build.yml: artifact/screenshot パスをversions/*/build/に更新fabric.mod.json:minecraft依存を~${minecraft_version}テンプレートに変更Developer Experience
cachix/git-hooks.nixpre-commit hook:stonecutter activeが vcsVersion (1.21.8) でない場合自動修正 + コミット拒否.pre-commit-config.yamlを.gitignoreに追加