Class ServerVersionInfo

java.lang.Object
me.lokka30.levelledmobs.nametag.ServerVersionInfo

public class ServerVersionInfo extends Object
  • Constructor Details

    • ServerVersionInfo

      public ServerVersionInfo()
  • Method Details

    • getIsRunningSpigot

      public boolean getIsRunningSpigot()
    • getIsRunningPaper

      public boolean getIsRunningPaper()
    • getIsRunningFolia

      public boolean getIsRunningFolia()
    • getMajorVersion

      public int getMajorVersion()
      Returns:
      The first digit of the version (1.20.3 would return 1)
    • getMajorVersionEnum

      public ServerVersionInfo.MinecraftMajorVersion getMajorVersionEnum()
      Returns:
      An enum of the Minecraft version
    • getMinorVersion

      public int getMinorVersion()
      Returns:
      The second digit of the version (1.20.3 would return 20)
    • getRevision

      public int getRevision()
      Returns:
      The last digit of the version (1.20.3 would return 3)
    • getMinecraftVersion

      public double getMinecraftVersion()
      Returns:
      A double representing the last 2 digits of the version (1.20.3 would return 20.3)
    • getNMSVersion

      @NotNull public @NotNull String getNMSVersion()
    • isNMSVersionValid

      public boolean isNMSVersionValid()
    • toString

      public String toString()
      Overrides:
      toString in class Object