Enum Class DropRateModifierType

java.lang.Object
java.lang.Enum<DropRateModifierType>
com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
All Implemented Interfaces:
Serializable, Comparable<DropRateModifierType>, Constable

public enum DropRateModifierType extends Enum<DropRateModifierType>
Indicates the type of modifier to the effective droprate.
Since:
5.2.16-SNAPSHOT
Author:
crashdemons (crashenator at gmail.com)
  • Enum Constant Details

    • ADD_CONSTANT

      public static final DropRateModifierType ADD_CONSTANT
      adds a constant value to the droprate
    • ADD_MULTIPLE

      public static final DropRateModifierType ADD_MULTIPLE
      adds a VALUE*droprate to the droprate. This is equivalent to a multiplier of 1+VALUE. Positive values increase droprate by a fraction, negative values will reduuce the droprate by a fraction. In this way, additive multipliers can be thought of as a delta value.
    • ADD_MULTIPLE_PER_LEVEL

      public static final DropRateModifierType ADD_MULTIPLE_PER_LEVEL
      adds a value to the droprate where the value is a multiple of a provided effectiveness level. this is equivalent to a multiplier of (1+VALUE*LEVEL)
    • MULTIPLY

      public static final DropRateModifierType MULTIPLY
      Multiplies the droprate against a value. Values under 1 reduce the droprate, values above 1 are equivalent to additive multipliers
    • SET_CONSTANT

      public static final DropRateModifierType SET_CONSTANT
      Sets the droprate to a constant value, erasing changes by modifiers before it. (further modifiers can still be applied after this though)
      Since:
      5.2.17-SNAPSHOT
    • NO_EFFECT

      public static final DropRateModifierType NO_EFFECT
      Performs no change to the droprate. This is a dummy modifier used for a placeholder, plugin-determined logic, or indication to other plugins even when no action is desired.
      Since:
      5.2.17-SNAPSHOT
  • Method Details

    • values

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