mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 00:47:52 +00:00
d6bba7ff46a9807bf4009aa77c33bcc57cff2038
Each holds one member, a logger alias for its proxy's logger. Everything goes through reflection because 'package' is a Java keyword and cannot appear as a type name in Java source, which is also why these two classes have no Java form at all. The plain-JVM half pins the shape and that the alias reads the proxy's var rather than holding anything, so it reports null before preInit. The Forge server half pins the part that matters for what comes next: after preInit each alias returns the very instance its proxy holds, adding nothing. 123 plain-JVM tests, 23 Forge server tests.
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
Scala
85.4%
Java
14.6%