Class LangSupport

java.lang.Object
fr.sandro642.github.hook.LangSupport

public class LangSupport extends Object
LangSupport is a placeholder class for future language support implementations. Currently, it does not contain any methods or properties.
  • Constructor Details

    • LangSupport

      public LangSupport()
  • Method Details

    • setLangTypeVariable

      public LangType setLangTypeVariable(LangType langType)
      Sets the LangType variable for this instance.
      Parameters:
      langType - The language type to set. Must not be null.
      Returns:
      The LangType that was set.
    • getPathFile

      public String getPathFile()
      Method to get the path of the language file based on the LangType.
      Returns:
      The path of the language file.
      Throws:
      IllegalArgumentException - If the LangType is null or unsupported.
    • getInstance

      public static LangSupport getInstance()
      Public Getter of LangSupport instance. This method returns the singleton instance of LangSupport. If the instance is null, it creates a new instance.
      Returns:
      instance