Puts everywhere brackets

This commit is contained in:
thatsIch
2015-04-29 02:30:53 +02:00
parent 23aa8fd72d
commit 64ed05a1b4
465 changed files with 6726 additions and 14 deletions
@@ -35,10 +35,14 @@ public enum IntegrationRegistry
public void add( IntegrationType type )
{
if( type.side == IntegrationSide.CLIENT && FMLLaunchHandler.side() == Side.SERVER )
{
return;
}
if( type.side == IntegrationSide.SERVER && FMLLaunchHandler.side() == Side.CLIENT )
{
return;
}
this.modules.add( new IntegrationNode( type.dspName, type.modID, type, "appeng.integration.modules." + type.name() ) );
}
@@ -46,16 +50,22 @@ public enum IntegrationRegistry
public void init()
{
for( IntegrationNode node : this.modules )
{
node.call( IntegrationStage.PRE_INIT );
}
for( IntegrationNode node : this.modules )
{
node.call( IntegrationStage.INIT );
}
}
public void postInit()
{
for( IntegrationNode node : this.modules )
{
node.call( IntegrationStage.POST_INIT );
}
}
public String getStatus()
@@ -81,7 +91,9 @@ public enum IntegrationRegistry
for( IntegrationNode node : this.modules )
{
if( node.shortName == name )
{
return node.isActive();
}
}
return false;
}