Class ExpandAttributeModifier
java.lang.Object
com.blamejared.crafttweaker.natives.entity.attribute.ExpandAttributeModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleamount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the amount of this AttributeModifier.static net.minecraft.world.entity.ai.attributes.AttributeModifiercreate(net.minecraft.resources.ResourceLocation id, double amount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) Creates a new AttributeModifierstatic net.minecraft.resources.ResourceLocationid(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the ID of this AttributeModifier.static net.minecraft.world.entity.ai.attributes.AttributeModifier.Operationoperation(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(net.minecraft.resources.ResourceLocation id, double amount, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) Creates a new AttributeModifier- Parameters:
id- the id of this attribute modifieramount- the amount of this attribute modifieroperation- the operation of this attribute modifier.- Returns:
- the new attribute modifier
- DocParam:
- id invalid input: '<'resource:crafttweaker:generic.scripting>, amount 11.4, operation AttributeOperation.ADDITION
-
id
public static net.minecraft.resources.ResourceLocation id(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the ID of this AttributeModifier.- Returns:
- The ID of this AttributeModifier
-
amount
public static double amount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the amount of this AttributeModifier.- Returns:
- The amount of this AttributeModifier.
-
operation
public static net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation(net.minecraft.world.entity.ai.attributes.AttributeModifier internal) Gets the operation of this AttributeModifier.- Returns:
- The operation of this AttributeModifier.
-