类 PotionEffectTypeWrapper

java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper

public class PotionEffectTypeWrapper extends PotionEffectType
  • 构造器详细资料

    • PotionEffectTypeWrapper

      protected PotionEffectTypeWrapper(int id)
  • 方法详细资料

    • getDurationModifier

      public double getDurationModifier()
      从类复制的说明: PotionEffectType
      Returns the duration modifier applied to effects of this type.
      指定者:
      getDurationModifier 在类中 PotionEffectType
      返回:
      duration modifier
    • getName

      public String getName()
      从类复制的说明: PotionEffectType
      Returns the name of this effect type.
      指定者:
      getName 在类中 PotionEffectType
      返回:
      The name of this effect type
    • getType

      public PotionEffectType getType()
      Get the potion type bound to this wrapper.
      返回:
      The potion effect type
    • isInstant

      public boolean isInstant()
      从类复制的说明: PotionEffectType
      Returns whether the effect of this type happens once, immediately.
      指定者:
      isInstant 在类中 PotionEffectType
      返回:
      whether this type is normally instant
    • getColor

      public Color getColor()
      从类复制的说明: PotionEffectType
      Returns the color of this effect type.
      指定者:
      getColor 在类中 PotionEffectType
      返回:
      the color