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_, Holder<Attribute> p_316258_) private AttributeInstance
getAttributeInstance
(Holder<Attribute> p_316859_) double
getBaseValue
(Holder<Attribute> p_316396_) double
getModifierValue
(Holder<Attribute> p_316754_, UUID p_22249_) double
boolean
hasAttribute
(Holder<Attribute> p_316617_) boolean
hasModifier
(Holder<Attribute> p_316471_, UUID p_22257_)
-
Field Details
-
instances
-
-
Constructor Details
-
AttributeSupplier
AttributeSupplier(Map<Holder<Attribute>, AttributeInstance> p_22243_)
-
-
Method Details
-
getAttributeInstance
-
getValue
-
getBaseValue
-
getModifierValue
-
createInstance
@Nullable public AttributeInstance createInstance(Consumer<AttributeInstance> p_22251_, Holder<Attribute> p_316258_) -
builder
-
hasAttribute
-
hasModifier
-