Forge | 1.7.10 | 0.7.0
Curse Maven Snippet
What's new
First legacy release, on both loaders: 4 patches on 1.7.10 Forge, 8 on 1.8.9, 12 on 1.12.2; 6 on 1.7.10 Ornithe, 10 on 1.8.9, 11 on 1.12.2.
New
- Forge support for 1.7.10, 1.8.9 and 1.12.2, in a separate tree with its own Gradle builds.
Stonecutter cannot run there (it needs Gradle 7.4+ and the Kotlin DSL, and 1.8.9 sits on Gradle 2.14.1),
so a patch is version-gated by a
//$ if >=1.12marker on line 1, processed bygradle/preprocess.gradle- the same directive syntax the modern
json5config uses. Each build's mixin config is generated from the filtered tree, so a patch that does not exist for a version cannot appear in that version's config.
- the same directive syntax the modern
- Ornithe support for the same three versions, alongside the Forge ones:
lomka-<version>-ornithe+<mc>.jar. It is a second source tree rather than a loader switch, because Feather - the mapping set Ornithe compiles against - names classes the way 1.16+ does (Direction,Box,NbtIntArray,Identifier), a different namespace from the MCP names the Forge tree has to use. The two trees share only the pure-math kernels; every@Mixinshell is per-namespace. One toolchain covers all three (fabric-loom+ Ploceus), where Forge needs three: ForgeGradle 1.2 on Gradle 6.9.1 for 1.7.10, ForgeGradle 2.1.6 on Gradle 2.14.1 for 1.8.9 (the only line that serves 1.8.9userdev), and RetroFuturaGradle 2.0.6 on Gradle 9 for 1.12.2 - and RetroFuturaGradle supports 1.7.10 and 1.12.2 only, never 1.8.9. - No external mixin runtime on Ornithe. The Ornithe loader ships sponge-mixin and
access-widener itself, so there is no MixinBooter / UniMixins dependency to resolve, no
mcmod.infodependency block to get themodid:rangeformat right, and nothing to ask players to install. Access widening is an access widener on all three versions, where 1.12.2 Forge has none. The Ornithe entrypoint is OSL'snet.ornithemc.osl.entrypoints.api.ModInitializer- the Fabric API classes do not exist on these Minecraft versions - and the same runtime toggle and//$ ifgating run through the same preprocessor. - The legacy Forge build directories are now
legacy/legacy-forge-<mc>rather thanlegacy/legacy-<mc>, so they read as a pair withlegacy/legacy-ornithe-<mc>. - Runtime per-mixin toggle (
config/lomka-mixins.properties) through a legacy-specificLomkaMixinPlugin: Log4j instead of SLF4J (which only arrives in 1.17), no Gson (parseStringneeds 2.8.6, 1.12.2 ships 2.8.0), and no JOML system properties (these versions use Mojang math). - Mixin runtime is an external mod, never shaded: MixinBooter 11.17 on 1.8.9 and 1.12.2,
UniMixins 1.7.10-0.3.1 on 1.7.10. Registration is the
MixinConfigsmanifest attribute, so there is no coremod /IFMLLoadingPluginclass. 1.12.2 shipslomka.refmap.json; 1.7.10 and 1.8.9 remap in the reobf step and need no refmap. - Per-version
mcmod.info, withlogoFileas a barelogo.pngin the jar root - 1.19.2'sAbstractPackResources#getRootResource(String)throws on any path containing/, and the same rule applies here. Thecreditsfield is gone: the ports it named are not in this tree, and Forge shows it only on the mod list entry. - 1.8.9 and 1.12.2 declare their mixin runtime to the loader itself,
mixinbooter:[11.17,). FML parsesmcmod.infodependencies asmodid:rangewith a lowercase id, so the display-name form is a load error. 1.7.10 declares nothing: UniMixins ships nomcmod.info, so there is no id for FML to resolve and declaring one aborts the load. The 1.7.10 requirement is a platform-level one instead. - An access transformer is shipped and declared (
FMLAT: accesstransformer.cfg) but has no entries yet: a declared-but-missing transformer fails Forge at load, an empty one does not. Entries become necessary when an@Overwritebody calls a private method, or when an@Invoker/@Accessoris added.
Performance
MathHelper.smallestEncompassingPowerOfTwo/log2: the five-step bit spread and the De Bruijn table lookup replaced with a singleInteger.numberOfLeadingZerosintrinsic, reproducing vanilla's edge cases exactly (0forn <= 0on the first,-1on the second). (all versions)MixinMinecraft: the per-frameThread.yield()inrunGameLoopis redirected away. It is a scheduler hint rather than an optimization, recorded so the trade is visible. (all versions)AbstractResourcePack:pack.mcmetais parsed once per pack instead of on every metadata query - three call sites per pack per resource reload - andlocationToNameloses itsString.format. Loading path, not frame path. (all versions)AABB#calculateIntercepton 1.12.2, and the equivalentEnumFacing/int-returning body on 1.7.10 and 1.8.9: vanilla allocates oneVec3dper plane it tests, up to six per ray trace. The candidate point is kept in locals and the planes are tested directly. (all versions)EnumFacing#rotateAroundand its counter-clockwise sibling: flat lookup tables instead of nested enum dispatch.getOppositeandrandomare deliberately left alone - PolyPatcher already overwrites both on 1.12.2 with byte-identical bodies. (1.8.9, 1.12.2)Vec3i#hashCode: phi-mix (fromefficient_hashingby ZZZank, CC0) instead of vanilla's weak(y + z * 31) * 31 + x, which collapses a large share of a dense 64^3 region onto few distinct values. 1.12.2 carries the identical degree-2 polynomial, so the body is a transcription. (1.8.9, 1.12.2)NBTTagIntArray/NBTTagLongArraybulkload: 8 KB blocks through a big-endianByteBufferinstead of four/eightread()calls per element. Taken only for aDataInputStream, i.e. the disk path (region files, player data,level.dat);Heightmapslong arrays are where it pays on a server. (1.8.9 int arrays, 1.12.2 both)NettyCompressionEncoder/NettyCompressionDecoder: the per-packetnew byte[readableBytes]is reused, capped so one oversized chunk packet cannot pin a permanent high-water buffer. (1.12.2)FallbackResourceManager: the.mcmetalocation is built only once a pack actually has metadata, instead of one string concat plus oneResourceLocationper lookup before any pack is consulted. (1.12.2)Framebufferpresent: the fullscreen blit quad and its half-dozen state toggles are replaced with one hardwareglBlitFramebuffer(NEAREST). (1.8.9, 1.12.2)- On Ornithe the same patches carry Feather names:
RenderTarget#draw(int, int, boolean)is the present,Box#clipthe ray trace,FallbackResourceManagerunchanged.RenderTargetandDirection#clockwise(Axis)also ship on Ornithe, where the rotation is a flat lookup table anchored on the three privateclockwiseX/Y/Zhelpers rather than onclockwiseitself. (Ornithe, 1.8.9 and 1.12.2) Vec3i#hashCodephi-mix also runs on Ornithe on all three versions, atpriority = 999so a foreign body lands on top. (Ornithe, all versions)
Notes
MixinDirectionand the OrnitheMixinMathHelperare cancellable HEAD@Injects rather than@Overwrites. On those classes@Overwritecannot resolve a target at all -Directionfails because it is first loaded throughDirection$Axis,MathHelperfails on 1.7.10 - while the identical bodies expressed as injectors apply. The cost is oneCallbackInfoReturnableper call.
This mod has no additional files