/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
*
* File Created @ [Jan 14, 2014, 9:47:21 PM (GMT)]
*/
package pixlepix.auracascade.lexicon;
public class BLexiconEntry extends LexiconEntry {
public BLexiconEntry(String unlocalizedName, LexiconCategory category) {
super(unlocalizedName, category);
CategoryManager.addEntry(this, category);
}
@Override
public LexiconEntry setLexiconPages(LexiconPage... pages) {
for (LexiconPage page : pages) {
page.unlocalizedName = "aura.page." + getLazyUnlocalizedName() + page.unlocalizedName;
if (page instanceof ITwoNamedPage) {
ITwoNamedPage dou = (ITwoNamedPage) page;
dou.setSecondUnlocalizedName("aura.page." + getLazyUnlocalizedName() + dou.getSecondUnlocalizedName());
}
}
return super.setLexiconPages(pages);
}
@Override
public String getUnlocalizedName() {
return "aura.entry." + super.getUnlocalizedName();
}
public String getLazyUnlocalizedName() {
return super.getUnlocalizedName();
}
}