mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
0de728345a88ed2d5db27c1a5e63f3557e1b6aec
Replaces TEdgePart.scala with a Java interface and retains the TEdgePart$class bridge for OpenComputers. The interface is descriptor-identical to the reference, the bridge adds only a private constructor, and the emitted class-file set for this area is unchanged. TMultiPart does not declare conductsRedstone and neither does anything in the microblock superclass chain, so it becomes a real default method and no in-repo Scala needed changing. The generated microblock classes now resolve the interface default instead of a Scala trait forwarder, which the functional generation case added during the TFacePart port covers. conductsRedstone is kept on the bridge even though OpenComputers only links against $init$, since the bridge class is being kept regardless. Validated with 61 plain-JVM tests, a clean build, 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%