Package io.papermc.paper.potion
Interface SuspiciousEffectEntry
Represents a
PotionEffectType
paired with a duration.-
Method Summary
Modifier and TypeMethodDescriptionstatic SuspiciousEffectEntry
create
(PotionEffectType effectType, int duration) Creates a new instance of SuspiciousEffectEntry.int
duration()
Gets the duration for this effect instance.effect()
Gets the effect type.
-
Method Details
-
effect
PotionEffectType effect()Gets the effect type.- Returns:
- effect type
-
duration
int duration()Gets the duration for this effect instance.- Returns:
- duration (in ticks) or
PotionEffect.INFINITE_DURATION
-
create
@Contract(value="_, _ -> new", pure=true) static SuspiciousEffectEntry create(PotionEffectType effectType, int duration) Creates a new instance of SuspiciousEffectEntry.- Parameters:
effectType
- effect typeduration
- duration (in ticks) orPotionEffect.INFINITE_DURATION
- Returns:
- new instance of an entry
-