public enum EnchantmentType extends Enum<EnchantmentType>
| Enum Constant and Description |
|---|
DAMAGE_ARTHOPODS |
DURABILITY |
EFFICIENCY |
EXPLOSION_PROTECTION |
FALL_PROTECTION |
FIRE_ASPECT |
FIRE_PROTECTION |
FLAME |
FORTUNE |
INFINITY |
KNOCKBACK |
LOOTING |
LUCK |
LURE |
POWER |
PROJECTILE_PROTECTION |
PROTECTION |
PUNCH |
SHARPNESS |
SILK_TOUCH |
SMITE |
THORNS |
WATER_BREATHING |
WATER_WALKER |
WATER_WORKER |
| Modifier and Type | Method and Description |
|---|---|
static EnchantmentType |
byId(int data) |
int |
getMaxLevel() |
String |
getName() |
int |
id() |
static EnchantmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnchantmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnchantmentType PROTECTION
public static final EnchantmentType FIRE_PROTECTION
public static final EnchantmentType FALL_PROTECTION
public static final EnchantmentType EXPLOSION_PROTECTION
public static final EnchantmentType PROJECTILE_PROTECTION
public static final EnchantmentType THORNS
public static final EnchantmentType WATER_BREATHING
public static final EnchantmentType WATER_WALKER
public static final EnchantmentType WATER_WORKER
public static final EnchantmentType SHARPNESS
public static final EnchantmentType SMITE
public static final EnchantmentType DAMAGE_ARTHOPODS
public static final EnchantmentType KNOCKBACK
public static final EnchantmentType FIRE_ASPECT
public static final EnchantmentType LOOTING
public static final EnchantmentType EFFICIENCY
public static final EnchantmentType SILK_TOUCH
public static final EnchantmentType DURABILITY
public static final EnchantmentType FORTUNE
public static final EnchantmentType POWER
public static final EnchantmentType PUNCH
public static final EnchantmentType FLAME
public static final EnchantmentType INFINITY
public static final EnchantmentType LUCK
public static final EnchantmentType LURE
public static EnchantmentType[] values()
for (EnchantmentType c : EnchantmentType.values()) System.out.println(c);
public static EnchantmentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static EnchantmentType byId(int data)
public int id()
public String getName()
public int getMaxLevel()
Copyright © 2017–2019 NukkitX. All rights reserved.