Enum Class BuffType
- All Implemented Interfaces:
Serializable,Comparable<BuffType>,Constable
プラグイン内で使用される様々なバフタイプを定義する列挙型
各バフタイプには、対応するマテリアルタイプとポーション効果のリストが関連付けられています。 これらのバフは、ゲームプレイ中にプレイヤーに適用される効果を表します。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription火炎耐性を付与するバフジャンプ力を強化するバフ体力を回復するバフダメージ耐性を付与するバフ移動速度を上昇させるバフ攻撃力を強化するバフ -
Method Summary
Modifier and TypeMethodDescriptionstatic BuffTypegetBuffTypeByItemStack(org.bukkit.inventory.ItemStack itemStack) アイテムスタックからそれに対応するバフタイプを取得する静的メソッドorg.bukkit.inventory.ItemStackこのバフタイプに関連付けられたアイテムスタックを取得するメソッドList<org.bukkit.potion.PotionEffectType> このバフタイプに関連付けられたポーション効果タイプのリストを取得するメソッドstatic BuffTypeReturns the enum constant of this class with the specified name.static BuffType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPEED
移動速度を上昇させるバフ -
STRENGTH
攻撃力を強化するバフ -
REGENERATION
体力を回復するバフ -
RESISTANCE
ダメージ耐性を付与するバフ -
JUMP
ジャンプ力を強化するバフ -
FIRE
火炎耐性を付与するバフ
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()このバフタイプに関連付けられたアイテムスタックを取得するメソッド- Returns:
- このバフタイプのマテリアルから生成されたアイテムスタック
-
getPotionEffectTypes
このバフタイプに関連付けられたポーション効果タイプのリストを取得するメソッド- Returns:
- ポーション効果タイプのリスト
-
getBuffTypeByItemStack
アイテムスタックからそれに対応するバフタイプを取得する静的メソッド指定されたアイテムスタックのマテリアルタイプに基づいて、対応するBuffTypeを返します。 一致するバフタイプがない場合はnullを返します。
- Parameters:
itemStack- 調査するアイテムスタック- Returns:
- 対応するBuffType、または一致するものがない場合はnull
-