Enum Class NewsItemAction

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

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

    • ON_SERVER_STARTED

      public static final NewsItemAction ON_SERVER_STARTED
    • ON_OPERATOR_JOIN

      public static final NewsItemAction ON_OPERATOR_JOIN
    • BROADCAST_TO_CONSOLE

      public static final NewsItemAction BROADCAST_TO_CONSOLE
    • BROADCAST_TO_OPERATORS

      public static final NewsItemAction BROADCAST_TO_OPERATORS
  • Method Details

    • values

      public static NewsItemAction[] 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 NewsItemAction 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 NewsItemAction getByName(String actionName)