Interface SuspiciousEffectEntry


@NullMarked public sealed interface SuspiciousEffectEntry
Represents a PotionEffectType paired with a duration.
Since:
1.20.2
  • Method Details

    • effect

      Gets the effect type.
      Returns:
      effect type
      Since:
      1.20.2
    • duration

      int duration()
      Gets the duration for this effect instance.
      Returns:
      duration (in ticks) or PotionEffect.INFINITE_DURATION
      Since:
      1.20.2
    • create

      @Contract(value="_, _ -> new", pure=true) static SuspiciousEffectEntry create(PotionEffectType effectType, int duration)
      Creates a new instance of SuspiciousEffectEntry.
      Parameters:
      effectType - effect type
      duration - duration (in ticks) or PotionEffect.INFINITE_DURATION
      Returns:
      new instance of an entry
      Since:
      1.20.2