net.minecraft.world.item.component

public record ItemAttributeModifiers

cxn
net.minecraft.world.item.component.ItemAttributeModifiers
net.minecraft.class_9285
net.minecraft.unmapped.C_azfkqhlm
net.minecraft.component.type.AttributeModifiersComponent
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
f_tswsdtah
modifiers
modifiers
f_314826_
private final boolean
f
showInTooltip
comp_2394
f_vykhxwbb
showInTooltip
shownInTooltip
f_315588_
public static final ItemAttributeModifiers
a
EMPTY
field_49326
f_bnpkfncg
DEFAULT
DEFAULT
f_314473_
private static final com.mojang.serialization.Codec<ItemAttributeModifiers>
g
FULL_CODEC
field_49751
f_ojpeizpu
BASE_CODEC
FULL_CODEC
f_317123_
public static final com.mojang.serialization.Codec<ItemAttributeModifiers>
b
CODEC
field_49327
f_tllkwhsa
CODEC
CODEC
f_316595_
public static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers>
c
STREAM_CODEC
field_49328
f_rxutwhmf
PACKET_CODEC
PACKET_CODEC
f_314793_
public static final DecimalFormat
d
ATTRIBUTE_MODIFIER_FORMAT
field_49329
f_klesncgh
DECIMAL_FORMAT
DECIMAL_FORMAT
f_315079_

Constructor summary

ModifierConstructor
public (List<ItemAttributeModifiers$Entry> modifiers, boolean shownInTooltip)

Method summary

Modifier and TypeMethod
public ItemAttributeModifiers
a(boolean arg0)
withTooltip(boolean arg0)
method_58423(boolean arg0)
m_esfbwxaj(boolean arg0)
withShowInTooltip(boolean showInTooltip)
withShownInTooltip(boolean shownInTooltip)
m_323423_(boolean arg0)
public static ItemAttributeModifiers$Builder
a()
builder()
method_57480()
m_pxeavngw()
builder()
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)
m_gdqixgmv(C_cjzoxshv<C_ppzfbbsy> arg0, C_hdbqsqsm arg1, C_qfoqahef arg2)
with(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot)
with(Holder<EntityAttribute> attribute, EntityAttributeModifier modifier, EquipmentSlotGroup group)
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)
m_bpimhffk(C_qfoqahef arg0, BiConsumer<C_cjzoxshv<C_ppzfbbsy>, C_hdbqsqsm> 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)
m_zgatrfmf(C_yuycoehb arg0, BiConsumer<C_cjzoxshv<C_ppzfbbsy>, C_hdbqsqsm> 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)
m_addoqghi(double arg0, C_yuycoehb arg1)
applyOperations(double base, EquipmentSlot slot)
compute(double base, EquipmentSlot slot)
m_324178_(double p_329615_, C_516_ arg1)
public List<ItemAttributeModifiers$Entry>
b()
modifiers()
comp_2393()
m_iejphhfv()
modifiers()
modifiers()
f_314826_()
public boolean
c()
showInTooltip()
comp_2394()
m_cippinec()
showInTooltip()
shownInTooltip()
f_315588_()