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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.datacomponent.item.consumable.ConsumeEffect
ConsumeEffect.ApplyStatusEffects, ConsumeEffect.ClearAllStatusEffects, ConsumeEffect.PlaySound, ConsumeEffect.RemoveStatusEffects, ConsumeEffect.TeleportRandomly
-
Method Summary
Modifier and TypeMethodDescriptioneffects()
Effect instances to grantfloat
Float between 0 and 1, chance for the effect to be applied.
-
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
-