Package com.sk89q.worldedit.util.asset
Class ImageHeightmapLoader
java.lang.Object
com.sk89q.worldedit.util.asset.AssetLoader<ImageHeightmap>
com.sk89q.worldedit.util.asset.ImageHeightmapLoader
Loads and caches image files from WorldEdit's assets directory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe extensions that this asset loader supports.loadAssetFromPath
(Path path) Loads an asset from the given file if possible.Methods inherited from class com.sk89q.worldedit.util.asset.AssetLoader
getAsset
-
Constructor Details
-
ImageHeightmapLoader
-
-
Method Details
-
loadAssetFromPath
Description copied from class:AssetLoader
Loads an asset from the given file if possible.- Specified by:
loadAssetFromPath
in classAssetLoader<ImageHeightmap>
- Parameters:
path
- The file to load- Returns:
- loaded asset, or null otherwise
- Throws:
Exception
-
getAllowedExtensions
Description copied from class:AssetLoader
The extensions that this asset loader supports.- Specified by:
getAllowedExtensions
in classAssetLoader<ImageHeightmap>
- Returns:
- The supported extensions
-