Class ExpandAttributeModifier

java.lang.Object
com.blamejared.crafttweaker.natives.entity.attribute.ExpandAttributeModifier

@ZenRegister public class ExpandAttributeModifier extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    amount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the amount of this AttributeModifier.
    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
    static net.minecraft.resources.ResourceLocation
    id(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the ID of this AttributeModifier.
    static net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation
    operation(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the operation of this AttributeModifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 modifier
      amount - the amount of this attribute modifier
      operation - 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.