public static Map<ForgeDirection, IInventory> findChests(World world, int x, int y, int z, ForgeDirection[] directionstocheck)
{
Map<ForgeDirection, IInventory> chests = new LinkedHashMap<ForgeDirection, IInventory>();
for(ForgeDirection direction : directionstocheck)
{
BlockPosition bp = new BlockPosition(x, y, z);
bp.orientation = direction;
bp.moveForwards(1);
TileEntity te = world.getBlockTileEntity(bp.x, bp.y, bp.z);
if(te instanceof IInventory)
{
chests.put(direction, checkForDoubleChest(world, te, bp));
}