mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 19:59:40 +00:00
beb0995e6049d0f9d9bd94feaa72c926364beb56
Gate step before converting the central tile. Covers the surface that does not need a world: the part list is replaced rather than mutated so a previously published Seq never changes under a caller, jPartList reflects the current parts, operate skips parts whose tile has been cleared, getLightValue is the maximum and zero when empty while getExplosionResistance is the maximum but throws when empty, occlusionTest needs agreement in both directions, canReplacePart excludes the outgoing part but still rejects a part already present, and solidity falls back to partMap being null on a bare tile. One assumption was wrong and the test caught it: TMultiPart.doesTick defaults to true, so a default part starts the tile ticking and a part has to opt out to leave it idle. The case now records the real behavior. Anything touching worldObj, the registry or packets stays out of this layer because it cannot run headless; the Forge server suite covers that side. 90 plain-JVM tests, all passing against the untouched Scala.
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%