Enum Class WeaponStatsMode

java.lang.Object
java.lang.Enum<WeaponStatsMode>
studio.magemonkey.codex.api.damage.WeaponStatsMode
All Implemented Interfaces:
Serializable, Comparable<WeaponStatsMode>, java.lang.constant.Constable

public enum WeaponStatsMode extends Enum<WeaponStatsMode>
How much of the attacker's equipment the plugin that calculates the damage should bring into a hit described by a DamageRequest.

Codex only carries this value. What each mode does is up to the plugin that reads the request; the descriptions below are what that plugin is asked to do.

  • Enum Constant Details

    • ADD

      public static final WeaponStatsMode ADD
      Add the requested amounts on top of the damage of the attacker's weapon.
    • REPLACE

      public static final WeaponStatsMode REPLACE
      Use only the requested amounts. The weapon's own damage is left out.
    • IGNORE

      public static final WeaponStatsMode IGNORE
      Use only the requested amounts and skip the weapon's on-hit effects, but still apply the defender's side of the calculation, such as defense, dodge and block.
    • RAW

      public static final WeaponStatsMode RAW
      Deal the requested amount as it is. The calculating plugin should not touch the hit at all.
  • Method Details

    • values

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