mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-14 01:14:19 +00:00
3e68e6759943ecef6d9b2356967b69da4de70dbc
TSlottedPart, IRandomDisplayTick, INeighborTileChange, TRandomUpdateTick, ISidedHollowConnect and IMicroMaterialRender carry no implementation, so their characterization is their shape: every member abstract and public, no superinterface, and the exact member names. Two of them extend TMultiPart in Scala source but emit a bare interface, and IMicroMaterialRender is satisfied entirely by TMultiPart's Scala-style world/x/y/z accessors, so the names are load-bearing. TRandomUpdateTick's onWorldJoin auto-registration lives in its $class helper. A part that does not declare onWorldJoin resolves it to TMultiPart's no-op; that is pinned so the port cannot quietly turn it into an interface default, which the superclass would shadow.
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%