Enum Class BuffType

java.lang.Object
java.lang.Enum<BuffType>
com.karasu256.one_shot_glory.util.BuffType
All Implemented Interfaces:
Serializable, Comparable<BuffType>, Constable

public enum BuffType extends Enum<BuffType>
プラグイン内で使用される様々なバフタイプを定義する列挙型

各バフタイプには、対応するマテリアルタイプとポーション効果のリストが関連付けられています。 これらのバフは、ゲームプレイ中にプレイヤーに適用される効果を表します。

  • Enum Constant Details

    • SPEED

      public static final BuffType SPEED
      移動速度を上昇させるバフ
    • STRENGTH

      public static final BuffType STRENGTH
      攻撃力を強化するバフ
    • REGENERATION

      public static final BuffType REGENERATION
      体力を回復するバフ
    • RESISTANCE

      public static final BuffType RESISTANCE
      ダメージ耐性を付与するバフ
    • JUMP

      public static final BuffType JUMP
      ジャンプ力を強化するバフ
    • FIRE

      public static final BuffType FIRE
      火炎耐性を付与するバフ
  • Method Details

    • values

      public static BuffType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BuffType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
      このバフタイプに関連付けられたアイテムスタックを取得するメソッド
      Returns:
      このバフタイプのマテリアルから生成されたアイテムスタック
    • getPotionEffectTypes

      public List<org.bukkit.potion.PotionEffectType> getPotionEffectTypes()
      このバフタイプに関連付けられたポーション効果タイプのリストを取得するメソッド
      Returns:
      ポーション効果タイプのリスト
    • getBuffTypeByItemStack

      public static BuffType getBuffTypeByItemStack(org.bukkit.inventory.ItemStack itemStack)
      アイテムスタックからそれに対応するバフタイプを取得する静的メソッド

      指定されたアイテムスタックのマテリアルタイプに基づいて、対応するBuffTypeを返します。 一致するバフタイプがない場合はnullを返します。

      Parameters:
      itemStack - 調査するアイテムスタック
      Returns:
      対応するBuffType、または一致するものがない場合はnull