Removed Alpha Migration.

Fixed a crash when AE is rendering as a FMP Part.
Meteorite Loot is now less random.
Added support for CLApi ( might be neat as it develops )
This commit is contained in:
AlgorithmX2
2014-05-15 21:18:30 -05:00
parent 9ba1b133d7
commit 6f96ae6074
16 changed files with 75 additions and 1001 deletions
+35
View File
@@ -0,0 +1,35 @@
package appeng.integration.modules;
import appeng.api.util.AEColor;
import appeng.integration.BaseModule;
import appeng.integration.abstraction.ICLApi;
public class CLApi extends BaseModule implements ICLApi
{
public static CLApi instance;
@Override
public void Init() throws Throwable
{
TestClass( coloredlightscore.src.api.CLApi.class );
}
@Override
public void PostInit() throws Throwable
{
// :P
}
@Override
public int colorLight(AEColor color, int light)
{
int mv = color.mediumVariant;
float r = (mv >> 16) & 0xff;
float g = (mv >> 8) & 0xff;
float b = (mv >> 0) & 0xff;
return coloredlightscore.src.api.CLApi.makeRGBLightValue( r / 255.0f, g / 255.0f, b / 255.0f, light / 15.0f );
}
}