Enum Class MapleWeaponType

java.lang.Object
java.lang.Enum<MapleWeaponType>
client.inventory.MapleWeaponType
All Implemented Interfaces:
Serializable, Comparable<MapleWeaponType>, Constable

public enum MapleWeaponType extends Enum<MapleWeaponType>
武器類型的列舉,定義各類武器的傷害乘數與基礎熟練度。

每個常數(以繁體中文命名,如 雙手劍火槍)持有:

  • damageMultiplier:最大傷害倍率,供傷害計算公式使用
  • baseMastery:未習得熟練技能時的基礎熟練度百分比

server.MapleItemInformationProvider 根據武器道具 ID 映射至對應類型, 再由 handling.channel.handler.DamageParse 在計算攻擊傷害時取用乘數。 未知 常數作為查詢失敗時的預設回傳值。

  • Enum Constant Details

  • Method Details

    • values

      public static MapleWeaponType[] 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 MapleWeaponType 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
    • getMaxDamageMultiplier

      public final float getMaxDamageMultiplier()
    • getBaseMastery

      public final int getBaseMastery()