Class Blueprints


public class Blueprints extends ResourcesContainer<Blueprint>
A class that manages the loading and handling of Blueprint resources.
  • Method Details

    • isSupported

      public static boolean isSupported(String fileName)
      Checks if the given file name is supported by this container.
      Parameters:
      fileName - The name of the file to check.
      Returns:
      true if the file is supported, false otherwise.
    • load

      protected Blueprint load(URL resourceName) throws Exception
      Loads a Blueprint resource from the specified URL.
      Specified by:
      load in class ResourcesContainer<Blueprint>
      Parameters:
      resourceName - The URL of the resource to load.
      Returns:
      The loaded Blueprint resource.
      Throws:
      Exception - if an error occurs while loading the resource.
    • getAlias

      protected String getAlias(String resourceName, Blueprint resource)
      Gets the alias for the specified resource.
      Overrides:
      getAlias in class ResourcesContainer<Blueprint>
      Parameters:
      resourceName - The name of the resource.
      resource - The resource to get the alias for.
      Returns:
      The alias of the resource, or null if no alias is available.