类 PotionEffectTypeWrapper

java.lang.Object
org.bukkit.potion.PotionEffectType
org.bukkit.potion.PotionEffectTypeWrapper
所有已实现的接口:
Keyed

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

  • 方法详细资料

    • getDurationModifier

      public double getDurationModifier()
      从类复制的说明: PotionEffectType
      返回应用于此效果类型的持续时间.

      原文:Returns the duration modifier applied to effects of this type.

      指定者:
      getDurationModifier 在类中 PotionEffectType
      返回:
      持续时间
    • getName

      @NotNull public @NotNull String getName()
      从类复制的说明: PotionEffectType
      返回本状态效果类型的名称.

      原文:Returns the name of this effect type.

      指定者:
      getName 在类中 PotionEffectType
      返回:
      状态效果名
    • getType

      获取绑定到此包装类的药水效果类型.

      原文:Get the potion type bound to this wrapper.

      返回:
      药水效果类型
    • isInstant

      public boolean isInstant()
      从类复制的说明: PotionEffectType
      返回本效果是否为瞬时型效果.

      原文:Returns whether the effect of this type happens once, immediately.

      指定者:
      isInstant 在类中 PotionEffectType
      返回:
      是否为瞬时型效果
    • getColor

      @NotNull public @NotNull Color getColor()
      从类复制的说明: PotionEffectType
      返回本效果的颜色.

      原文:Returns the color of this effect type.

      指定者:
      getColor 在类中 PotionEffectType
      返回:
      颜色