Interface Languaged


public interface Languaged
  • Method Summary

    Modifier and Type Method Description
    java.io.File getDataFolder()
    Get the folder in which the languaged object stores it's config and data files in
    LangLogger getLangLogger()
    Get the logger of the languaged object
    default java.lang.String getName()
    The name of this languaged object.
    default java.io.InputStream getResourceAsStream​(java.lang.String path)
    Get a resource corresponding to this languaged object.
  • Method Details

    • getDataFolder

      java.io.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 java.io.InputStream getResourceAsStream​(java.lang.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 java.lang.String getName()
      The name of this languaged object. Returns Class.getSimpleName() by default
      Returns:
      The name of the languaged object.