Paper/patches/api/0408-Replace-ItemFlag.HIDE_POTION_EFFECTS.patch
Jake Potrebic b5ce6e3dc5
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#9104)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
eb4b416d PR-822: Add experimental armor trim API
33498e1d PR-831: Add a standard of annotations for Minecraft experimental things and API

CraftBukkit Changes:
19de3550d SPIGOT-7315: Bed placement duplicates crops if cancelled
1eb88374e PR-1147: Add experimental armor trim API
c4c0bb0e9 Show clean error for invalidly configured server.properties options
3ae90697f Fix UUID not being updated when changing world of MapView
e43000601 PR-1164, MC-227255, MC-253819: Fix rotation of beehives and bells

Spigot Changes:
d2fdfe39 Rebuild patches
2023-04-09 01:00:50 +01:00

47 lines
1.9 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nassim Jahnke <nassim@njahnke.dev>
Date: Thu, 5 Jan 2023 10:45:20 +0100
Subject: [PATCH] Replace ItemFlag.HIDE_POTION_EFFECTS
diff --git a/src/main/java/org/bukkit/inventory/ItemFlag.java b/src/main/java/org/bukkit/inventory/ItemFlag.java
index 69a66073bcaa10967b8736cbf35182b912c17d11..0d8d4154a156edd1092a7f5318d28336bbc57a9b 100644
--- a/src/main/java/org/bukkit/inventory/ItemFlag.java
+++ b/src/main/java/org/bukkit/inventory/ItemFlag.java
@@ -31,7 +31,9 @@ public enum ItemFlag {
/**
* Setting to show/hide potion effects, book and firework information, map
* tooltips, patterns of banners, and enchantments of enchanted books.
+ * @deprecated misleading name and description, use {@link #HIDE_ITEM_SPECIFICS}
*/
+ @Deprecated // Paper
HIDE_POTION_EFFECTS,
/**
* Setting to show/hide dyes from colored leather armor.
@@ -43,4 +45,25 @@ public enum ItemFlag {
@MinecraftExperimental
@ApiStatus.Experimental
HIDE_ARMOR_TRIM;
+ // Paper start
+ /**
+ * Setting to show/hide item-specific information, including, but not limited to:
+ * <ul>
+ * <li>Potion effects on potions, tipped arrows, and suspicious stew</li>
+ * <li>Enchanted book enchantments</li>
+ * <li>Book author and generation</li>
+ * <li>Record names</li>
+ * <li>Patterns of banners and shields</li>
+ * <li>Fish bucket variants</li>
+ * <li>Instrument item descriptions (i.e. goat horn sounds)</li>
+ * <li>Map data</li>
+ * <li>Firework data</li>
+ * <li>Crossbow projectile info</li>
+ * <li>Bundle fullness</li>
+ * <li>Shulker box contents</li>
+ * <li>Spawner descriptions</li>
+ * </ul>
+ */
+ public static final ItemFlag HIDE_ITEM_SPECIFICS = HIDE_POTION_EFFECTS;
+ // Paper end
}