public enum EnchantmentTarget extends Enum<EnchantmentTarget>
Enchantment
列挙型定数と説明 |
---|
ALL
Allows the Enchantment to be placed on all items
|
ARMOR
Allows the Enchantment to be placed on armor
|
ARMOR_FEET
Allows the Enchantment to be placed on feet slot armor
|
ARMOR_HEAD
Allows the Enchantment to be placed on head slot armor
|
ARMOR_LEGS
Allows the Enchantment to be placed on leg slot armor
|
ARMOR_TORSO
Allows the Enchantment to be placed on torso slot armor
|
BOW
Allows the Enchantment to be placed on bows.
|
FISHING_ROD
Allows the Enchantment to be placed on fishing rods.
|
TOOL
Allows the Enchantment to be placed on tools (spades, pickaxe, hoes,
axes)
|
WEAPON
Allows the Enchantment to be placed on weapons (swords)
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
includes(ItemStack item)
Check whether this target includes the specified item.
|
abstract boolean |
includes(Material item)
Check whether this target includes the specified item.
|
static EnchantmentTarget |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static EnchantmentTarget[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final EnchantmentTarget ALL
public static final EnchantmentTarget ARMOR
public static final EnchantmentTarget ARMOR_FEET
public static final EnchantmentTarget ARMOR_LEGS
public static final EnchantmentTarget ARMOR_TORSO
public static final EnchantmentTarget ARMOR_HEAD
public static final EnchantmentTarget WEAPON
public static final EnchantmentTarget TOOL
public static final EnchantmentTarget BOW
public static final EnchantmentTarget FISHING_ROD
public static EnchantmentTarget[] values()
for(EnchantmentTarget c: EnchantmentTarget.values()) System.out.println(c);
public static EnchantmentTarget valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合public abstract boolean includes(Material item)
item
- The item to checkpublic boolean includes(ItemStack item)
item
- The item to checkCopyright © 2016. All rights reserved.