Uses of Record Class
net.minecraft.component.type.AttributeModifiersComponent
Packages that use AttributeModifiersComponent
Package
Description
-
Uses of AttributeModifiersComponent in net.minecraft.component
Fields in net.minecraft.component with type parameters of type AttributeModifiersComponentModifier and TypeFieldDescriptionstatic final DataComponentType
<AttributeModifiersComponent> DataComponentTypes.ATTRIBUTE_MODIFIERS
-
Uses of AttributeModifiersComponent in net.minecraft.component.type
Fields in net.minecraft.component.type declared as AttributeModifiersComponentModifier and TypeFieldDescriptionstatic final AttributeModifiersComponent
AttributeModifiersComponent.DEFAULT
Fields in net.minecraft.component.type with type parameters of type AttributeModifiersComponentModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<AttributeModifiersComponent> AttributeModifiersComponent.BASE_CODEC
static final com.mojang.serialization.Codec
<AttributeModifiersComponent> AttributeModifiersComponent.CODEC
static final PacketCodec
<RegistryByteBuf, AttributeModifiersComponent> AttributeModifiersComponent.PACKET_CODEC
Methods in net.minecraft.component.type that return AttributeModifiersComponentModifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.build()
AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) AttributeModifiersComponent.withShowInTooltip
(boolean showInTooltip) -
Uses of AttributeModifiersComponent in net.minecraft.item
Fields in net.minecraft.item with type parameters of type AttributeModifiersComponentModifier and TypeFieldDescriptionprivate final Supplier
<AttributeModifiersComponent> ArmorItem.attributeModifiers
Methods in net.minecraft.item that return AttributeModifiersComponentModifier and TypeMethodDescriptionstatic AttributeModifiersComponent
MaceItem.createAttributeModifiers()
static AttributeModifiersComponent
MiningToolItem.createAttributeModifiers
(ToolMaterial material, float baseAttackDamage, float attackSpeed) static AttributeModifiersComponent
SwordItem.createAttributeModifiers
(ToolMaterial material, int baseAttackDamage, float attackSpeed) static AttributeModifiersComponent
TridentItem.createAttributeModifiers()
ArmorItem.getAttributeModifiers()
Returns the attribute modifiers the item provides.Item.getAttributeModifiers()
Deprecated.Methods in net.minecraft.item with parameters of type AttributeModifiersComponentModifier and TypeMethodDescriptionItem.Settings.attributeModifiers
(AttributeModifiersComponent attributeModifiersComponent) -
Uses of AttributeModifiersComponent in net.minecraft.loot.function
Methods in net.minecraft.loot.function that return AttributeModifiersComponentModifier and TypeMethodDescriptionprivate AttributeModifiersComponent
SetAttributesLootFunction.applyTo
(LootContext context, AttributeModifiersComponent attributeModifiersComponent) Methods in net.minecraft.loot.function with parameters of type AttributeModifiersComponentModifier and TypeMethodDescriptionprivate AttributeModifiersComponent
SetAttributesLootFunction.applyTo
(LootContext context, AttributeModifiersComponent attributeModifiersComponent) -
Uses of AttributeModifiersComponent in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item that return types with arguments of type AttributeModifiersComponentMethods in net.minecraft.predicate.item with parameters of type AttributeModifiersComponentModifier and TypeMethodDescriptionboolean
AttributeModifiersPredicate.test
(ItemStack itemStack, AttributeModifiersComponent attributeModifiersComponent)