Err too much.
This commit is contained in:
@@ -71,7 +71,7 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
|
||||
if ( rv != null )
|
||||
{
|
||||
i.onInventoryChanged();
|
||||
// i.onInventoryChanged();
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
@@ -150,8 +150,8 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
}
|
||||
}
|
||||
|
||||
if ( rv != null )
|
||||
i.onInventoryChanged();
|
||||
// if ( rv != null )
|
||||
// i.onInventoryChanged();
|
||||
|
||||
return rv;
|
||||
}
|
||||
@@ -226,7 +226,7 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
|
||||
if ( left.stackSize <= 0 )
|
||||
{
|
||||
i.onInventoryChanged();
|
||||
// i.onInventoryChanged();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
left.stackSize -= used;
|
||||
if ( left.stackSize <= 0 )
|
||||
{
|
||||
i.onInventoryChanged();
|
||||
// i.onInventoryChanged();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -257,8 +257,8 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
}
|
||||
}
|
||||
|
||||
if ( left.stackSize != A.stackSize )
|
||||
i.onInventoryChanged();
|
||||
// if ( left.stackSize != A.stackSize )
|
||||
// i.onInventoryChanged();
|
||||
|
||||
return left;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class IMEInventoryDestination implements IInventoryDestination
|
||||
if ( stack == null )
|
||||
return false;
|
||||
|
||||
IAEItemStack failed = me.injectItems( AEItemStack.create( stack ), Actionable.SIMULATE );
|
||||
IAEItemStack failed = me.injectItems( AEItemStack.create( stack ), Actionable.SIMULATE, null );
|
||||
|
||||
if ( failed == null )
|
||||
return true;
|
||||
|
||||
@@ -7,13 +7,13 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import appeng.integration.modules.BC;
|
||||
|
||||
public class WrapperPipe implements IInventory
|
||||
public class WrapperBCPipe implements IInventory
|
||||
{
|
||||
|
||||
TileEntity ad;
|
||||
ForgeDirection dir;
|
||||
|
||||
public WrapperPipe(TileEntity te, ForgeDirection d) {
|
||||
public WrapperBCPipe(TileEntity te, ForgeDirection d) {
|
||||
ad = te;
|
||||
dir = d;
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package appeng.util.inv;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import appeng.integration.modules.TE;
|
||||
|
||||
public class WrapperTEPipe implements IInventory
|
||||
{
|
||||
|
||||
TileEntity ad;
|
||||
ForgeDirection dir;
|
||||
|
||||
public WrapperTEPipe(TileEntity te, ForgeDirection d) {
|
||||
ad = te;
|
||||
dir = d;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSizeInventory()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack decrStackSize(int i, int j)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getStackInSlotOnClosing(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInventorySlotContents(int i, ItemStack itemstack)
|
||||
{
|
||||
TE.instance.addItemsToPipe( ad, itemstack, dir );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInvName()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInvNameLocalized()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInventoryStackLimit()
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInventoryChanged()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUseableByPlayer(EntityPlayer entityplayer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void openChest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeChest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int i, ItemStack itemstack)
|
||||
{
|
||||
return TE.instance.canAddItemsToPipe( ad, itemstack, dir );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user