Class AttributeSupplier
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeSupplier
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeSupplier.Builder
builder()
createInstance
(Consumer<AttributeInstance> p_22251_, Attribute p_22252_) private AttributeInstance
getAttributeInstance
(Attribute p_22261_) double
getBaseValue
(Attribute p_22254_) double
getModifierValue
(Attribute p_22248_, UUID p_22249_) double
boolean
hasAttribute
(Attribute p_22259_) boolean
hasModifier
(Attribute p_22256_, UUID p_22257_)
-
Field Details
-
instances
-
-
Constructor Details
-
AttributeSupplier
-
-
Method Details
-
getAttributeInstance
-
getValue
-
getBaseValue
-
getModifierValue
-
createInstance
@Nullable public AttributeInstance createInstance(Consumer<AttributeInstance> p_22251_, Attribute p_22252_) -
builder
-
hasAttribute
-
hasModifier
-