Skip to content

Damage Causes

DaisyDamageCauses is the damage-cause entrypoint.

  • parses normalized damage-cause input
  • keeps canonical lowercase underscore keys stable
  • exposes friendly display names
  • avoids alias sprawl for a technical value family
val cause = DaisyDamageCauses.parse("entity attack")
val key = DaisyDamageCauses.key(cause)
val label = DaisyDamageCauses.displayName(cause)
  • fire_tick
  • fire tick
  • entity_attack
  • entity attack
  • minecraft:entity_attack

Damage causes use normalization only. DaisySeries does not add a broad shortcut map here because the canonical names are already the clearest config form.

Use damageCauseCodec() when a managed or unmanaged YAML file should decode damage causes directly through DaisySeries.