mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-18 11:29:33 +00:00
246dafffdab398f2552bd0e1c82763f60f9a9358
The downstream ABI inventory scanned 240 mod jars in GTNH daily 2026-08-14+678 and found no consumer of either bridge. Both were written speculatively, before the inventory existed. IDWriter had no downstream reference at all, so its four Scala function accessors are removed and the class now selects a carrier width directly. That also removes the Integer boxing and Function1/Function2 allocation per read and write that the first port had preserved. Calling write or read before setMax now throws IllegalStateException rather than NullPointerException; no caller reaches that state. JPartialOcclusion$class had no downstream reference either. The two consumers that touch JPartialOcclusion only call getPartialOcclusionBoxes, and the two jars that implement the interface emit no call to the helper. The interface and both of its method descriptors are unchanged. The ReferenceScalaPartialOcclusion fixture is removed with the helper it existed to verify. Validated with 27 plain-JVM tests, a clean checkstyleTest build with Spotless re-enabled, and the Java 8 Forge dedicated-server suite.
ForgeMultipart
An API for dynamically handling different functional parts in the one block space.
Requirements:
- The latest version of CCL (files.minecraftforge.net/CodeChickenLib/)
- Forge
- A scala compatible IDE and project (For eclipse, download the scala eclipse plugin and right click on the project -> Add Scala Nature)
If you only want to use the API and not modify it:
- Download the latest dev version from files.minecraftforge.net/ForgeMultipart/
- Download the latest dev version of CCL.
- Place both mods in your /libs/ folder and link them as libraries in your IDE.
Implementation of all parts of the API should be clean and easy in Java. The minecraft multipart mod is implemented in java as a test case.
Languages
Java
98.7%
Scala
1.3%