public enum Enchantment extends Enum<Enchantment>
Modifier and Type | Method and Description |
---|---|
String[] |
getAliases() |
static Enchantment |
getByName(String name) |
String |
getId() |
String |
toString() |
static Enchantment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Enchantment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Enchantment AQUA_AFFINITY
public static final Enchantment BANE_OF_ARTHROPODS
public static final Enchantment BLAST_PROTECTION
public static final Enchantment CHANNELING
public static final Enchantment BINDING_CURSE
public static final Enchantment VANISHING_CURSE
public static final Enchantment DEPTH_STRIDER
public static final Enchantment EFFICIENCY
public static final Enchantment FEATHER_FALLING
public static final Enchantment FIRE_ASPECT
public static final Enchantment FIRE_PROTECTION
public static final Enchantment FLAME
public static final Enchantment FORTUNE
public static final Enchantment FROST_WALKER
public static final Enchantment IMPALING
public static final Enchantment INFINITY
public static final Enchantment KNOCKBACK
public static final Enchantment LOOTING
public static final Enchantment LOYALTY
public static final Enchantment LUCK_OF_THE_SEA
public static final Enchantment LURE
public static final Enchantment MENDING
public static final Enchantment MULTISHOT
public static final Enchantment PIERCING
public static final Enchantment POWER
public static final Enchantment PROJECTILE_PROTECTION
public static final Enchantment PROTECTION
public static final Enchantment PUNCH
public static final Enchantment QUICK_CHARGE
public static final Enchantment RESPIRATION
public static final Enchantment RIPTIDE
public static final Enchantment SHARPNESS
public static final Enchantment SILK_TOUCH
public static final Enchantment SMITE
public static final Enchantment SOUL_SPEED
public static final Enchantment SWEEPING
public static final Enchantment SWIFT_SNEAK
public static final Enchantment THORNS
public static final Enchantment UNBREAKING
public static Enchantment[] values()
for (Enchantment c : Enchantment.values()) System.out.println(c);
public static Enchantment 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 String getId()
public String[] getAliases()
public String toString()
toString
in class Enum<Enchantment>
public static Enchantment getByName(String name)