public static enum ProtectionEnchantment.Type extends Enum<ProtectionEnchantment.Type>
Enum Constant and Description |
---|
ALL |
EXPLOSION |
FALL |
FIRE |
PROJECTILE |
Modifier and Type | Field and Description |
---|---|
private int |
basePower |
private String |
name |
private int |
powerPerLevel |
Modifier and Type | Method and Description |
---|---|
int |
getBasePower() |
int |
getPowerPerLevel() |
static ProtectionEnchantment.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtectionEnchantment.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtectionEnchantment.Type ALL
public static final ProtectionEnchantment.Type FIRE
public static final ProtectionEnchantment.Type FALL
public static final ProtectionEnchantment.Type EXPLOSION
public static final ProtectionEnchantment.Type PROJECTILE
private final String name
private final int basePower
private final int powerPerLevel
public static ProtectionEnchantment.Type[] values()
for (ProtectionEnchantment.Type c : ProtectionEnchantment.Type.values()) System.out.println(c);
public static ProtectionEnchantment.Type 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 int getBasePower()
public int getPowerPerLevel()