Interface ItemAction.ApplyEffects

All Superinterfaces:
ItemAction
Enclosing interface:
ItemAction

public static interface ItemAction.ApplyEffects extends ItemAction
Applies PotionEffects with chance.
  • Method Details

    • chance

      double chance()
      Returns the probability for effects to be applied.
      Returns:
      The probability for effects to be applied
    • effects

      List<PotionEffect> effects()
      Returns PotionEffects that will be applied.
      Returns:
      PotionEffects that will be applied