mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 04:32:24 +00:00
a2797c986b2aef961da7609b0a560ad7496c53fd
isControlDown(EntityPlayer) and isClientPressing() keep their descriptors. map() became a java.util.Map and isClientPressing_$eq became setClientPressing. Dropped playerControlValue and ControlKeyValue. They existed only to give Scala player.isControlDown sugar through an implicit conversion, and the reference already shipped the explicit static 'for Java users'. MicroblockPlacement now calls that static directly. ControlKeyHandler was a Scala object extending KeyBinding, so the instance both the key registry and the event bus needed was ControlKeyHandler$.MODULE$. It is now an ordinary KeyBinding subclass with an INSTANCE constant, which also drops the twelve static forwarders Scala generated for inherited KeyBinding members. The misspelling in ControlKeyModifer is the published type name and is kept; only the file name, which said ControlKeyModifier.scala, is corrected. 120 plain-JVM tests and 21 Forge server tests pass, none of them changed by the port.
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%