Interface Languaged


public interface Languaged
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the folder in which the languaged object stores it's config and data files in
    Get the logger of the languaged object
    default String
    The name of this languaged object.
    default InputStream
    Get a resource corresponding to this languaged object.
  • Method Details

    • getDataFolder

      File getDataFolder()
      Get the folder in which the languaged object stores it's config and data files in
      Returns:
      The folder
    • getLangLogger

      LangLogger getLangLogger()
      Get the logger of the languaged object
      Returns:
      The logger
    • getResourceAsStream

      default InputStream getResourceAsStream(String path)
      Get a resource corresponding to this languaged object. Returns ClassLoader.getResourceAsStream(String) by default.
      Parameters:
      path - The path of the resource as a string
      Returns:
      The InputStream of that resource
    • getName

      default String getName()
      The name of this languaged object. Returns Class.getSimpleName() by default
      Returns:
      The name of the languaged object.