Enum Class WeaponStatsMode
- All Implemented Interfaces:
Serializable, Comparable<WeaponStatsMode>, java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd the requested amounts on top of the damage of the attacker's weapon.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.Deal the requested amount as it is.Use only the requested amounts. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeaponStatsModeReturns the enum constant of this class with the specified name.static WeaponStatsMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
Add the requested amounts on top of the damage of the attacker's weapon. -
REPLACE
Use only the requested amounts. The weapon's own damage is left out. -
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
Deal the requested amount as it is. The calculating plugin should not touch the hit at all.
-
-
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
-