Class ActivePotionEffect

java.lang.Object
be.seeseemelk.mockbukkit.potion.ActivePotionEffect

public final class ActivePotionEffect extends Object
This class represents an active PotionEffect which was applied to a LivingEntity.
See Also:
  • Constructor Details

    • ActivePotionEffect

      public ActivePotionEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect)
  • Method Details

    • hasExpired

      public boolean hasExpired()
      This returns whether this PotionEffect has expired.
      Returns:
      Whether the effect wore off.
    • getPotionEffect

      @NotNull public @NotNull org.bukkit.potion.PotionEffect getPotionEffect()
      This method returns the underlying PotionEffect
      Returns:
      The actual PotionEffect.