Attribute
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
Getter
Should this attribute be synced to the client.
Return Type:
bool
clientSyncable() as bool
Should this attribute be synced to the client.
Returns: True if synced. False otherwise.
Return Type:
bool
Getter
Gets the attribute bracket handler syntax for this Attribute.
E.G.
E.G.
<attribute:minecraft:generic.max_health>
Return Type:
string
commandString() as string
Gets the attribute bracket handler syntax for this Attribute.
E.G.
E.G.
<attribute:minecraft:generic.max_health>
Returns: The attribute bracket handler syntax for this Block.
Return Type:
string
as string
Gets the attribute bracket handler syntax for this Attribute.
E.G.
E.G.
<attribute:minecraft:generic.max_health>
Return Type:
string
Getter
Gets the default value for this Attribute.
Return Type:
double
defaultValue() as double
Gets the default value for this Attribute.
Returns: The default value for this Attribute.
Return Type:
double
Getter
Return Type:
ResourceLocation
registryName() as ResourceLocation
Return Type:
ResourceLocation
sanitizeValue(value as double) as double
Sanitizes the given value for this Attribute.
Returns: The sanitized value.
Parameters:
value: double
Type: double
- The given value to sanitized.
Return Type:
double