Class PotionEffectTypeWrapper

java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper
All Implemented Interfaces:
Keyed

public class PotionEffectTypeWrapper extends PotionEffectType
  • Constructor Details

    • PotionEffectTypeWrapper

      protected PotionEffectTypeWrapper(int id, @NotNull String name)
  • Method Details

    • getDurationModifier

      public double getDurationModifier()
      Description copied from class: PotionEffectType
      Returns the duration modifier applied to effects of this type.
      Specified by:
      getDurationModifier in class PotionEffectType
      Returns:
      duration modifier
    • getName

      @NotNull public String getName()
      Description copied from class: PotionEffectType
      Returns the name of this effect type.
      Specified by:
      getName in class PotionEffectType
      Returns:
      The name of this effect type
    • getType

      @NotNull public PotionEffectType getType()
      Get the potion type bound to this wrapper.
      Returns:
      The potion effect type
    • isInstant

      public boolean isInstant()
      Description copied from class: PotionEffectType
      Returns whether the effect of this type happens once, immediately.
      Specified by:
      isInstant in class PotionEffectType
      Returns:
      whether this type is normally instant
    • getColor

      @NotNull public Color getColor()
      Description copied from class: PotionEffectType
      Returns the color of this effect type.
      Specified by:
      getColor in class PotionEffectType
      Returns:
      the color