net.minecraft.world.entity.ai.attributes

public class AttributeInstance

arh
net.minecraft.world.entity.ai.attributes.AttributeInstance
net.minecraft.class_1324
net.minecraft.entity.attribute.EntityAttributeInstance
net.minecraft.entity.ai.attributes.ModifiableAttributeInstance
net.minecraft.server.v1_16_R3.AttributeModifiable

Field summary

Modifier and TypeField
private final Attribute
a
attribute
field_23700
type
field_111136_b
private final Map<AttributeModifier$Operation, Set<AttributeModifier>>
b
modifiersByOperation
field_23701
operationToModifiers
field_111137_c
private final Map<UUID, AttributeModifier>
c
modifierById
field_23702
idToModifiers
field_233757_c_
private final Set<AttributeModifier>
d
permanentModifiers
field_23703
persistentModifiers
field_111135_e
private double
e
baseValue
field_23704
baseValue
field_233759_e_
private boolean
f
dirty
field_23705
dirty
field_233760_f_
private double
g
cachedValue
field_23706
value
field_233761_g_
private final Consumer<AttributeInstance>
h
onDirty
field_23707
updateCallback
field_233762_h_

Constructor summary

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

Method summary

Modifier and TypeMethod
public Attribute
a()
getAttribute()
method_6198()
getAttribute()
func_111123_a()
getAttribute()
public double
b()
getBaseValue()
method_6201()
getBaseValue()
func_111125_b()
getBaseValue()
public void
a(double arg0)
setBaseValue(double arg0)
method_6192(double arg0)
setBaseValue(double baseValue)
func_111128_a(double arg0)
setValue(double arg0)
public Set<AttributeModifier>
a(arj$a arg0)
getModifiers(AttributeModifier$Operation arg0)
method_6193(class_1322$class_1323 arg0)
getModifiers(EntityAttributeModifier$Operation operation)
func_225504_a_(AttributeModifier$Operation arg0)
public Set<AttributeModifier>
c()
getModifiers()
method_6195()
getModifiers()
func_225505_c_()
getModifiers()
public AttributeModifier
a(UUID arg0)
getModifier(UUID arg0)
method_6199(UUID arg0)
getModifier(UUID uuid)
func_111127_a(UUID arg0)
public boolean
a(arj arg0)
hasModifier(AttributeModifier arg0)
method_6196(class_1322 arg0)
hasModifier(EntityAttributeModifier modifier)
func_180374_a(AttributeModifier arg0)
private void
e(arj arg0)
addModifier(AttributeModifier arg0)
method_6197(class_1322 arg0)
addModifier(EntityAttributeModifier modifier)
func_111121_a(AttributeModifier arg0)
public void
b(arj arg0)
addTransientModifier(AttributeModifier arg0)
method_26835(class_1322 arg0)
addTemporaryModifier(EntityAttributeModifier modifier)
func_233767_b_(AttributeModifier arg0)
public void
c(arj arg0)
addPermanentModifier(AttributeModifier arg0)
method_26837(class_1322 arg0)
addPersistentModifier(EntityAttributeModifier modifier)
func_233769_c_(AttributeModifier arg0)
addModifier(AttributeModifier arg0)
protected void
d()
setDirty()
method_26838()
onUpdate()
func_233771_d_()
public void
d(arj arg0)
removeModifier(AttributeModifier arg0)
method_6202(class_1322 arg0)
removeModifier(EntityAttributeModifier modifier)
func_111124_b(AttributeModifier arg0)
removeModifier(AttributeModifier arg0)
public void
b(UUID arg0)
removeModifier(UUID arg0)
method_6200(UUID arg0)
removeModifier(UUID uuid)
func_188479_b(UUID arg0)
public boolean
c(UUID arg0)
removePermanentModifier(UUID arg0)
method_27304(UUID arg0)
tryRemoveModifier(UUID uuid)
func_233770_c_(UUID arg0)
public double
f()
getValue()
method_6194()
getValue()
func_111126_e()
getValue()
private double
h()
calculateValue()
method_26840()
computeValue()
func_111129_g()
private Collection<AttributeModifier>
b(arj$a arg0)
getModifiersOrEmpty(AttributeModifier$Operation arg0)
method_26834(class_1322$class_1323 arg0)
getModifiersByOperation(EntityAttributeModifier$Operation operation)
func_220370_b(AttributeModifier$Operation arg0)
public void
a(arh arg0)
replaceFrom(AttributeInstance arg0)
method_26831(class_1324 arg0)
setFrom(EntityAttributeInstance other)
func_233763_a_(ModifiableAttributeInstance arg0)
public CompoundTag
g()
save()
method_26839()
toNbt()
func_233772_g_()
public void
a(md arg0)
load(CompoundTag arg0)
method_26833(class_2487 arg0)
readNbt(NbtCompound nbt)
func_233765_a_(CompoundNBT arg0)
public void
e()
removeModifiers()
method_6203()
clearModifiers()
func_142049_d()