From 71b82573d8a27d8cc57b3e7a3d4e02f64545240a Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Wed, 15 Mar 2023 11:14:00 +0200 Subject: [PATCH] EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935) (cherry picked from commit 09a3510c696d9c503f2c4b302bd0a791897bc91d) --- .../net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java b/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java index 241264fcf..c4d0f9ea5 100644 --- a/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java +++ b/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java @@ -24,6 +24,9 @@ import net.minecraft.item.ItemStack; * This can be used to give non-armor items, such as blocks, * an armor slot that they can go in. * + *
The preferred requipment slot of an item stack can be queried using + * {@link net.minecraft.entity.LivingEntity#getPreferredEquipmentSlot(ItemStack) LivingEntity.getPreferredEquipmentSlot()}. + * *
Equipment slot providers can be set with {@link FabricItemSettings#equipmentSlot(EquipmentSlotProvider)}. * *
Note that items extending {@link net.minecraft.item.ArmorItem} don't need to use this