@Beta public class ImageHeightmapLoader extends AssetLoader<ImageHeightmap>
Constructor and Description |
---|
ImageHeightmapLoader(WorldEdit worldEdit,
java.nio.file.Path assetDir) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAllowedExtensions()
The extensions that this asset loader supports.
|
ImageHeightmap |
loadAssetFromPath(java.nio.file.Path path)
Loads an asset from the given file if possible.
|
getAsset
public ImageHeightmapLoader(WorldEdit worldEdit, java.nio.file.Path assetDir)
@Nullable public ImageHeightmap loadAssetFromPath(java.nio.file.Path path) throws java.lang.Exception
AssetLoader
loadAssetFromPath
in class AssetLoader<ImageHeightmap>
path
- The file to loadjava.lang.Exception
public java.util.Set<java.lang.String> getAllowedExtensions()
AssetLoader
getAllowedExtensions
in class AssetLoader<ImageHeightmap>