public static void openJar(Player player, FlyingEntities instance) {
		boolean isImpling = instance.toString().toLowerCase().contains("impling");
		if (isImpling) {
			int chance = Utils.getRandom(100);
			Item item = null;
			if (chance <= 30) {
				item = instance.getRarleyCommon()[Utils.random(instance.getRarleyCommon().length)];
			} else if (chance <= 60) {
				item = instance.getCommon()[Utils.random(instance.getCommon().length)];
			} else if (chance <= 80) {
				item = instance.getRare()[Utils.random(instance.getRare().length)];
			} else if (chance == 100) {
				item = instance.getExtremelyRare()[Utils.random(instance.getExtremelyRare().length)];
			}
			player.getInventory().addItem(item);
		} else
			instance.effect(player);
		if (Utils.random(100) > 93) {
			player.getInventory().deleteItem(new Item(isImpling ? 50 : 51, 1));
			player.getPackets().sendGameMessage("You press too hard on the jar and the glass shatters in your hands.");
		}
	}