Enum Class PreparedDamage

java.lang.Object
java.lang.Enum<PreparedDamage>
xericker.arenalegends.handler.entity.contract.PreparedDamage
All Implemented Interfaces:
Serializable, Comparable<PreparedDamage>, Constable

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

    • SET_PERCENT_OF_MAX_HEALTH

      public static final PreparedDamage SET_PERCENT_OF_MAX_HEALTH
    • ADD_PERCENT_OF_MAX_HEALTH

      public static final PreparedDamage ADD_PERCENT_OF_MAX_HEALTH
    • ADD_DAMAGE

      public static final PreparedDamage ADD_DAMAGE
    • SET_DAMAGE

      public static final PreparedDamage SET_DAMAGE
  • Method Details

    • values

      public static PreparedDamage[] 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 PreparedDamage 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
    • set

      public void set(org.bukkit.entity.Entity target, double value)
    • calculate

      public static double calculate(org.bukkit.entity.Entity holder, org.bukkit.entity.LivingEntity target, double damage)