Enum Class Radioactivity
- All Implemented Interfaces:
Serializable,Comparable<Radioactivity>,Constable
This enum holds all available levels of
Radioactivity.
The higher the level the more severe the effect of radiation will be.- Author:
- TheBusyBiscuit
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is a high level of radiation.This represents a low level of radiation.This represents a medium level of radiation.This is the deadliest level of radiation.A very high level of radiation will be deadly. -
Method Summary
Modifier and TypeMethodDescriptionintThis method returns the amount of exposure applied to a player every run of theRadiationTaskfor this radiation level.getLore()intThis method returns the level for the radiation effect to use in conjunction with this level ofRadioactive.static RadioactivityReturns the enum constant of this class with the specified name.static Radioactivity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
This represents a low level of radiation. It will still cause damage but will take a while before it becomes deadly. -
MODERATE
This represents a medium level of radiation. This can be considered the default. -
HIGH
This is a high level of radiation. It will cause death if thePlayerdoes not act quickly. -
VERY_HIGH
A very high level of radiation will be deadly. ThePlayershould not take this too lightly... -
VERY_DEADLY
This is the deadliest level of radiation. ThePlayerhas basically no chance to protect themselves in time. It will cause certain death.
-
-
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
-
getExposureModifier
public int getExposureModifier()This method returns the amount of exposure applied to a player every run of theRadiationTaskfor this radiation level.- Returns:
- The exposure amount applied per run.
-
getLore
-
getRadiationLevel
public int getRadiationLevel()This method returns the level for the radiation effect to use in conjunction with this level ofRadioactive. It is basically the index of this enum constant.- Returns:
- The level of radiation associated with this constant.
-