Interface DamageTypeRegistryEntry

All Known Subinterfaces:
DamageTypeRegistryEntry.Builder

@Experimental @NonExtendable public interface DamageTypeRegistryEntry
A data-centric version-specific registry entry for the DamageType type.
  • 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() is DeathMessageType.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 the DamageScaling for this damage type.
      Returns:
      the damage scaling
    • damageEffect

      DamageEffect damageEffect()
      Provides the DamageEffect for this damage type.
      Returns:
      the damage effect
    • deathMessageType

      DeathMessageType deathMessageType()
      Provides the DeathMessageType for this damage type.
      Returns:
      the death message type