net.minecraft.world.item.component

public record ItemAttributeModifiers

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

Field summary

Modifier and TypeField
private final List<ItemAttributeModifiers$Entry>
e
modifiers
comp_2393
modifiers
private final boolean
f
showInTooltip
comp_2394
showInTooltip
public static final ItemAttributeModifiers
a
EMPTY
field_49326
DEFAULT
private static final com.mojang.serialization.Codec<ItemAttributeModifiers>
g
FULL_CODEC
field_49751
BASE_CODEC
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, boolean arg1)

Method summary

Modifier and TypeMethod
public ItemAttributeModifiers
a(boolean arg0)
withTooltip(boolean arg0)
method_58423(boolean arg0)
withShowInTooltip(boolean showInTooltip)
public static ItemAttributeModifiers$Builder
a()
builder()
method_57480()
builder()
public ItemAttributeModifiers
a(jq<bxj> arg0, bxm arg1, bvt 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(bvt arg0, BiConsumer<jq<bxj>, bxm> 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(bvs arg0, BiConsumer<jq<bxj>, bxm> 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, bvs 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()
public boolean
c()
showInTooltip()
comp_2394()
showInTooltip()