Basic reformat, hit once, hope never again
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
package appeng.util.inv;
|
||||
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -31,6 +32,7 @@ import appeng.integration.abstraction.IBC;
|
||||
import appeng.util.InventoryAdaptor;
|
||||
import appeng.util.iterators.NullIterator;
|
||||
|
||||
|
||||
public class AdaptorBCPipe extends InventoryAdaptor
|
||||
{
|
||||
|
||||
@@ -38,11 +40,12 @@ public class AdaptorBCPipe extends InventoryAdaptor
|
||||
final private TileEntity i;
|
||||
final private ForgeDirection d;
|
||||
|
||||
public AdaptorBCPipe(TileEntity s, ForgeDirection dd) {
|
||||
public AdaptorBCPipe( TileEntity s, ForgeDirection dd )
|
||||
{
|
||||
this.bc = (IBC) AppEng.instance.getIntegration( IntegrationType.BC );
|
||||
if ( this.bc != null )
|
||||
if( this.bc != null )
|
||||
{
|
||||
if ( this.bc.isPipe( s, dd ) )
|
||||
if( this.bc.isPipe( s, dd ) )
|
||||
{
|
||||
this.i = s;
|
||||
this.d = dd;
|
||||
@@ -54,48 +57,48 @@ public class AdaptorBCPipe extends InventoryAdaptor
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack removeSimilarItems(int amount, ItemStack filter, FuzzyMode fuzzyMode, IInventoryDestination destination)
|
||||
public ItemStack removeItems( int amount, ItemStack filter, IInventoryDestination destination )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack simulateSimilarRemove(int amount, ItemStack filter, FuzzyMode fuzzyMode, IInventoryDestination destination)
|
||||
public ItemStack simulateRemove( int amount, ItemStack filter, IInventoryDestination destination )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack removeItems(int amount, ItemStack filter, IInventoryDestination destination)
|
||||
public ItemStack removeSimilarItems( int amount, ItemStack filter, FuzzyMode fuzzyMode, IInventoryDestination destination )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack simulateRemove(int amount, ItemStack filter, IInventoryDestination destination)
|
||||
public ItemStack simulateSimilarRemove( int amount, ItemStack filter, FuzzyMode fuzzyMode, IInventoryDestination destination )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack addItems(ItemStack toBeAdded )
|
||||
public ItemStack addItems( ItemStack toBeAdded )
|
||||
{
|
||||
if ( this.i == null )
|
||||
if( this.i == null )
|
||||
return toBeAdded;
|
||||
if ( toBeAdded == null )
|
||||
if( toBeAdded == null )
|
||||
return null;
|
||||
if ( toBeAdded.stackSize == 0 )
|
||||
if( toBeAdded.stackSize == 0 )
|
||||
return null;
|
||||
|
||||
if ( this.bc.addItemsToPipe( this.i, toBeAdded, this.d ) )
|
||||
if( this.bc.addItemsToPipe( this.i, toBeAdded, this.d ) )
|
||||
return null;
|
||||
return toBeAdded;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack simulateAdd(ItemStack toBeSimulated )
|
||||
public ItemStack simulateAdd( ItemStack toBeSimulated )
|
||||
{
|
||||
if ( this.i == null )
|
||||
if( this.i == null )
|
||||
return toBeSimulated;
|
||||
return null;
|
||||
}
|
||||
@@ -111,5 +114,4 @@ public class AdaptorBCPipe extends InventoryAdaptor
|
||||
{
|
||||
return new NullIterator<ItemSlot>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user