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
@@ -74,7 +74,9 @@ public class ApiPart implements IPartHelper
for( Class layerInterface : this.interfaces2Layer.keySet() )
{
if( AppEng.instance.isIntegrationEnabled( IntegrationType.FMP ) )
{
( (IFMP) AppEng.instance.getIntegration( IntegrationType.FMP ) ).registerPassThrough( layerInterface );
}
}
}
@@ -147,7 +149,9 @@ public class ApiPart implements IPartHelper
public Class getClassByDesc( String Addendum, String fullPath, String root, String next )
{
if( this.roots.get( fullPath ) != null )
{
return this.roots.get( fullPath );
}
ClassWriter cw = new ClassWriter( ClassWriter.COMPUTE_MAXS );
ClassNode n = this.getReader( next );
@@ -313,7 +317,9 @@ public class ApiPart implements IPartHelper
return true;
}
else
{
AELog.info( "Layer " + layer + " not registered, " + layerInterface + " already has a layer." );
}
}
catch( Throwable ignored )
{
@@ -326,7 +332,9 @@ public class ApiPart implements IPartHelper
public void setItemBusRenderer( IPartItem i )
{
if( Platform.isClient() && i instanceof Item )
{
MinecraftForgeClient.registerItemRenderer( (Item) i, BusRenderer.INSTANCE );
}
}
@Override
@@ -351,7 +359,9 @@ public class ApiPart implements IPartHelper
{
String o = this.inputOutput.get( typeName );
if( o == null )
{
return typeName;
}
return o;
}
}
@@ -77,10 +77,14 @@ public class IMCGrinder implements IIMCProcessor
int turns = msg.getInteger( "turns" );
if( in == null )
{
throw new IllegalStateException( "invalid input" );
}
if( out == null )
{
throw new IllegalStateException( "invalid output" );
}
if( msg.hasKey( "optional" ) )
{
@@ -88,13 +92,17 @@ public class IMCGrinder implements IIMCProcessor
ItemStack optional = ItemStack.loadItemStackFromNBT( optionalTag );
if( optional == null )
{
throw new IllegalStateException( "invalid optional" );
}
float chance = msg.getFloat( "chance" );
AEApi.instance().registries().grinder().addRecipe( in, out, optional, chance, turns );
}
else
{
AEApi.instance().registries().grinder().addRecipe( in, out, turns );
}
}
}
@@ -54,7 +54,9 @@ public class IMCMatterCannon implements IIMCProcessor
double weight = msg.getDouble( "weight" );
if( ammo == null )
{
throw new IllegalStateException( "invalid item in message " + m );
}
AEApi.instance().registries().matterCannon().registerAmmo( ammo, weight );
}
@@ -55,11 +55,17 @@ public class IMCP2PAttunement implements IIMCProcessor
{
ItemStack is = m.getItemStackValue();
if( is != null )
{
AEApi.instance().registries().p2pTunnel().addNewAttunement( is, type );
}
else
{
throw new IllegalStateException( "invalid item in message " + m );
}
}
else
{
throw new IllegalStateException( "invalid type in message " + m + " is not contained in " + Arrays.toString( TunnelType.values() ) );
}
}
}