Class Blueprints
java.lang.Object
de.gurkenlabs.litiengine.resources.ResourcesContainer<Blueprint>
de.gurkenlabs.litiengine.resources.Blueprints
A class that manages the loading and handling of Blueprint resources.
-
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the alias for the specified resource.static booleanisSupported(String fileName) Checks if the given file name is supported by this container.protected BlueprintLoads a Blueprint resource from the specified URL.Methods inherited from class ResourcesContainer
add, add, addClearedListener, addContainerListener, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAll, getAsync, getAsync, getResources, remove, remove, removeClearedListener, removeContainerListener, tryGet, tryGet
-
Method Details
-
isSupported
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
Loads a Blueprint resource from the specified URL.- Specified by:
loadin classResourcesContainer<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
Gets the alias for the specified resource.- Overrides:
getAliasin classResourcesContainer<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.
-