mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-23 16:18:29 -05:00
EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935)
(cherry picked from commit 09a3510c69
)
This commit is contained in:
parent
f1c68e5823
commit
71b82573d8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue