Interface DeathProtection


@NonExtendable public interface DeathProtection
Sets whether this item should protect the entity upon death, and what effects should be played.
Since:
1.21.3
See Also:
  • Method Details

    • deathProtection

      @Contract(value="_ -> new", pure=true) static DeathProtection deathProtection(List<ConsumeEffect> deathEffects)
      Since:
      1.21.3
    • deathProtection

      @Contract(value="-> new", pure=true) static DeathProtection.Builder deathProtection()
      Since:
      1.21.3
    • deathEffects

      @Contract(value="-> new", pure=true) @Unmodifiable List<ConsumeEffect> deathEffects()
      Since:
      1.21.3