mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 17:04:25 +00:00
003e8f94ca22dc99248b68bb2b4ec538f499eb5f
Seven behavioral tests and a generated-interface freeze, both against the untouched Scala trait. Nothing in the frozen consumer baseline references TTileChangeTile or a $class helper for it, so there is no binary fixture to take: the load-bearing surface is INeighborTileChange, which is already Java and unchanged. The behavior pinned is the flag lifecycle and the coordinate filter. bindPart only ever ors the flag in, copyFrom takes it from another change tile but leaves it alone for a plain source, clearParts resets it, and partRemoved recomputes from the remaining list rather than from the part handed to it. onNeighborTileChange dispatches only for an axial offset of one or two blocks, and marks the two-block case weak. The runtime interface is the exact thirteen methods: six overrides, the field getter and setter, and five super accessors.
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%