public enum EnchantmentType extends java.lang.Enum<EnchantmentType> implements IExtensibleEnum
列挙型定数と説明 |
---|
ALL |
ARMOR |
ARMOR_CHEST |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
BOW |
BREAKABLE |
CROSSBOW |
DIGGER |
FISHING_ROD |
TRIDENT |
WEAPON |
WEARABLE |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canEnchantItem(Item itemIn)
Return true if the item passed can be enchanted by a enchantment of this type.
|
static EnchantmentType |
create(java.lang.String name,
java.util.function.Predicate<Item> delegate) |
static EnchantmentType |
valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static EnchantmentType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
init
public static final EnchantmentType ALL
public static final EnchantmentType ARMOR
public static final EnchantmentType ARMOR_FEET
public static final EnchantmentType ARMOR_LEGS
public static final EnchantmentType ARMOR_CHEST
public static final EnchantmentType ARMOR_HEAD
public static final EnchantmentType WEAPON
public static final EnchantmentType DIGGER
public static final EnchantmentType FISHING_ROD
public static final EnchantmentType TRIDENT
public static final EnchantmentType BREAKABLE
public static final EnchantmentType BOW
public static final EnchantmentType WEARABLE
public static final EnchantmentType CROSSBOW
public static EnchantmentType[] values()
for(EnchantmentType c: EnchantmentType.values()) System.out.println(c);
public static EnchantmentType valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public static EnchantmentType create(java.lang.String name, java.util.function.Predicate<Item> delegate)
public boolean canEnchantItem(Item itemIn)