TheOneProbe integration (#2696)

Displayed information is equal to current the WAILA integration.

Added a preInit stage to IIntegrationModule.
Added a factory method to IntegrationType to avoid touching
IntegrationNode for every new integration.

Fixes #2650
This commit is contained in:
yueh
2016-12-14 22:36:40 +01:00
committed by GitHub
parent db85419702
commit 8bed7f223e
23 changed files with 1141 additions and 17 deletions
@@ -94,24 +94,14 @@ final class IntegrationNode
if( enabled )
{
switch( type )
{
case IC2:
this.mod = Integrations.setIc2( new IC2Module() );
break;
case JEI:
this.mod = Integrations.setJei( new JEIModule() );
break;
case Waila:
this.mod = new WailaModule();
break;
}
this.mod = type.createInstance();
}
else
{
throw new ModNotInstalled( this.modID );
}
this.mod.preInit();
this.setState( IntegrationStage.INIT );
break;