java.lang.Object
java.lang.Enum<SystemOS>
com.github.retrooper.packetevents.manager.server.SystemOS
All Implemented Interfaces:
Serializable, Comparable<SystemOS>, Constable

public enum SystemOS extends Enum<SystemOS>
System Operating system.
Since:
1.7
  • Enum Constant Details

    • WINDOWS

      public static final SystemOS WINDOWS
    • MACOS

      public static final SystemOS MACOS
    • LINUX

      public static final SystemOS LINUX
    • OTHER

      public static final SystemOS OTHER
  • Method Details

    • values

      public static SystemOS[] 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 SystemOS 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
    • getOSNoCache

      public static SystemOS getOSNoCache()
      Get the server's operating system. This method will NOT cache.
      Returns:
      Operating System.
    • getOS

      public static SystemOS getOS()
      Get the server's operating system. This method will CACHE for you.
      Returns:
      Operating System.