// Registering custom icon classes
// name of custom icon ( must equal getIconName() )
String name = TextureOre.getDerivedName(entry[i].texture);
// see if there's already an icon of that name
TextureAtlasSprite texture = map.getTextureExtry(name);
if (texture == null) {
// if not create one and put it in the register
texture = new TextureOre(entry[i]);
map.setTextureEntry(name, texture);
}