mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-23 21:40:02 -04:00
EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935)
(cherry picked from commit09a3510c69
) (cherry picked from commit71b82573d8
) (cherry picked from commitb7d188881d
)
This commit is contained in:
parent
e83becadf1
commit
6991bab891
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…
Add table
Reference in a new issue