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 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
    static double
    getAmount(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the amount of this AttributeModifier.
    static String
    getId(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the ID of this AttributeModifier.
    static String
    getName(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
    Gets the name of this AttributeModifier.
    static net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation
    getOperation(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(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 modifier
      amount - the amount of this attribute modifier
      operation - 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

      public static String getId(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
      Gets the ID of this AttributeModifier.
      Returns:
      The ID of this AttributeModifier
    • getName

      public static String getName(net.minecraft.world.entity.ai.attributes.AttributeModifier internal)
      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.