Interface DamageType

All Superinterfaces:
net.kyori.adventure.key.Keyed, ProtocolObject, StaticProtocolObject

public sealed interface DamageType extends StaticProtocolObject
  • Field Details

  • Method Details

    • registry

      @Contract(pure=true) @NotNull Registry.DamageTypeEntry registry()
      Returns the damage type registry.
      Returns:
      the damage type registry
    • namespace

      @NotNull default @NotNull NamespaceID namespace()
      Specified by:
      namespace in interface ProtocolObject
    • exhaustion

      default double exhaustion()
    • messageId

      default String messageId()
    • scaling

      default String scaling()
    • asNBT

      org.jglrxavpok.hephaistos.nbt.NBTCompound asNBT()
    • values

      @NotNull static @NotNull Collection<@NotNull DamageType> values()
    • fromNamespaceId

      static DamageType fromNamespaceId(@NotNull @NotNull String namespaceID)
    • fromNamespaceId

      static DamageType fromNamespaceId(@NotNull @NotNull NamespaceID namespaceID)
    • fromId

      @Nullable static @Nullable DamageType fromId(int id)
    • getNBT

      static org.jglrxavpok.hephaistos.nbt.NBTCompound getNBT()