com.jme3.asset
Class MaterialKey

java.lang.Object
  extended by com.jme3.asset.AssetKey<Material>
      extended by 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.


Field Summary
 
Fields inherited from class com.jme3.asset.AssetKey
extension, folder, name
 
Constructor Summary
MaterialKey()
           
MaterialKey(java.lang.String name)
           
 
Method Summary
 java.lang.Class<? extends AssetCache> getCacheType()
           
 java.lang.Class<? extends AssetProcessor> getProcessorType()
           
 
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
 

Constructor Detail

MaterialKey

public MaterialKey(java.lang.String name)

MaterialKey

public MaterialKey()
Method Detail

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.