Package org.spongepowered.api.data.type
Interface ItemAction.ApplyEffects
- All Superinterfaces:
ItemAction
- Enclosing interface:
ItemAction
Applies
PotionEffects with chance.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.type.ItemAction
ItemAction.ApplyEffects, ItemAction.ClearEffects, ItemAction.Factory, ItemAction.PlaySound, ItemAction.RemoveEffects, ItemAction.TeleportRandomly -
Method Summary
Modifier and TypeMethodDescriptiondoublechance()Returns the probability for effects to be applied.effects()ReturnsPotionEffects that will be applied.Methods inherited from interface org.spongepowered.api.data.type.ItemAction
apply, apply, type
-
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()ReturnsPotionEffects that will be applied.- Returns:
PotionEffects that will be applied
-