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
@@ -71,7 +71,9 @@ public class FacadeContainer implements IFacadeContainer
{
this.storage.setFacade( side.ordinal(), null );
if( host != null )
{
host.markForUpdate();
}
}
}
}
@@ -97,7 +99,9 @@ public class FacadeContainer implements IFacadeContainer
newFacades[ForgeDirection.NORTH.ordinal()] = this.storage.getFacade( ForgeDirection.WEST.ordinal() );
for( int x = 0; x < this.facades; x++ )
{
this.storage.setFacade( x, newFacades[x] );
}
}
@Override
@@ -178,14 +182,18 @@ public class FacadeContainer implements IFacadeContainer
{
Item i = is.getItem();
if( i instanceof IFacadeItem )
{
this.storage.setFacade( x, ( (IFacadeItem) i ).createPartFromItemStack( is, ForgeDirection.getOrientation( x ) ) );
}
else
{
if( AppEng.instance.isIntegrationEnabled( IntegrationType.BC ) )
{
IBC bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
if( bc.isFacade( is ) )
{
this.storage.setFacade( x, bc.createFacadePart( is, ForgeDirection.getOrientation( x ) ) );
}
}
}
}
@@ -200,7 +208,9 @@ public class FacadeContainer implements IFacadeContainer
for( int x = 0; x < this.facades; x++ )
{
if( this.getFacade( ForgeDirection.getOrientation( x ) ) != null )
{
facadeSides |= ( 1 << x );
}
}
out.writeByte( (byte) facadeSides );
@@ -221,8 +231,12 @@ public class FacadeContainer implements IFacadeContainer
public boolean isEmpty()
{
for( int x = 0; x < this.facades; x++ )
{
if( this.storage.getFacade( x ) != null )
{
return false;
}
}
return true;
}
}