1package com.jme3.asset; 2 3 4/** 5 * This key is mostly used to distinguish between textures that are loaded from 6 * the given assets and those being generated automatically. Every generated 7 * texture will have this kind of key attached. 8 * 9 * @author Marcin Roguski (Kaelthas) 10 */ 11public class GeneratedTextureKey extends TextureKey { 12 /** 13 * Constructor. Stores the name. Extension and folder name are empty 14 * strings. 15 * 16 * @param name 17 * the name of the texture 18 */ 19 public GeneratedTextureKey(String name) { 20 super(name); 21 } 22 23 @Override 24 public String getExtension() { 25 return ""; 26 } 27 28 @Override 29 public String getFolder() { 30 return ""; 31 } 32 33 @Override 34 public String toString() { 35 return "Generated texture [" + name + "]"; 36 } 37} 38