DamageEffects

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.DamageEffects;

Implements

DamageEffects implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

DamageEffects is an enum with 6 constants. They are accessible like so:

script.zs
// DamageEffects.BURNING
<constant:minecraft:damage/damage_effects:burning>
// DamageEffects.DROWNING
<constant:minecraft:damage/damage_effects:drowning>
// DamageEffects.FREEZING
<constant:minecraft:damage/damage_effects:freezing>
// DamageEffects.HURT
<constant:minecraft:damage/damage_effects:hurt>
// DamageEffects.POKING
<constant:minecraft:damage/damage_effects:poking>
// DamageEffects.THORNS
<constant:minecraft:damage/damage_effects:thorns>

Members

Getter
Gets the serialized name.
script.zs
// DamageEffects.serializedName as string
<constant:minecraft:damage/damage_effects:burning>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// DamageEffects.serializedName() as string;
<constant:minecraft:damage/damage_effects:burning>.serializedName();

Return Type: string

Getter
script.zs
// DamageEffects.sound as SoundEvent
<constant:minecraft:damage/damage_effects:burning>.sound

Return Type: SoundEvent