mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 03:49:05 +00:00
7843f137921064ba6c219c038752d50898ee666d
Replaces TIconHitEffects.scala with Java implementations of IconHitEffects, JIconHitEffects, TIconHitEffects and both $class bridges. The two interfaces are descriptor-identical to the reference; the statics class and both bridges add only a private constructor. A frozen Scala consumer compiled against the reference jar still links through all five statics. The default-versus-abstract rule discriminates within this one file. JIconHitEffects.getBreakingIcon becomes a real default because TMultiPart does not declare it, so Java implementors can now inherit it. TIconHitEffects.addHitEffects and addDestroyEffects stay abstract because TMultiPart does declare them and a default would silently lose. MicroblockClient, the one in-repo case, now declares that pair explicitly. Removes IconHitEffects$ and its MODULE$ field. No jar in the pack references it, in bytecode or by name; consumers use either the static forwarders on IconHitEffects or the two $class bridges. This is the first public class dropped rather than a method, and it contrasts with NormalOcclusionTest$, which is referenced and was kept. Evaluation order inside addDestroyEffects is preserved rather than hoisting the tile read, since the characterization pins which work happens before a null tile fails. Validated with 49 plain-JVM tests, a clean build, and the Java 8 Forge dedicated-server suite.
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%