Class NMSAssistant

java.lang.Object
preponderous.ponder.minecraft.bukkit.nms.NMSAssistant

public class NMSAssistant extends Object
Since:
11/12/2021 - 22:45
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method to get the NMS Version which stands for the current server-version.
    boolean
    isNotVersion​(int version)
    Method to determine if the sever isn't currently running this specific version.
    boolean
    isVersion​(int version)
    Method to determine if the server is currently running this specific version.
    boolean
    isVersionGreaterThan​(int version)
    Method to determine if the server version is greater than the given version.
    boolean
    isVersionLessThan​(int version)
    Method to determine if the server version is less than the given version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NMSAssistant

      public NMSAssistant()
  • Method Details

    • getNMSVersion

      public NMSVersion getNMSVersion()
      Method to get the NMS Version which stands for the current server-version.
      Returns:
      NMSVersion.
    • isVersionGreaterThan

      public boolean isVersionGreaterThan(int version)
      Method to determine if the server version is greater than the given version.
      Parameters:
      version - to test against.
      Returns:
      true if it is.
    • isVersionLessThan

      public boolean isVersionLessThan(int version)
      Method to determine if the server version is less than the given version.
      Parameters:
      version - to test against.
      Returns:
      true if it is.
    • isVersion

      public boolean isVersion(int version)
      Method to determine if the server is currently running this specific version.
      Parameters:
      version - to check against.
      Returns:
      true if it is.
    • isNotVersion

      public boolean isNotVersion(int version)
      Method to determine if the sever isn't currently running this specific version.
      Parameters:
      version - to check against.
      Returns:
      true if it isn't.