DamageType

@CataloguedBy(catalogue = DamageTypes::class)
interface DamageType : Keyed, Translatable

A type of damage to something.

Functions

Link copied to clipboard
@NotNull
abstract fun key(): @NotNull Key
Link copied to clipboard
@NotNull
abstract fun translationKey(): @NotNull String

Properties

Link copied to clipboard
@get:JvmName(name = "aggravatesTarget")
abstract val aggravatesTarget: Boolean

If the target this damage type is applied to will be aggravated by the damage caused by applying this damage type.

Link copied to clipboard
@get:JvmName(name = "bypassesArmor")
abstract val bypassesArmor: Boolean

If this damage type bypasses protection from the target's armour.

Link copied to clipboard
@get:JvmName(name = "bypassesInvulnerability")
abstract val bypassesInvulnerability: Boolean

If this damage type bypasses invulnerability protection, such as a player being in creative.

Link copied to clipboard
@get:JvmName(name = "bypassesMagic")
abstract val bypassesMagic: Boolean

If this damage type bypasses any protection offered by magic, such as potions.

Link copied to clipboard
@get:JvmName(name = "damagesHelmet")
abstract val damagesHelmet: Boolean

If this damage type will damage its target's helmet.

Link copied to clipboard
@get:JvmName(name = "exhaustion")
abstract val exhaustion: Float

The amount of exhaustion that this damage type will inflict upon a target.

Link copied to clipboard
abstract val isExplosion: Boolean

If this damage type causes explosion damage.

Link copied to clipboard
abstract val isFall: Boolean

If this damage type causes fall damage.

Link copied to clipboard
abstract val isFire: Boolean

If this damage type causes fire damage.

Link copied to clipboard
abstract val isMagic: Boolean

If this damage type causes magic damage.

Link copied to clipboard
abstract val isProjectile: Boolean

If this damage type causes projectile damage.

Link copied to clipboard
abstract val isThorns: Boolean

If this damage type causes thorns damage.

Link copied to clipboard
@get:JvmName(name = "scalesWithDifficulty")
abstract val scalesWithDifficulty: Boolean

If this damage type's effects are increased as the difficulty increases.