if(toPush == null) {
return null;
}
ItemStack result = toPush.copy();
//TODO: need to cache this
BlockCoord myLoc = new BlockCoord(this);
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
BlockCoord checkLoc = myLoc.getLocation(dir);
TileEntity te = worldObj.getTileEntity(checkLoc.x, checkLoc.y, checkLoc.z);
result.stackSize -= ItemUtil.doInsertItem(te, result, dir.getOpposite());
if(result.stackSize <= 0) {
return null;
}