net.minecraft.world.item.component

public record ItemAttributeModifiers

dbj
net.minecraft.world.item.component.ItemAttributeModifiers
net.minecraft.class_9285
net.minecraft.component.type.AttributeModifiersComponent

Field summary

Modifier and TypeField
private final List<ItemAttributeModifiers$Entry>
e
modifiers
comp_2393
modifiers
public static final ItemAttributeModifiers
a
EMPTY
field_49326
DEFAULT
public static final com.mojang.serialization.Codec<ItemAttributeModifiers>
b
CODEC
field_49327
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers>
c
STREAM_CODEC
field_49328
PACKET_CODEC
public static final DecimalFormat
d
ATTRIBUTE_MODIFIER_FORMAT
field_49329
DECIMAL_FORMAT

Constructor summary

ModifierConstructor
public (List<ItemAttributeModifiers$Entry> arg0)

Method summary

Modifier and TypeMethod
public static ItemAttributeModifiers$Builder
a()
builder()
method_57480()
builder()
public ItemAttributeModifiers
a(je<bya> arg0, byd arg1, bwl arg2)
withModifierAdded(Holder<Attribute> arg0, AttributeModifier arg1, EquipmentSlotGroup arg2)
method_57484(class_6880<class_1320> arg0, class_1322 arg1, class_9274 arg2)
with(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot)
public void
a(bwl arg0, BiConsumer<je<bya>, byd> arg1)
forEach(EquipmentSlotGroup arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_60618(class_9274 arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
applyModifiers(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer)
public void
a(bwk arg0, BiConsumer<je<bya>, byd> arg1)
forEach(EquipmentSlot arg0, BiConsumer<Holder<Attribute>, AttributeModifier> arg1)
method_57482(class_1304 arg0, BiConsumer<class_6880<class_1320>, class_1322> arg1)
applyModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer)
public double
a(double arg0, bwk arg1)
compute(double arg0, EquipmentSlot arg1)
method_57481(double arg0, class_1304 arg1)
applyOperations(double base, EquipmentSlot slot)
public List<ItemAttributeModifiers$Entry>
b()
modifiers()
comp_2393()
modifiers()