mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-18 11:29:33 +00:00
da472f1fd3e05f939f9b982b8c3bf1b0d2fe8bb6
Everything this class does needs a client, so nothing here can run it. What is pinned is the contract two other parties depend on and the ABI diff cannot see. guidenh reflects on both MultipartRenderer and MultipartRenderer$ by name, calling renderWorldBlock as a static first and falling back to the companion's MODULE$, so both the static's exact signature and the singleton field are pinned. Forge needs that singleton to be both a TileEntitySpecialRenderer and an ISimpleBlockRenderingHandler or it rejects the registration. Both classes carry class-level @SideOnly(CLIENT) and are stripped on a dedicated server. Every lookup uses initialize = false: initialising the companion runs its constructor, which claims a render id from Forge's RenderingRegistry. 125 plain-JVM tests, 22 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
Java
98.7%
Scala
1.3%