From d1a68a02b46c68046890a7b42ec3b3b923db7fc0 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot <noreply+git-bukkit@papermc.io> Date: Wed, 24 Apr 2024 01:47:31 +1000 Subject: [PATCH] Fix JavaDoc errors By: md_5 <git@md-5.net> --- .../src/main/java/org/bukkit/entity/EntityCategory.java | 6 +++--- .../src/main/java/org/bukkit/inventory/ItemFactory.java | 2 +- .../src/main/java/org/bukkit/inventory/meta/PotionMeta.java | 2 +- paper-api/src/main/java/org/bukkit/loot/LootContext.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/EntityCategory.java b/paper-api/src/main/java/org/bukkit/entity/EntityCategory.java index fd960f20c7..3e2ae87c80 100644 --- a/paper-api/src/main/java/org/bukkit/entity/EntityCategory.java +++ b/paper-api/src/main/java/org/bukkit/entity/EntityCategory.java @@ -23,7 +23,7 @@ public enum EntityCategory { * <li>Are subject to burning in daylight (though not all). * <li>Sink in water (except {@link Drowned}, {@link Phantom Phantoms} * and {@link Wither Withers}). - * <li>Take additional damage from {@link Enchantment#DAMAGE_UNDEAD}. + * <li>Take additional damage from {@link Enchantment#SMITE}. * <li>Are ignored by {@link Wither Withers}. * </ul> */ @@ -31,8 +31,8 @@ public enum EntityCategory { /** * Entities of the arthropod family. These creatures: * <ul> - * <li>Take additional damage and receive {@link PotionEffectType#SLOW} - * from {@link Enchantment#DAMAGE_ARTHROPODS}. + * <li>Take additional damage and receive {@link PotionEffectType#SLOWNESS} + * from {@link Enchantment#BANE_OF_ARTHROPODS}. * <li>Are immune to {@link PotionEffectType#POISON} if they are spiders. * </ul> */ diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemFactory.java b/paper-api/src/main/java/org/bukkit/inventory/ItemFactory.java index 096e0d60c4..60ebfab959 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemFactory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemFactory.java @@ -139,7 +139,7 @@ public interface ItemFactory { * The input should match the same input as expected by Minecraft's {@code /give} * command. For example, "minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness", lvl:3}]}" * would yield an ItemStack of {@link Material#DIAMOND_SWORD} with an {@link ItemMeta} - * containing a level 3 {@link Enchantment#DAMAGE_ALL} + * containing a level 3 {@link Enchantment#SHARPNESS} * enchantment. * * @param input the item input string diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java index b94ac6266f..d5b6d347b2 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java @@ -87,7 +87,7 @@ public interface PotionMeta extends ItemMeta { * * @param type the potion effect type to move * @return true if the potion meta changed as a result of this call - * @deprecated use {@link #setBasePotionData(org.bukkit.potion.PotionData)} + * @deprecated use {@link #setBasePotionType(org.bukkit.potion.PotionType)} */ @Deprecated boolean setMainEffect(@NotNull PotionEffectType type); diff --git a/paper-api/src/main/java/org/bukkit/loot/LootContext.java b/paper-api/src/main/java/org/bukkit/loot/LootContext.java index 71b7aa9d67..b35dba4206 100644 --- a/paper-api/src/main/java/org/bukkit/loot/LootContext.java +++ b/paper-api/src/main/java/org/bukkit/loot/LootContext.java @@ -54,7 +54,7 @@ public final class LootContext { /** * Represents the - * {@link org.bukkit.enchantments.Enchantment#LOOT_BONUS_MOBS} the + * {@link org.bukkit.enchantments.Enchantment#LOOTING} the * {@link #getKiller()} entity has on their equipped item. * * This value is only set via @@ -124,7 +124,7 @@ public final class LootContext { } /** - * Set the {@link org.bukkit.enchantments.Enchantment#LOOT_BONUS_MOBS} + * Set the {@link org.bukkit.enchantments.Enchantment#LOOTING} * level equivalent to use when generating loot. Values less than or * equal to 0 will force the {@link LootTable} to only return a single * {@link org.bukkit.inventory.ItemStack} per pool.