EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935)

(cherry picked from commit 09a3510c69)
This commit is contained in:
Juuz 2023-03-15 11:14:00 +02:00 committed by modmuss50
parent f1c68e5823
commit 71b82573d8

View file

@ -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.
*
* <p>The preferred requipment slot of an item stack can be queried using
* {@link net.minecraft.entity.LivingEntity#getPreferredEquipmentSlot(ItemStack) LivingEntity.getPreferredEquipmentSlot()}.
*
* <p>Equipment slot providers can be set with {@link FabricItemSettings#equipmentSlot(EquipmentSlotProvider)}.
*
* <p>Note that items extending {@link net.minecraft.item.ArmorItem} don't need to use this