Package net.fabricmc.fabric.api.item.v1
@NullMarked
package net.fabricmc.fabric.api.item.v1
API code for fabric-item-api-v1.
-
ClassDescriptionEvents relating to block transformers, allowing for advanced modification of block transformers as they're loaded.Contains various shortcut methods for adding block transform data to axes, shovels, and hoes.Allows 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.Deprecated.Deprecated.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.General-purpose Fabric-provided extensions forTooltipFlag.A single event that allows for overriding item behavior otherwise implemented viaItemStack.overrideStackedOnOther(Slot, ClickAction, Player)andItemStack.overrideOtherStackedOnMe(ItemStack, Slot, ClickAction, Player, SlotAccess)on a per-item basis.A registry ofTooltipProvideritem components.Determines where a data driven resource has been loaded from.
ResourceSourceinstead.