Package be.seeseemelk.mockbukkit.potion
Class ActivePotionEffect
java.lang.Object
be.seeseemelk.mockbukkit.potion.ActivePotionEffect
This class represents an active
PotionEffect which was applied to a LivingEntity.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActivePotionEffect(@NotNull org.bukkit.potion.PotionEffect effect) Constructs a newActivePotionEffectwith the providedPotionEffect. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.potion.PotionEffectThis method returns the underlyingPotionEffectbooleanThis returns whether thisPotionEffecthas expired.
-
Constructor Details
-
ActivePotionEffect
public ActivePotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect) Constructs a newActivePotionEffectwith the providedPotionEffect.- Parameters:
effect- The effect that's been applied.
-
-
Method Details
-
hasExpired
public boolean hasExpired()This returns whether thisPotionEffecthas expired.- Returns:
- Whether the effect wore off.
-
getPotionEffect
@NotNull public @NotNull org.bukkit.potion.PotionEffect getPotionEffect()This method returns the underlyingPotionEffect- Returns:
- The actual
PotionEffect.
-