Interface ConsumeEffect.ApplyStatusEffects

All Superinterfaces:
ConsumeEffect
Enclosing interface:
ConsumeEffect

@Experimental @NonExtendable public static interface ConsumeEffect.ApplyStatusEffects extends ConsumeEffect
Represents a consumable effect that applies potion effects based on a probability on consumption.
  • Method Details

    • effects

      List<PotionEffect> effects()
      Potion effect instances to grant.
      Returns:
      potion effects
    • probability

      float probability()
      Float between 0 and 1, chance for the effect to be applied.
      Returns:
      chance