Package com.jme3.asset
Class ShaderNodeDefinitionKey
Used for loading
shader nodes definition
Determines whether the definition will be loaded with or without its documentation-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptioncreates a ShaderNodeDefinitionKeycreates a ShaderNodeDefinitionKey -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends AssetCache>booleanvoidsetLoadDocumentation(boolean loadDocumentation) sets to true to load the documentation along with the ShaderNodeDefinitionMethods inherited from class com.jme3.asset.AssetKey
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, getProcessorType, hashCode, read, reducePath, toString, write
-
Constructor Details
-
ShaderNodeDefinitionKey
creates a ShaderNodeDefinitionKey- Parameters:
name- the name of the asset to load
-
ShaderNodeDefinitionKey
public ShaderNodeDefinitionKey()creates a ShaderNodeDefinitionKey
-
-
Method Details
-
getCacheType
- Overrides:
getCacheTypein classAssetKey<List<ShaderNodeDefinition>>- Returns:
- The preferred cache class for this asset type. Specify "null"
if caching is to be disabled. By default, the
SimpleAssetCacheis returned.
-
isLoadDocumentation
public boolean isLoadDocumentation()- Returns:
- true if the asset loaded with this key will contain its documentation
-
setLoadDocumentation
public void setLoadDocumentation(boolean loadDocumentation) sets to true to load the documentation along with the ShaderNodeDefinition- Parameters:
loadDocumentation- true to load the documentation along with the ShaderNodeDefinition
-