DamageType

public enum DamageType

Damage type categories for damage-type-aware defense calculation.

Each type determines which protection enchantments contribute to the enchant bonus on top of general Protection:

  • MELEE — general Protection only
  • PROJECTILE — Protection + Projectile Protection
  • EXPLOSION — Protection + Blast Protection
  • FIRE — Protection + Fire Protection
  • OTHER — general Protection only (same as MELEE)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public static ArmorDefenseCalculator.DamageType valueOf(String name)

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.