Enum Class WeaponType

java.lang.Object
java.lang.Enum<WeaponType>
emu.grasscutter.game.props.WeaponType
All Implemented Interfaces:
Serializable, Comparable<WeaponType>, Constable

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

    • WEAPON_NONE

      public static final WeaponType WEAPON_NONE
    • WEAPON_SWORD_ONE_HAND

      public static final WeaponType WEAPON_SWORD_ONE_HAND
    • WEAPON_CROSSBOW

      public static final WeaponType WEAPON_CROSSBOW
    • WEAPON_STAFF

      public static final WeaponType WEAPON_STAFF
    • WEAPON_DOUBLE_DAGGER

      public static final WeaponType WEAPON_DOUBLE_DAGGER
    • WEAPON_KATANA

      public static final WeaponType WEAPON_KATANA
    • WEAPON_SHURIKEN

      public static final WeaponType WEAPON_SHURIKEN
    • WEAPON_STICK

      public static final WeaponType WEAPON_STICK
    • WEAPON_SPEAR

      public static final WeaponType WEAPON_SPEAR
    • WEAPON_SHIELD_SMALL

      public static final WeaponType WEAPON_SHIELD_SMALL
    • WEAPON_CATALYST

      public static final WeaponType WEAPON_CATALYST
    • WEAPON_CLAYMORE

      public static final WeaponType WEAPON_CLAYMORE
    • WEAPON_BOW

      public static final WeaponType WEAPON_BOW
    • WEAPON_POLE

      public static final WeaponType WEAPON_POLE
  • Method Details

    • values

      public static WeaponType[] 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 WeaponType 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
    • getValue

      public int getValue()
    • getEnergyGainInitialProbability

      public int getEnergyGainInitialProbability()
    • getEnergyGainIncreaseProbability

      public int getEnergyGainIncreaseProbability()
    • getTypeByValue

      public static WeaponType getTypeByValue(int value)
    • getTypeByName

      public static WeaponType getTypeByName(String name)