Package me.lokka30.levelledmobs.nametag
Class ServerVersionInfo
java.lang.Object
me.lokka30.levelledmobs.nametag.ServerVersionInfo
-
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
- 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
-
isNMSVersionValid
public boolean isNMSVersionValid() -
toString
-