Enum Class ParticleReducer
java.lang.Object
java.lang.Enum<ParticleReducer>
me.gamercoder215.starcosmetics.api.cosmetics.particle.ParticleReducer
- All Implemented Interfaces:
Serializable,Comparable<ParticleReducer>,Constable
Represents a modifier applied to the amount of Particles used in a shape.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHigh reduction (divide/multiply by 5)Maximum reduction (divide/multiply by 10)Minimal reduction (divide/multiply by 2)Moderate reduction (divide/multiply by 3)No reduction (divide/multiply by 1)Very high reduction (divide/multiply by 7) -
Method Summary
Modifier and TypeMethodDescriptionintFetches the divider used to reduce the particle count.static ParticleReducerReturns the enum constant of this class with the specified name.static ParticleReducer[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
No reduction (divide/multiply by 1) -
MINIMAL
Minimal reduction (divide/multiply by 2) -
MODERATE
Moderate reduction (divide/multiply by 3) -
HIGH
High reduction (divide/multiply by 5) -
VERY_HIGH
Very high reduction (divide/multiply by 7) -
MAXIMUM
Maximum reduction (divide/multiply by 10)
-
-
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
-
getModifier
public int getModifier()Fetches the divider used to reduce the particle count.- Returns:
- Divider of this ParticleReducer
-