diff options
author | Jake Potrebic <[email protected]> | 2023-06-20 10:56:49 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2023-06-20 10:56:49 -0700 |
commit | cbc89410881eb27c3ee3e296f2283eabd2f77e70 (patch) | |
tree | e043d2ce0fd1aeca5d22be1d8d4ad789652a5ef3 /patches/api/0417-enum-javadoc-fixes.patch | |
parent | 3fa4ea66682488002ec01ff1638ffc3951183d20 (diff) | |
download | Paper-cbc89410881eb27c3ee3e296f2283eabd2f77e70.tar.gz Paper-cbc89410881eb27c3ee3e296f2283eabd2f77e70.zip |
some more ItemType/BlockType api replacements
Diffstat (limited to 'patches/api/0417-enum-javadoc-fixes.patch')
-rw-r--r-- | patches/api/0417-enum-javadoc-fixes.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/patches/api/0417-enum-javadoc-fixes.patch b/patches/api/0417-enum-javadoc-fixes.patch new file mode 100644 index 0000000000..b18704ddcc --- /dev/null +++ b/patches/api/0417-enum-javadoc-fixes.patch @@ -0,0 +1,54 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic <[email protected]> +Date: Tue, 20 Jun 2023 10:52:44 -0700 +Subject: [PATCH] enum javadoc fixes + + +diff --git a/src/main/java/org/bukkit/block/data/BlockData.java b/src/main/java/org/bukkit/block/data/BlockData.java +index 55f5d09664a7858a67b795465282adcf481a2a65..5cafa1bccfbeaa8a6a5573e993635b935f448985 100644 +--- a/src/main/java/org/bukkit/block/data/BlockData.java ++++ b/src/main/java/org/bukkit/block/data/BlockData.java +@@ -211,8 +211,8 @@ public interface BlockData extends Cloneable { + * This is identical to {@link BlockType#getItemType()}. + * For example: + * <pre> +- * {@link ItemType#REDSTONE_WIRE} -> {@link BlockType#REDSTONE} +- * {@link ItemType#CARROTS} -> {@link BlockType#CARROT} ++ * {@link ItemType#REDSTONE} -> {@link BlockType#REDSTONE_WIRE} ++ * {@link ItemType#CARROT} -> {@link BlockType#CARROTS} + * </pre> + * @return placement item type or {@link ItemType#AIR} if it doesn't have one + */ +diff --git a/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java b/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java +index 170ebe3edf9fa6ac62cbc1825ea46721ecb961d2..695502ef8b30822e679b5e94d498b3fa18478fc6 100644 +--- a/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java ++++ b/src/main/java/org/bukkit/inventory/meta/trim/TrimPattern.java +@@ -55,23 +55,23 @@ public interface TrimPattern extends Keyed { + */ + public static final TrimPattern SPIRE = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("spire")); + /** +- * {@link Material#WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE}. ++ * {@link ItemType#WAYFINDER_ARMOR_TRIM_SMITHING_TEMPLATE}. + */ + public static final TrimPattern WAYFINDER = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("wayfinder")); + /** +- * {@link Material#SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE}. ++ * {@link ItemType#SHAPER_ARMOR_TRIM_SMITHING_TEMPLATE}. + */ + public static final TrimPattern SHAPER = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("shaper")); + /** +- * {@link Material#SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE}. ++ * {@link ItemType#SILENCE_ARMOR_TRIM_SMITHING_TEMPLATE}. + */ + public static final TrimPattern SILENCE = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("silence")); + /** +- * {@link Material#RAISER_ARMOR_TRIM_SMITHING_TEMPLATE}. ++ * {@link ItemType#RAISER_ARMOR_TRIM_SMITHING_TEMPLATE}. + */ + public static final TrimPattern RAISER = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("raiser")); + /** +- * {@link Material#HOST_ARMOR_TRIM_SMITHING_TEMPLATE}. ++ * {@link ItemType#HOST_ARMOR_TRIM_SMITHING_TEMPLATE}. + */ + public static final TrimPattern HOST = Registry.TRIM_PATTERN.get(NamespacedKey.minecraft("host")); + } |