Step 5 of #8. versions/1.21.7/src is gone; 1.21.7 builds from src/ as :1.21.7. 1.21.7's copy differed from 1.21.8's in the player render state: Fabric API's RenderStateDataKey only exists from 1.21.8 (fabric-rendering-v1 12.6.0), so 1.21.7 had no updateRenderState hook, no SaturnRenderState, and looked players up by name for the cloak and hat. That stays the case: - The cloak and hat use getData on >=1.21.8 and SaturnPlayer.get(name) before that. - PlayerEntityRendererMixin's updateRenderState exists only on >=1.21.8, as flat ranges (>=1.21.9, else if >=1.21.8) calling a shared saturn$applyPlayer helper, instead of nested version blocks. - SaturnRenderState's key only exists on >=1.21.8; the class is empty before. - TODO: 1.21.6 and 1.21.7 still don't show the role icon in names. 1.21.7's NameTagMixin isn't carried over: it wasn't registered in any mixin config, so it never ran. The 1.21.7 jar differs from the old one only as 1.21.8's did in step 4 (entityAlpha and drawGroup helpers, getIconId, and the cloak getting its buffer at the draw call), plus the empty SaturnRenderState and the missing dead NameTagMixin. 1.21.8-1.21.11 only differ in PlayerEntityRendererMixin (the helper). Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
1.3 KiB
Kotlin
44 lines
1.3 KiB
Kotlin
pluginManagement {
|
|
repositories {
|
|
maven("https://maven.fabricmc.net/")
|
|
maven("https://maven.kikugie.dev/releases")
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
}
|
|
|
|
// Loom's version, for the Stonecutter versions' build.gradle.kts (the old mc-<v> projects set
|
|
// their own in versions/<v>/gradle.properties).
|
|
val loom_version: String by settings
|
|
plugins {
|
|
id("net.fabricmc.fabric-loom-remap") version loom_version
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("dev.kikugie.stonecutter") version "0.9.8"
|
|
}
|
|
|
|
rootProject.name = "saturn-client"
|
|
|
|
include("common")
|
|
|
|
// Versions built by Stonecutter from the shared src/ (see stonecutter.gradle.kts). Each one's
|
|
// versions/<v>/gradle.properties holds its Minecraft, Yarn and Fabric API versions.
|
|
val stonecutterVersions = listOf("1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11")
|
|
|
|
stonecutter {
|
|
create(rootProject) {
|
|
versions(stonecutterVersions)
|
|
vcsVersion = "1.21.11"
|
|
}
|
|
}
|
|
|
|
// Versions not moved to Stonecutter yet still build from their own copy in versions/<v>/src,
|
|
// as projects named mc-<v>.
|
|
file("versions").listFiles { file -> file.isDirectory && file.name !in stonecutterVersions }!!
|
|
.sortedBy { it.name }
|
|
.forEach { dir ->
|
|
include("mc-${dir.name}")
|
|
project(":mc-${dir.name}").projectDir = dir
|
|
}
|