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 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 TypeMethodDescriptionint
This method returns the amount of exposure applied to a player every run of theRadiationTask
for this radiation level.getLore()
int
This method returns the level for the radiation effect to use in conjunction with this level ofRadioactive
.static Radioactivity
Returns 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 thePlayer
does not act quickly. -
VERY_HIGH
A very high level of radiation will be deadly. ThePlayer
should not take this too lightly... -
VERY_DEADLY
This is the deadliest level of radiation. ThePlayer
has 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 theRadiationTask
for 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.
-