接口 OminousBottleMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface OminousBottleMeta extends ItemMeta
代表不祥之瓶的物品元数据.

原文: Represents meta for an Ominous Bottle.

  • 方法详细资料

    • hasAmplifier

      boolean hasAmplifier()
      检查是否设置了不祥之瓶的厄运效果放大器.

      原文: Checks for the presence of an amplifier.

      返回:
      如果设置了自定义的厄运效果放大器则返回 true
    • getAmplifier

      int getAmplifier()
      获取不祥之瓶的厄运效果放大器等级.

      译注: 厄运效果(不祥之兆)的等级会影响突袭的波次.

      插件在调用此方法前应检查 hasAmplifier() 是否返回 true.

      原文: Gets the amplifier amount for an Ominous Bottle's bad omen effect.

      Plugins should check that hasAmplifier() returns true before calling this method.

      返回:
      厄运效果放大器等级
    • setAmplifier

      void setAmplifier(int amplifier)
      设置不祥之瓶的厄运效果放大器等级.

      原文: Sets the amplifier amount for an Ominous Bottle's bad omen effect.

      参数:
      amplifier - 厄运效果放大器等级, 应在 0 到 4 之间(包含边界)
    • clone

      指定者:
      clone 在接口中 ItemMeta