Change MinecraftInventory to public, might fix some crashes.