接口 ConsumableRemoveEffect

所有超级接口:
ConfigurationSerializable, ConsumableEffect

public interface ConsumableRemoveEffect extends ConsumableEffect
表示物品被消耗时要移除的效果。
  • 方法详细资料

    • getEffectTypes

      获取消耗此物品时可能移除的效果。

      原文:Gets the effects which may be removed by this item when consumed.

      返回:
      效果
    • setEffectTypes

      void setEffectTypes(@NotNull @NotNull List<PotionEffectType> effects)
      设置消耗此物品时可能移除的效果。

      原文:Sets the effects which may be removed by this item when consumed.

      参数:
      effects - 新的效果
    • addEffectType

      添加一个消耗此物品时可能应用的效果。

      原文:Adds an effect which may be applied by this item when consumed.

      参数:
      effect - 效果
      返回:
      添加的效果