Class ExpandAttribute
java.lang.Object
com.blamejared.crafttweaker.natives.entity.attribute.ExpandAttribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommandString(net.minecraft.world.entity.ai.attributes.Attribute internal) Gets the attribute bracket handler syntax for this Attribute.static doublegetDefaultValue(net.minecraft.world.entity.ai.attributes.Attribute internal) Gets the default value for this Attribute.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.entity.ai.attributes.Attribute internal) Gets the registry name of the attribute.static booleanisClientSyncable(net.minecraft.world.entity.ai.attributes.Attribute internal) Should this attribute be synced to the client.static doublesanitizeValue(net.minecraft.world.entity.ai.attributes.Attribute internal, double value) Sanitizes the given value for this Attribute.
-
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.
-
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.entity.ai.attributes.Attribute internal) Gets the registry name of the attribute.- Returns:
- The registry name of the attribute.
-
getCommandString
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.
-