Enum Class Enchantment.JavaEnchantment
java.lang.Object
java.lang.Enum<Enchantment.JavaEnchantment>
org.geysermc.geyser.inventory.item.Enchantment.JavaEnchantment
- All Implemented Interfaces:
Serializable
,Comparable<Enchantment.JavaEnchantment>
,Constable
- Enclosing class:
- Enchantment
Enchantments classified by their Java index
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic String[]
A list of all enchantment Java identifiers for use with command suggestions. -
Method Summary
Modifier and TypeMethodDescriptionstatic Enchantment.JavaEnchantment
getByJavaIdentifier(String javaIdentifier)
static Enchantment.JavaEnchantment
of(int index)
static Enchantment.JavaEnchantment
Returns the enum constant of this class with the specified name.static Enchantment.JavaEnchantment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTECTION
-
FIRE_PROTECTION
-
FEATHER_FALLING
-
BLAST_PROTECTION
-
PROJECTILE_PROTECTION
-
RESPIRATION
-
AQUA_AFFINITY
-
THORNS
-
DEPTH_STRIDER
-
FROST_WALKER
-
BINDING_CURSE
-
SOUL_SPEED
-
SHARPNESS
-
SMITE
-
BANE_OF_ARTHROPODS
-
KNOCKBACK
-
FIRE_ASPECT
-
LOOTING
-
SWEEPING
-
EFFICIENCY
-
SILK_TOUCH
-
UNBREAKING
-
FORTUNE
-
POWER
-
PUNCH
-
FLAME
-
INFINITY
-
LUCK_OF_THE_SEA
-
LURE
-
LOYALTY
-
IMPALING
-
RIPTIDE
-
CHANNELING
-
MULTISHOT
-
QUICK_CHARGE
-
PIERCING
-
MENDING
-
VANISHING_CURSE
-
-
Field Details
-
ALL_JAVA_IDENTIFIERS
A list of all enchantment Java identifiers for use with command suggestions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
-
getByJavaIdentifier
-