Class VersionHelper
java.lang.Object
dev.triumphteam.gui.components.util.VersionHelper
public final class VersionHelper
extends java.lang.Object
Class for detecting server version for legacy support :(
-
Field Summary
Fields Modifier and Type Field Description static boolean
IS_COMPONENT_LEGACY
Checks if the version supports Components or not Paper versions above 1.16.5 would be true Spigot always falsestatic boolean
IS_ITEM_LEGACY
Checks if the version is lower than 1.13 due to the item changesstatic boolean
IS_PDC_VERSION
Checks if the version supportsPersistentDataContainer
static boolean
IS_UNBREAKABLE_LEGACY
Checks if the version supports theItemMeta.setUnbreakable(boolean)
method -
Constructor Summary
Constructors Constructor Description VersionHelper()
-
Method Summary
-
Field Details
-
IS_COMPONENT_LEGACY
public static final boolean IS_COMPONENT_LEGACYChecks if the version supports Components or not Paper versions above 1.16.5 would be true Spigot always false -
IS_ITEM_LEGACY
public static final boolean IS_ITEM_LEGACYChecks if the version is lower than 1.13 due to the item changes -
IS_UNBREAKABLE_LEGACY
public static final boolean IS_UNBREAKABLE_LEGACYChecks if the version supports theItemMeta.setUnbreakable(boolean)
method -
IS_PDC_VERSION
public static final boolean IS_PDC_VERSIONChecks if the version supportsPersistentDataContainer
-
-
Constructor Details
-
VersionHelper
public VersionHelper()
-