Class ExpandAttributeModifier
java.lang.Object
com.blamejared.crafttweaker.natives.entity.attribute.ExpandAttributeModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.ai.attributes.AttributeModifiercreate(String name, double amount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation, String uuid) Creates a new AttributeModifierstatic doublegetAmount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the amount of this AttributeModifier.static StringgetId(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the ID of this AttributeModifier.static StringgetName(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the name of this AttributeModifier.static net.minecraft.world.entity.ai.attributes.AttributeModifier.OperationgetOperation(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the operation of this AttributeModifier.
-
Constructor Details
-
ExpandAttributeModifier
public ExpandAttributeModifier()
-
-
Method Details
-
create
public static net.minecraft.world.entity.ai.attributes.AttributeModifier create(String name, double amount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation, String uuid) Creates a new AttributeModifier- Parameters:
name- the name of this attribute modifieramount- the amount of this attribute modifieroperation- the operation of this attribute modifier.uuid- the uuid of this attribute modifier, if omitted, it will use a random one.- Returns:
- the new attribute modifier
- DocParam:
- name "My New Attribute Modifier", amount 11.4, operation AttributeOperation.ADDITION, uuid "6d79f9c1-a4ab-4e72-a0ab-71870b89b4c6"
-
getId
Gets the ID of this AttributeModifier.- Returns:
- The ID of this AttributeModifier
-
getName
Gets the name of this AttributeModifier.- Returns:
- The name of this AttributeModifier.
-
getAmount
public static double getAmount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the amount of this AttributeModifier.- Returns:
- The amount of this AttributeModifier.
-
getOperation
public static net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation getOperation(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the operation of this AttributeModifier.- Returns:
- The operation of this AttributeModifier.
-