AE2 First Commit, the dawn of 1.7 hast arrived.

This commit is contained in:
algorithmx2
2013-12-27 16:59:59 -06:00
commit e9acdcbee2
468 changed files with 47440 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
package appeng.util.inv;
import net.minecraft.item.ItemStack;
import appeng.api.config.Actionable;
import appeng.api.storage.IMEInventory;
import appeng.api.storage.data.IAEItemStack;
import appeng.util.item.AEItemStack;
public class IMEInventoryDestination implements IInventoryDestination
{
IMEInventory<IAEItemStack> me;
public IMEInventoryDestination(IMEInventory<IAEItemStack> o) {
me = o;
}
@Override
public boolean canInsert(ItemStack stack)
{
if ( stack == null )
return false;
IAEItemStack failed = me.injectItems( AEItemStack.create( stack ), Actionable.SIMULATE );
if ( failed == null )
return true;
return failed.getStackSize() != stack.stackSize;
}
}