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 false
    static boolean IS_ITEM_LEGACY
    Checks if the version is lower than 1.13 due to the item changes
    static boolean IS_PDC_VERSION
    Checks if the version supports PersistentDataContainer
    static boolean IS_UNBREAKABLE_LEGACY
    Checks if the version supports the ItemMeta.setUnbreakable(boolean) method
  • Constructor Summary

    Constructors 
    Constructor Description
    VersionHelper()  
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • IS_COMPONENT_LEGACY

      public static final boolean IS_COMPONENT_LEGACY
      Checks 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_LEGACY
      Checks if the version is lower than 1.13 due to the item changes
    • IS_UNBREAKABLE_LEGACY

      public static final boolean IS_UNBREAKABLE_LEGACY
      Checks if the version supports the ItemMeta.setUnbreakable(boolean) method
    • IS_PDC_VERSION

      public static final boolean IS_PDC_VERSION
      Checks if the version supports PersistentDataContainer
  • Constructor Details