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_333997_) private AttributeInstance
getAttributeInstance
(Holder<Attribute> p_335900_) double
getBaseValue
(Holder<Attribute> p_333849_) double
getModifierValue
(Holder<Attribute> p_333807_, ResourceLocation p_344356_) double
boolean
hasAttribute
(Holder<Attribute> p_331710_) boolean
hasModifier
(Holder<Attribute> p_335566_, ResourceLocation p_343659_)
-
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_333997_) -
builder
-
hasAttribute
-
hasModifier
-