net.minecraft.world.item.component

public record ItemAttributeModifiers

cxn
net.minecraft.world.item.component.ItemAttributeModifiers
net.minecraft.class_9285
net.minecraft.component.type.AttributeModifiersComponent
net.minecraft.src.C_313447_
net.minecraft.world.item.component.ItemAttributeModifiers

Field summary

Modifier and TypeField
private final List<ItemAttributeModifiers$Entry>
e
modifiers
comp_2393
modifiers
f_314826_
private final boolean
f
showInTooltip
comp_2394
showInTooltip
f_315588_
public static final ItemAttributeModifiers
a
EMPTY
field_49326
DEFAULT
f_314473_
private static final com.mojang.serialization.Codec<ItemAttributeModifiers>
g
FULL_CODEC
field_49751
BASE_CODEC
f_317123_
public static final com.mojang.serialization.Codec<ItemAttributeModifiers>
b
CODEC
field_49327
CODEC
f_316595_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers>
c
STREAM_CODEC
field_49328
PACKET_CODEC
f_314793_
public static final DecimalFormat
d
ATTRIBUTE_MODIFIER_FORMAT
field_49329
DECIMAL_FORMAT
f_315079_

Constructor summary

ModifierConstructor
public (List<ItemAttributeModifiers$Entry> showInTooltip, boolean arg1)

Method summary

Modifier and TypeMethod
public ItemAttributeModifiers
a(boolean arg0)
withTooltip(boolean arg0)
method_58423(boolean arg0)
withShowInTooltip(boolean showInTooltip)
m_323423_(boolean arg0)
public static ItemAttributeModifiers$Builder
a()
builder()
method_57480()
builder()
m_324327_()
public ItemAttributeModifiers
a(jm<bur> arg0, buu arg1, bsz 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)
m_320732_(C_203228_<C_552_> p_327974_, C_555_ p_328449_, C_313414_ arg2)
public void
a(bsz arg0, BiConsumer<jm<bur>, buu> 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)
m_340188_(C_313414_ p_344914_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public void
a(bsy arg0, BiConsumer<jm<bur>, buu> 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)
m_322073_(C_516_ p_331767_, BiConsumer<C_203228_<C_552_>, C_555_> arg1)
public double
a(double arg0, bsy arg1)
compute(double arg0, EquipmentSlot arg1)
method_57481(double arg0, class_1304 arg1)
applyOperations(double base, EquipmentSlot slot)
m_324178_(double p_329615_, C_516_ arg1)
public List<ItemAttributeModifiers$Entry>
b()
modifiers()
comp_2393()
modifiers()
f_314826_()
public boolean
c()
showInTooltip()
comp_2394()
showInTooltip()
f_315588_()