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

public enum KnowledgeLevel extends Enum<KnowledgeLevel>
The amount of the information about a PlanetaryWorld known by a player
  • Enum Constant Details

    • NONE

      public static final KnowledgeLevel NONE
      Just the bare minimum: distance
    • BASIC

      public static final KnowledgeLevel BASIC
      Effects, daylight cycle, and atmospheric pressure
    • ADVANCED

      public static final KnowledgeLevel ADVANCED
      Atmospheric composition, gravity, and anything else we might add in the future
  • Method Details

    • values

      public static KnowledgeLevel[] 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

      public static KnowledgeLevel valueOf(String name)
      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 name
      NullPointerException - 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

      public void set(@Nonnull org.bukkit.entity.Player p, @Nonnull PlanetaryWorld world)