Class NMSAssistant
java.lang.Object
preponderous.ponder.minecraft.bukkit.nms.NMSAssistant
- Since:
- 11/12/2021 - 22:45
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMethod 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.
-
Constructor Details
-
NMSAssistant
public NMSAssistant()
-
-
Method Details
-
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.
-