Enum Class KnowledgeLevel
java.lang.Object
java.lang.Enum<KnowledgeLevel>
io.github.addoncommunity.galactifun.base.items.knowledge.KnowledgeLevel
- All Implemented Interfaces:
Serializable, Comparable<KnowledgeLevel>, Constable
The amount of the information about a
PlanetaryWorld known by a player-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddLore(List<net.kyori.adventure.text.Component> lore, PlanetaryWorld world) static KnowledgeLevelget(org.bukkit.entity.Player p, PlanetaryWorld world) voidset(org.bukkit.entity.Player p, PlanetaryWorld world) static KnowledgeLevelReturns the enum constant of this class with the specified name.static KnowledgeLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Just the bare minimum: distance -
BASIC
Effects, daylight cycle, and atmospheric pressure -
ADVANCED
Atmospheric composition, gravity, and anything else we might add in the future
-
-
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
-
get
public static KnowledgeLevel get(@Nonnull org.bukkit.entity.Player p, @Nonnull PlanetaryWorld world) -
addLore
public abstract void addLore(@Nonnull List<net.kyori.adventure.text.Component> lore, @Nonnull PlanetaryWorld world) -
set
-