net.minecraft.world.entity.ai.attributes

public class AttributeInstance

bwm
net.minecraft.world.entity.ai.attributes.AttributeInstance
net.minecraft.class_1324
net.minecraft.unmapped.C_lzukavpx
net.minecraft.entity.attribute.EntityAttributeInstance
net.minecraft.entity.attribute.EntityAttributeInstance
net.minecraft.src.C_553_
net.minecraft.world.entity.ai.attributes.AttributeModifiable

Field summary

Modifier and TypeField
private static final String
b
BASE_FIELD
field_52008
f_jihvavrd
BASE_NBT_KEY
BASE_NBT_KEY
f_336903_
private static final String
c
MODIFIERS_FIELD
field_52009
f_hxrayccb
MODIFIERS_NBT_KEY
MODIFIERS_NBT_KEY
f_336771_
public static final String
a
ID_FIELD
field_52007
f_bkqrbgay
ID_NBT_KEY
ID_NBT_KEY
f_336964_
private final Holder<Attribute>
d
attribute
field_23700
f_mlqjboam
type
type
f_22088_
private final Map<AttributeModifier$Operation, Map<ResourceLocation, AttributeModifier>>
e
modifiersByOperation
field_23701
f_ybqmfnir
operationToModifiers
operationToModifiers
f_22089_
private final Map<ResourceLocation, AttributeModifier>
f
modifierById
field_23702
f_axpfwlpj
idToModifiers
idToModifiers
f_22090_
private final Map<ResourceLocation, AttributeModifier>
g
permanentModifiers
field_23703
f_kbiwugqb
persistentModifiers
persistentModifiers
f_22091_
private double
h
baseValue
field_23704
f_aekcslxq
baseValue
baseValue
f_22092_
private boolean
i
dirty
field_23705
f_liwslfna
dirty
dirty
f_22093_
private double
j
cachedValue
field_23706
f_hbhcmses
value
value
f_22094_
private final Consumer<AttributeInstance>
k
onDirty
field_23707
f_obppmvpj
updateCallback
updateCallback
f_22095_

Constructor summary

ModifierConstructor
public (Holder<Attribute> type, Consumer<AttributeInstance> updateCallback)

Method summary

Modifier and TypeMethod
public Holder<Attribute>
a()
getAttribute()
method_6198()
m_mxlwhbkp()
getAttribute()
getAttribute()
m_22099_()
public double
b()
getBaseValue()
method_6201()
m_jtbrfpgz()
getBaseValue()
getBaseValue()
m_22115_()
public void
a(double arg0)
setBaseValue(double arg0)
method_6192(double arg0)
m_ibcsuctz(double arg0)
setBaseValue(double baseValue)
setBaseValue(double baseValue)
m_22100_(double arg0)
Map<ResourceLocation, AttributeModifier>
a(bwo$a arg0)
getModifiers(AttributeModifier$Operation arg0)
method_6193(class_1322$class_1323 arg0)
m_gktfmzhg(C_hdbqsqsm$C_pljpmmzs arg0)
getModifiers(EntityAttributeModifier$Operation operation)
addIfAbsent(EntityAttributeModifier$Operation key)
m_22104_(C_555_$C_556_ arg0)
public Set<AttributeModifier>
c()
getModifiers()
method_6195()
m_hzjnirrj()
getModifiers()
getModifiers()
m_22122_()
public Set<AttributeModifier>
d()
getPermanentModifiers()
method_61435()
m_hnarmzcg()
getPersistentModifiers()
getPersistentModifiers()
m_357014_()
public AttributeModifier
a(akv arg0)
getModifier(ResourceLocation arg0)
method_6199(class_2960 arg0)
m_rtwvskho(C_ncpywfca arg0)
getModifier(Identifier id)
getModifier(Identifier id)
m_22111_(C_5265_ arg0)
public boolean
b(akv arg0)
hasModifier(ResourceLocation arg0)
method_6196(class_2960 arg0)
m_gbtcpwti(C_ncpywfca arg0)
hasModifier(Identifier id)
hasModifier(Identifier id)
m_22109_(C_5265_ arg0)
private void
f(bwo arg0)
addModifier(AttributeModifier arg0)
method_6197(class_1322 arg0)
m_tunrypxo(C_hdbqsqsm arg0)
addModifier(EntityAttributeModifier modifier)
addModifier(EntityAttributeModifier modifier)
m_22133_(C_555_ arg0)
public void
a(bwo arg0)
addOrUpdateTransientModifier(AttributeModifier arg0)
method_55696(class_1322 arg0)
m_mrmrewks(C_hdbqsqsm arg0)
updateModifier(EntityAttributeModifier modifier)
updateModifier(EntityAttributeModifier modifier)
m_319258_(C_555_ arg0)
public void
b(bwo arg0)
addTransientModifier(AttributeModifier arg0)
method_26835(class_1322 arg0)
m_rhfwxbjf(C_hdbqsqsm arg0)
addTemporaryModifier(EntityAttributeModifier modifier)
addTemporaryModifier(EntityAttributeModifier modifier)
m_22118_(C_555_ arg0)
public void
c(bwo arg0)
addOrReplacePermanentModifier(AttributeModifier arg0)
method_61163(class_1322 arg0)
m_fcqlvfzc(C_hdbqsqsm arg0)
overwritePersistentModifier(EntityAttributeModifier modifier)
replacePersistentModifier(EntityAttributeModifier modifier)
m_340371_(C_555_ arg0)
public void
d(bwo arg0)
addPermanentModifier(AttributeModifier arg0)
method_26837(class_1322 arg0)
m_ljjavjgr(C_hdbqsqsm arg0)
addPersistentModifier(EntityAttributeModifier modifier)
addPersistentModifier(EntityAttributeModifier modifier)
m_22125_(C_555_ arg0)
public void
a(Collection<bwo> arg0)
addPermanentModifiers(Collection<AttributeModifier> arg0)
method_61434(Collection<class_1322> arg0)
m_jhkoxnsn(Collection<C_hdbqsqsm> arg0)
addPersistentModifiers(Collection<EntityAttributeModifier> modifiers)
addPersistentModifiers(Collection<EntityAttributeModifier> modifiers)
m_353825_(Collection<C_555_> arg0)
protected void
e()
setDirty()
method_26838()
m_jivcejqw()
onUpdate()
onUpdate()
m_22129_()
public void
e(bwo arg0)
removeModifier(AttributeModifier arg0)
method_6202(class_1322 arg0)
m_iztvbwpj(C_hdbqsqsm arg0)
removeModifier(EntityAttributeModifier modifier)
removeModifier(EntityAttributeModifier modifier)
m_22130_(C_555_ arg0)
public boolean
c(akv arg0)
removeModifier(ResourceLocation arg0)
method_6200(class_2960 arg0)
m_basvthgj(C_ncpywfca arg0)
removeModifier(Identifier id)
removeModifier(Identifier id)
m_22120_(C_5265_ arg0)
public void
f()
removeModifiers()
method_6203()
m_mgkvtsyq()
clearModifiers()
clearModifiers()
m_22132_()
public double
g()
getValue()
method_6194()
m_zxnpgjts()
getValue()
getValue()
m_22135_()
private double
i()
calculateValue()
method_26840()
m_oczhaipt()
computeValue()
computeValue()
m_22137_()
private Collection<AttributeModifier>
b(bwo$a arg0)
getModifiersOrEmpty(AttributeModifier$Operation arg0)
method_26834(class_1322$class_1323 arg0)
m_ojdeprdt(C_hdbqsqsm$C_pljpmmzs arg0)
getModifiersByOperation(EntityAttributeModifier$Operation operation)
getModifiersByOperation(EntityAttributeModifier$Operation operation)
m_22116_(C_555_$C_556_ arg0)
public void
a(bwm arg0)
replaceFrom(AttributeInstance arg0)
method_26831(class_1324 arg0)
m_rissyeel(C_lzukavpx arg0)
setFrom(EntityAttributeInstance other)
setFrom(EntityAttributeInstance other)
m_22102_(C_553_ arg0)
public CompoundTag
h()
save()
method_26839()
m_ardmyaxt()
toNbt()
toNbt()
m_22136_()
public void
a(tq arg0)
load(CompoundTag arg0)
method_26833(class_2487 arg0)
m_gtfjwrju(C_hhlwcnih arg0)
readNbt(NbtCompound nbt)
readNbt(NbtCompound nbt)
m_22113_(C_4917_ arg0)