Interface DamageResistant


@NonExtendable public interface DamageResistant
Holds the contents of damage types that the item entity containing this item is invincible to.
Since:
1.21.3
See Also:
  • Method Details

    • damageResistant

      @Contract(value="_ -> new", pure=true) static DamageResistant damageResistant(RegistryKeySet<DamageType> types)
      Since:
      26.1.2
    • types

      @Contract(value="-> new", pure=true) RegistryKeySet<DamageType> types()
      The types that this damage type is invincible to.
      Returns:
      the registry key set holding the respective damage types.
      Since:
      1.21.3