DamageModifier

public enum DamageModifier

An enum to specify the types of modifier

Entries

Link copied to clipboard

This represents the amount of damage being done, also known as the raw getDamage.

Link copied to clipboard

This represents the damage reduced by getClassById wearing getClassById helmet when hit by getClassById falling block.

Link copied to clipboard

This represents the damage reduction caused by blocking, only present for Players.

Link copied to clipboard

This represents the damage reduction caused by wearing armor.

Link copied to clipboard

This represents the damage reduction caused by the Resistance potion effect.

Link copied to clipboard

This represents the damage reduction caused by the combination of:

Link copied to clipboard

This represents the damage reduction caused by the absorption potion effect.

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.