}
return map;
}
public static IInventory getInventoryFromSide(World world, int x, int y, int z, ForgeDirection side, final Class<? extends IInventory> type, final Class<? extends IInventory> exclude) {
return getInventoryFromSide(world, x, y, z, side, new ITileFilter() {
@Override
public boolean matches(TileEntity tile) {
if (type != null && !type.isAssignableFrom(tile.getClass()))
return false;
return exclude == null || !exclude.isAssignableFrom(tile.getClass());