public static ItemStack compressInventory(ItemStack[] inv, World world) {
    for (CompressionHandler handler : compressionRegistry) {
      ItemStack stack = handler.compressInventory(inv, world);
      if (stack != null) {
        return stack;
      }
    }

    return null;
  }