Package net.fabricmc.fabric.api.item.v1
Interface FabricItem.Settings
- Enclosing interface:
FabricItem
public static interface FabricItem.Settings
Fabric-provided extensions for
Item.Settings
.
This interface is automatically implemented on all item settings via Mixin and interface injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault Item.Settings
customDamage
(CustomDamageHandler handler) Sets the custom damage handler of the item.default Item.Settings
equipmentSlot
(EquipmentSlotProvider equipmentSlotProvider) Sets the equipment slot provider of the item.
-
Method Details
-
equipmentSlot
Sets the equipment slot provider of the item.- Parameters:
equipmentSlotProvider
- the equipment slot provider- Returns:
- this builder
-
customDamage
Sets the custom damage handler of the item. Note that this is only called on an ItemStack ifItemStack.isDamageable()
returns true.- See Also:
-