Enum Class NewsType

java.lang.Object
java.lang.Enum<NewsType>
org.geysermc.floodgate.news.NewsType
All Implemented Interfaces:
Serializable, Comparable<NewsType>, Constable

public enum NewsType extends Enum<NewsType>
  • Enum Constant Details

    • BUILD_SPECIFIC

      public static final NewsType BUILD_SPECIFIC
    • CHECK_AFTER

      public static final NewsType CHECK_AFTER
    • ANNOUNCEMENT

      public static final NewsType ANNOUNCEMENT
    • CONFIG_SPECIFIC

      public static final NewsType CONFIG_SPECIFIC
  • Method Details

    • values

      public static NewsType[] 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 NewsType 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
    • getByName

      public static NewsType getByName(String newsType)
    • read

      public ItemData read(com.google.gson.JsonObject data)