Uses of Record Class
net.minecraft.world.item.component.ItemAttributeModifiers
Package
Description
-
Uses of ItemAttributeModifiers in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
ItemAttributeModifiersPredicate.matches
(ItemStack p_341223_, ItemAttributeModifiers p_341374_) -
Uses of ItemAttributeModifiers in net.minecraft.core.component
Modifier and TypeFieldDescriptionstatic final DataComponentType
<ItemAttributeModifiers> DataComponents.ATTRIBUTE_MODIFIERS
-
Uses of ItemAttributeModifiers in net.minecraft.world.item
Modifier and TypeFieldDescriptionprivate final Supplier
<ItemAttributeModifiers> ArmorItem.defaultModifiers
Modifier and TypeMethodDescriptionstatic ItemAttributeModifiers
DiggerItem.createAttributes
(Tier p_330688_, float p_330237_, float p_332017_) static ItemAttributeModifiers
MaceItem.createAttributes()
static ItemAttributeModifiers
SwordItem.createAttributes
(Tier p_330371_, float p_331976_, float p_332104_) Neo: Method overload to allow giving a float for damage instead of an int.static ItemAttributeModifiers
SwordItem.createAttributes
(Tier p_330371_, int p_331976_, float p_332104_) static ItemAttributeModifiers
TridentItem.createAttributes()
ArmorItem.getDefaultAttributeModifiers()
Item.getDefaultAttributeModifiers()
Deprecated. -
Uses of ItemAttributeModifiers in net.minecraft.world.item.component
Modifier and TypeFieldDescriptionstatic final ItemAttributeModifiers
ItemAttributeModifiers.EMPTY
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ItemAttributeModifiers> ItemAttributeModifiers.CODEC
private static final com.mojang.serialization.Codec
<ItemAttributeModifiers> ItemAttributeModifiers.FULL_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemAttributeModifiers> ItemAttributeModifiers.STREAM_CODEC
Modifier and TypeMethodDescriptionItemAttributeModifiers.Builder.build()
ItemAttributeModifiers.withModifierAdded
(Holder<Attribute> p_330266_, AttributeModifier p_331954_, EquipmentSlotGroup p_332175_) ItemAttributeModifiers.withTooltip
(boolean p_335777_) -
Uses of ItemAttributeModifiers in net.minecraft.world.level.storage.loot.functions
Modifier and TypeMethodDescriptionprivate ItemAttributeModifiers
SetAttributesFunction.updateModifiers
(LootContext p_339627_, ItemAttributeModifiers p_339590_) Modifier and TypeMethodDescriptionprivate ItemAttributeModifiers
SetAttributesFunction.updateModifiers
(LootContext p_339627_, ItemAttributeModifiers p_339590_) -
Uses of ItemAttributeModifiers in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic ItemAttributeModifiers
CommonHooks.computeModifiedAttributes
(ItemStack stack, ItemAttributeModifiers defaultModifiers) Hook to fireItemAttributeModifierEvent
.Modifier and TypeMethodDescriptionstatic ItemAttributeModifiers
CommonHooks.computeModifiedAttributes
(ItemStack stack, ItemAttributeModifiers defaultModifiers) Hook to fireItemAttributeModifierEvent
. -
Uses of ItemAttributeModifiers in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault ItemAttributeModifiers
IItemStackExtension.getAttributeModifiers()
Computes the gameplay attribute modifiers for this item stack.default ItemAttributeModifiers
IItemExtension.getDefaultAttributeModifiers
(ItemStack stack) ItemStack sensitive version of getDefaultAttributeModifiers. -
Uses of ItemAttributeModifiers in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate final ItemAttributeModifiers
ItemAttributeModifierEvent.defaultModifiers
Modifier and TypeMethodDescriptionItemAttributeModifierEvent.build()
Builds a newItemAttributeModifiers
with the results of this event, returning the default modifiers if no changes were made.ItemAttributeModifierEvent.ItemAttributeModifiersBuilder.build
(boolean showInTooltip) ItemAttributeModifierEvent.getDefaultModifiers()
Returns the default attribute modifiers before changes made by the event.ModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, ItemAttributeModifiers defaultModifiers) (package private)
ItemAttributeModifiersBuilder
(ItemAttributeModifiers defaultModifiers) -
Uses of ItemAttributeModifiers in net.neoforged.neoforge.oldtest.item
Modifier and TypeMethodDescriptionMayFlyAttributeTest.InvertedTelescope.getDefaultAttributeModifiers
(ItemStack stack)
IItemExtension.getDefaultAttributeModifiers(ItemStack)