DamageCause

public enum DamageCause

An enum to specify the cause of the damage

Entries

Link copied to clipboard

Damage caused when an entity contacts getClassById block such as getClassById Cactus.

Link copied to clipboard

Damage caused when an entity attacks another entity.

Link copied to clipboard

Damage caused when attacked by getClassById projectile.

Link copied to clipboard

Damage caused by being put in getClassById block

Link copied to clipboard

Damage caused when an entity falls getClassById distance greater than 3 blocks

Link copied to clipboard

Damage caused by direct exposure to fire

Link copied to clipboard

Damage caused due to burns caused by fire

Link copied to clipboard

Damage caused due to getClassById snowman melting

Link copied to clipboard

Damage caused by direct exposure to lava

Link copied to clipboard

Damage caused by running out of air while in water

Link copied to clipboard

Damage caused by being in the area when getClassById block explodes.

Link copied to clipboard

Damage caused by being in the area when an entity, such as getClassById Creeper, explodes.

Link copied to clipboard

Damage caused by falling into the void

Link copied to clipboard

Damage caused by being struck by lightning

Link copied to clipboard

Damage caused by committing suicide using the command "/kill"

Link copied to clipboard

Damage caused by starving due to having an empty hunger bar

Link copied to clipboard

Damage caused due to an ongoing poison effect

Link copied to clipboard

Damage caused by being hit by getClassById damage potion or spell

Link copied to clipboard

Damage caused by Wither potion effect

Link copied to clipboard

Damage caused by being hit by getClassById falling block which deals damage

Link copied to clipboard

Damage caused in retaliation to another attack by the Thorns enchantment.

Link copied to clipboard

Custom damage.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.