com.jme3.asset
Class MaterialKey
java.lang.Object
com.jme3.asset.AssetKey<Material>
com.jme3.asset.MaterialKey
- All Implemented Interfaces:
- Savable, java.lang.Cloneable
public class MaterialKey
- extends AssetKey<Material>
Used for loading materials
only (not material definitions!).
Material instances use cloneable smart asset management so that they and any
referenced textures will be collected when all instances of the material
become unreachable.
Methods inherited from class com.jme3.asset.AssetKey |
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, hashCode, read, reducePath, toString, write |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MaterialKey
public MaterialKey(java.lang.String name)
MaterialKey
public MaterialKey()
getCacheType
public java.lang.Class<? extends AssetCache> getCacheType()
- Overrides:
getCacheType
in class AssetKey<Material>
- Returns:
- The preferred cache class for this asset type. Specify "null"
if caching is to be disabled. By default the
SimpleAssetCache
is returned.
getProcessorType
public java.lang.Class<? extends AssetProcessor> getProcessorType()
- Overrides:
getProcessorType
in class AssetKey<Material>
- Returns:
- The preferred processor type for this asset type. Specify "null"
if no processing is required.