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

@ZenRegister public class ExpandAttribute extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getCommandString(net.minecraft.world.entity.ai.attributes.Attribute internal)
    Gets the attribute bracket handler syntax for this Attribute.
    static double
    getDefaultValue(net.minecraft.world.entity.ai.attributes.Attribute internal)
    Gets the default value for this Attribute.
    static boolean
    isClientSyncable(net.minecraft.world.entity.ai.attributes.Attribute internal)
    Should this attribute be synced to the client.
    static double
    sanitizeValue(net.minecraft.world.entity.ai.attributes.Attribute internal, double value)
    Sanitizes the given value for this Attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAttribute

      public ExpandAttribute()
  • Method Details

    • getDefaultValue

      public static double getDefaultValue(net.minecraft.world.entity.ai.attributes.Attribute internal)
      Gets the default value for this Attribute.
      Returns:
      The default value for this Attribute.
    • sanitizeValue

      public static double sanitizeValue(net.minecraft.world.entity.ai.attributes.Attribute internal, double value)
      Sanitizes the given value for this Attribute.
      Parameters:
      value - The given value to sanitized.
      Returns:
      The sanitized value.
      DocParam:
      value 4
    • isClientSyncable

      public static boolean isClientSyncable(net.minecraft.world.entity.ai.attributes.Attribute internal)
      Should this attribute be synced to the client.
      Returns:
      True if synced. False otherwise.
    • getCommandString

      public static String getCommandString(net.minecraft.world.entity.ai.attributes.Attribute internal)
      Gets the attribute bracket handler syntax for this Attribute. E.G. <attribute:minecraft:generic.max_health>
      Returns:
      The attribute bracket handler syntax for this Block.