Enum Class DropRateModifierType
java.lang.Object
java.lang.Enum<DropRateModifierType>
com.github.crashdemons.miningtrophies.modifiers.DropRateModifierType
- All Implemented Interfaces:
Serializable
,Comparable<DropRateModifierType>
,Constable
Indicates the type of modifier to the effective droprate.
- Since:
- 5.2.16-SNAPSHOT
- Author:
- crashdemons (crashenator at gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionadds a constant value to the droprateadds a VALUE*droprate to the droprate.adds a value to the droprate where the value is a multiple of a provided effectiveness level.Multiplies the droprate against a value.Performs no change to the droprate.Sets the droprate to a constant value, erasing changes by modifiers before it. -
Method Summary
Modifier and TypeMethodDescriptionstatic DropRateModifierType
Returns the enum constant of this class with the specified name.static DropRateModifierType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_CONSTANT
adds a constant value to the droprate -
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
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
Multiplies the droprate against a value. Values under 1 reduce the droprate, values above 1 are equivalent to additive multipliers -
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
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
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
-