Enum Class Enchantment

java.lang.Object
java.lang.Enum<Enchantment>
org.geysermc.geyser.inventory.item.Enchantment
All Implemented Interfaces:
Serializable, Comparable<Enchantment>, Constable

public enum Enchantment extends Enum<Enchantment>
  • Enum Constant Details

    • PROTECTION

      public static final Enchantment PROTECTION
    • FIRE_PROTECTION

      public static final Enchantment FIRE_PROTECTION
    • FEATHER_FALLING

      public static final Enchantment FEATHER_FALLING
    • BLAST_PROTECTION

      public static final Enchantment BLAST_PROTECTION
    • PROJECTILE_PROTECTION

      public static final Enchantment PROJECTILE_PROTECTION
    • THORNS

      public static final Enchantment THORNS
    • RESPIRATION

      public static final Enchantment RESPIRATION
    • DEPTH_STRIDER

      public static final Enchantment DEPTH_STRIDER
    • AQUA_AFFINITY

      public static final Enchantment AQUA_AFFINITY
    • SHARPNESS

      public static final Enchantment SHARPNESS
    • SMITE

      public static final Enchantment SMITE
    • BANE_OF_ARTHROPODS

      public static final Enchantment BANE_OF_ARTHROPODS
    • KNOCKBACK

      public static final Enchantment KNOCKBACK
    • FIRE_ASPECT

      public static final Enchantment FIRE_ASPECT
    • LOOTING

      public static final Enchantment LOOTING
    • EFFICIENCY

      public static final Enchantment EFFICIENCY
    • SILK_TOUCH

      public static final Enchantment SILK_TOUCH
    • UNBREAKING

      public static final Enchantment UNBREAKING
    • FORTUNE

      public static final Enchantment FORTUNE
    • POWER

      public static final Enchantment POWER
    • PUNCH

      public static final Enchantment PUNCH
    • FLAME

      public static final Enchantment FLAME
    • INFINITY

      public static final Enchantment INFINITY
    • LUCK_OF_THE_SEA

      public static final Enchantment LUCK_OF_THE_SEA
    • LURE

      public static final Enchantment LURE
    • FROST_WALKER

      public static final Enchantment FROST_WALKER
    • MENDING

      public static final Enchantment MENDING
    • BINDING_CURSE

      public static final Enchantment BINDING_CURSE
    • VANISHING_CURSE

      public static final Enchantment VANISHING_CURSE
    • IMPALING

      public static final Enchantment IMPALING
    • RIPTIDE

      public static final Enchantment RIPTIDE
    • LOYALTY

      public static final Enchantment LOYALTY
    • CHANNELING

      public static final Enchantment CHANNELING
    • MULTISHOT

      public static final Enchantment MULTISHOT
    • PIERCING

      public static final Enchantment PIERCING
    • QUICK_CHARGE

      public static final Enchantment QUICK_CHARGE
    • SOUL_SPEED

      public static final Enchantment SOUL_SPEED
  • Method Details

    • values

      public static Enchantment[] 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

      public static Enchantment valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getByJavaIdentifier

      public static Enchantment getByJavaIdentifier(String javaIdentifier)
    • getByBedrockId

      public static Enchantment getByBedrockId(int bedrockId)
    • getJavaIdentifier

      public String getJavaIdentifier()