DeathMessageType

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

Implements

DeathMessageType implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

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

script.zs
// DeathMessageType.DEFAULT
<constant:minecraft:damage/death_message_type:default>
// DeathMessageType.FALL_VARIANTS
<constant:minecraft:damage/death_message_type:fall_variants>
// DeathMessageType.INTENTIONAL_GAME_DESIGN
<constant:minecraft:damage/death_message_type:intentional_game_design>

Members

Getter
Gets the serialized name.
script.zs
// DeathMessageType.serializedName as string
<constant:minecraft:damage/death_message_type:default>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// DeathMessageType.serializedName() as string;
<constant:minecraft:damage/death_message_type:default>.serializedName();

Return Type: string