DamageScaling

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.

script.zs
import crafttweaker.api.world.damage.DamageScaling;

Implements

DamageScaling implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

DamageScaling is an enum with 3 constants. They are accessible like so:

script.zs
// DamageScaling.ALWAYS
<constant:minecraft:damage/damage_scaling:always>
// DamageScaling.NEVER
<constant:minecraft:damage/damage_scaling:never>
// DamageScaling.WHEN_CAUSED_BY_LIVING_NON_PLAYER
<constant:minecraft:damage/damage_scaling:when_caused_by_living_non_player>

Members

Getter
Gets the serialized name.
script.zs
// DamageScaling.serializedName as string
<constant:minecraft:damage/damage_scaling:always>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// DamageScaling.serializedName() as string;
<constant:minecraft:damage/damage_scaling:always>.serializedName();

Return Type: string