Package net.fabricmc.fabric.api.item.v1
@NullMarked
package net.fabricmc.fabric.api.item.v1
API code for fabric-item-api-v1.
-
ClassDescriptionAllows an item to run custom logic when
ItemStack.hurtAndBreak(int, LivingEntity, EquipmentSlot)is called.Events to modify the defaultDataComponentMapof items.An enum that describes the contexts in which the game checks whether an enchantment can be applied to an item.Events relating to enchantments, allowing for finer control of what enchantments can apply to different items.Determines where an enchantment has been loaded from.A provider for the preferred equipment slot of an item.Fabric-provided extensions forDataComponentMap.Builder.General-purpose Fabric-provided extensions forItemsubclasses.Fabric-provided extensions forItem.Properties.Fabric-provided extensions forItemStack.A registry ofTooltipProvideritem components.