Package net.fabricmc.fabric.api.item.v1
Interface EquipmentSlotProvider
- All Superinterfaces:
org.quiltmc.qsl.item.setting.api.EquipmentSlotProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated
@FunctionalInterface
public interface EquipmentSlotProvider
extends org.quiltmc.qsl.item.setting.api.EquipmentSlotProvider
Deprecated.
A provider for the preferred equipment slot of an item.
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
LivingEntity.getPreferredEquipmentSlot().
Equipment slot providers can be set with FabricItemSettings.equipmentSlot(EquipmentSlotProvider).
Note that items extending ArmorItem don't need to use this
as there's ArmorItem.getSlotType().
-
Method Summary
Methods inherited from interface org.quiltmc.qsl.item.setting.api.EquipmentSlotProvider
getPreferredEquipmentSlot
EquipmentSlotProviderinstead.