mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-13 16:53:35 -04:00
Update EquipmentSlotProvider javadoc for 1.21.2 (#4166)
* Update EquipmentSlotProvider javadoc * Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/EquipmentSlotProvider.java
This commit is contained in:
parent
771b444bdf
commit
3a50c93c8a
1 changed files with 3 additions and 2 deletions
|
@ -30,8 +30,9 @@ import net.minecraft.item.ItemStack;
|
|||
*
|
||||
* <p>Equipment slot providers can be set with {@link FabricItem.Settings#equipmentSlot(EquipmentSlotProvider)}.
|
||||
*
|
||||
* <p>Note that items extending {@link net.minecraft.item.ArmorItem} don't need to use this
|
||||
* as there's {@link net.minecraft.item.ArmorItem#getSlotType()}.
|
||||
* <p>If the equipment slot is not entity-dependent, you can set {@link
|
||||
* net.minecraft.component.type.EquippableComponent} on the item
|
||||
* instead of using this provider.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface EquipmentSlotProvider {
|
||||
|
|
Loading…
Reference in a new issue