Enum Class ServerSoftware

java.lang.Object
java.lang.Enum<ServerSoftware>
xyz.srnyx.annoyingapi.ServerSoftware
All Implemented Interfaces:
Serializable, Comparable<ServerSoftware>, Constable

public enum ServerSoftware extends Enum<ServerSoftware>
Get the server software being used based on class existence
  • Enum Constant Details

  • Method Details

    • values

      public static ServerSoftware[] 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 ServerSoftware 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
    • hasFolia

      public boolean hasFolia()
      Returns:
      whether this server has Folia classes
    • hasPaper

      public boolean hasPaper()
      Returns:
      whether this server has Paper classes
    • hasSpigot

      public boolean hasSpigot()
      Returns:
      whether this server has Spigot classes
    • has

      public boolean has(@NotNull @NotNull ServerSoftware software)
    • get

      @NotNull public static @NotNull ServerSoftware get()