Package io.papermc.paper.registry.data
Interface DamageTypeRegistryEntry
- All Known Subinterfaces:
DamageTypeRegistryEntry.Builder
A data-centric version-specific registry entry for the
DamageType
type.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A mutable builder for theDamageTypeRegistryEntry
plugins may change in applicable registry events. -
Method Summary
Modifier and TypeMethodDescriptionProvides theDamageEffect
for this damage type.Provides theDamageScaling
for this damage type.Provides theDeathMessageType
for this damage type.float
Provides the amount of hunger exhaustion caused by this damage type.Provides part of the death message translation key.
-
Method Details
-
messageId
String messageId()Provides part of the death message translation key. (death.attack.<message_id>)Note The translation key is only used if
deathMessageType()
isDeathMessageType.DEFAULT
- Returns:
- part of the translation key
-
exhaustion
float exhaustion()Provides the amount of hunger exhaustion caused by this damage type.- Returns:
- the exhaustion
-
damageScaling
DamageScaling damageScaling()Provides theDamageScaling
for this damage type.- Returns:
- the damage scaling
-
damageEffect
DamageEffect damageEffect()Provides theDamageEffect
for this damage type.- Returns:
- the damage effect
-
deathMessageType
DeathMessageType deathMessageType()Provides theDeathMessageType
for this damage type.- Returns:
- the death message type
-