Interface DamageResistant


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

    • damageResistant

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

      @Contract(value="-> new", pure=true) TagKey<DamageType> types()
      The types that this damage type is invincible to.
      Returns:
      the key of the tag holding the respective damage types.