public final class ActivePotionEffect
extends java.lang.Object
PotionEffect which was applied to a LivingEntity.| Constructor and Description |
|---|
ActivePotionEffect(@NotNull org.bukkit.potion.PotionEffect effect) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.potion.PotionEffect |
getPotionEffect()
This method returns the underlying
PotionEffect |
boolean |
hasExpired()
This returns whether this
PotionEffect has expired. |
public ActivePotionEffect(@NotNull
@NotNull org.bukkit.potion.PotionEffect effect)
public boolean hasExpired()
PotionEffect has expired.@NotNull public @NotNull org.bukkit.potion.PotionEffect getPotionEffect()
PotionEffectPotionEffect.