Class AttributeSupplier
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeSupplier
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeSupplier.Builder
builder()
createInstance
(Consumer<AttributeInstance> pOnDirty, Holder<Attribute> pAttribute) private AttributeInstance
getAttributeInstance
(Holder<Attribute> pAttribute) double
getBaseValue
(Holder<Attribute> pAttribute) double
getModifierValue
(Holder<Attribute> pAttribute, ResourceLocation pId) double
boolean
hasAttribute
(Holder<Attribute> pAttribute) boolean
hasModifier
(Holder<Attribute> pAttribute, ResourceLocation pId)
-
Field Details
-
instances
-
-
Constructor Details
-
AttributeSupplier
AttributeSupplier(Map<Holder<Attribute>, AttributeInstance> pInstances)
-
-
Method Details
-
getAttributeInstance
-
getValue
-
getBaseValue
-
getModifierValue
-
createInstance
@Nullable public AttributeInstance createInstance(Consumer<AttributeInstance> pOnDirty, Holder<Attribute> pAttribute) -
builder
-
hasAttribute
-
hasModifier
-