mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 00:47:52 +00:00
8f73a693ccd29d4b6458e7fd20422fed69ee812a
Plain-JVM coverage is structural: the Java-facing isControlDown(EntityPlayer) static that the reference scaladoc calls out as existing for Java callers, and the typo in the class name, which is the published name. Forge server coverage for the behavior. isControlDown branches on whether the player's world is remote, so it needs a real player; a Forge FakePlayer on a dedicated server world takes the server branch and reads the map the client keeps in sync through packet 1. Unknown players default to not holding, the map reflects the last recorded value, and clearing resets it. The client branch reads isClientPressing instead and no harness has a client. 120 plain-JVM tests, 21 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
Scala
85.4%
Java
14.6%