Package nokunami.floral_warfare.api.util
Class MobUtil.AttributeUtil
java.lang.Object
nokunami.floral_warfare.api.util.MobUtil.AttributeUtil
- Enclosing class:
- MobUtil
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeUtil(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.ai.attributes.Attribute attribute) -
Method Summary
Modifier and TypeMethodDescriptionstatic MobUtil.AttributeUtilattributeUtil(net.minecraft.world.entity.Entity entity, Supplier<net.minecraft.world.entity.ai.attributes.Attribute> attribute) static MobUtil.AttributeUtilattributeUtil(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.ai.attributes.Attribute attribute) doubledoubledoubledoubledoubleValueWithFallback(double fallback) intintintintValue()intintValueWithFallback(int fallback) voidmodify(double value)
-
Constructor Details
-
AttributeUtil
public AttributeUtil(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.ai.attributes.Attribute attribute)
-
-
Method Details
-
attributeUtil
public static MobUtil.AttributeUtil attributeUtil(net.minecraft.world.entity.Entity entity, Supplier<net.minecraft.world.entity.ai.attributes.Attribute> attribute) -
attributeUtil
public static MobUtil.AttributeUtil attributeUtil(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.ai.attributes.Attribute attribute) -
intDefaultValue
public int intDefaultValue() -
intValueWithFallback
public int intValueWithFallback(int fallback) -
intValue
public int intValue() -
intBaseValue
public int intBaseValue() -
doubleDefaultValue
public double doubleDefaultValue() -
doubleValueWithFallback
public double doubleValueWithFallback(double fallback) -
doubleValue
public double doubleValue() -
doubleBaseValue
public double doubleBaseValue() -
modify
public void modify(double value)
-