mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-18 11:29:33 +00:00
92a1f824278fc4a8a9b234ae7e5855ea8a9448f6
The notes told consumers what breaks on rebuild but not whether the migration they are being asked to make is final. Without that, the reasonable reading is that adopting the Java surface now buys a second migration when the Scala runtime is removed later. State the guarantee: the removal release drops the Scala-shaped entry points and keeps their Java siblings, so one migration to the documented surface is the whole cost. Name the one way to pay it twice, which is aiming at a raw dev-jar class such as scalatraits.TRedstoneTile instead of the stable IRedstoneTile capability interface. That is the mistake a failing rebuild invites, and it fails at runtime in between. Record two limits honestly: the guarantee covers the documented and audited surface, which is why removal waits on adoption evidence rather than source patches, and the source-layout move out of src/main/scala changes no class, package or descriptor and so is invisible.
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
- JDK 8 and JDK 25. The mod targets Java 8, but a small set of helpers is compiled at Java 21 by the
compileModernJavatask and downgraded to Java 8, so both toolchains must be resolvable to build. - A scala compatible IDE and project (For eclipse, download the scala eclipse plugin and right click on the project -> Add Scala Nature).
Most of the codebase is Java now; the Java sources live under
src/main/scalaso they can be joint-compiled with the Scala files that remain.
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.
See the Java API index for supported entry points, compiling examples, ownership/lifecycle contracts and migration status. It links to factory registration, material enumeration, part traversal, tile loading and occlusion guides.
Languages
Java
98.7%
Scala
1.3%