Interface ConsumeEffect.ApplyStatusEffects

All Superinterfaces:
ConsumeEffect
Enclosing interface:
ConsumeEffect

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

    • effects

      List<PotionEffect> effects()
      Effect instances to grant
      Returns:
      effect
    • probability

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