Interface ItemAttributeModifiers.Builder
- All Superinterfaces:
DataComponentBuilder<ItemAttributeModifiers>
,ShownInTooltip.Builder<ItemAttributeModifiers.Builder>
- Enclosing interface:
ItemAttributeModifiers
@Experimental
@NonExtendable
public static interface ItemAttributeModifiers.Builder
extends ShownInTooltip.Builder<ItemAttributeModifiers.Builder>, DataComponentBuilder<ItemAttributeModifiers>
Builder for
ItemAttributeModifiers
.-
Method Summary
Modifier and TypeMethodDescriptionaddModifier
(Attribute attribute, AttributeModifier modifier) Adds a modifier to this builder.addModifier
(Attribute attribute, AttributeModifier modifier, EquipmentSlotGroup equipmentSlotGroup) Adds a modifier to this builder.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
Methods inherited from interface io.papermc.paper.datacomponent.item.ShownInTooltip.Builder
showInTooltip
-
Method Details
-
addModifier
@Contract(value="_, _, _ -> this", mutates="this") ItemAttributeModifiers.Builder addModifier(Attribute attribute, AttributeModifier modifier) Adds a modifier to this builder.- Parameters:
attribute
- attributemodifier
- modifier- Returns:
- the builder for chaining
- See Also:
-
addModifier
@Contract(value="_, _, _ -> this", mutates="this") ItemAttributeModifiers.Builder addModifier(Attribute attribute, AttributeModifier modifier, EquipmentSlotGroup equipmentSlotGroup) Adds a modifier to this builder.- Parameters:
attribute
- attributemodifier
- modifierequipmentSlotGroup
- the slot group this modifier applies to (overrides any slot group in the modifier)- Returns:
- the builder for chaining
- See Also:
-