mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-18 19:39:19 +00:00
1b9eb057267d0b39a7870a3d43922e94a13c2dff
Converts the base class every part extends. The cleanest port so far: every descriptor is identical to the reference across all members, no public member is lost or added, @SideOnly sits on the same seven members, and the same two members stay deprecated. No in-repo Scala call site needed changing, which is a first for a type this widely used. Scala resolves the empty-paren Java accessors as it did the Scala ones, and assignment to tile still desugars to tile_$eq. The only real implementation is collisionRayTrace. getSubParts was traversed through JavaConversions purely to get Scala's map, but rayTraceCuboids already took a java.util.List, so the Java loop builds that list directly and the conversion disappears along with the single anonfun class. Validated with 90 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%