ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/inventory/gui/booklet/BookletIndexEntry.java

31 lines
829 B
Java
Raw Normal View History

package ellpeck.actuallyadditions.inventory.gui.booklet;
2015-08-28 21:17:09 +02:00
import ellpeck.actuallyadditions.util.ModUtil;
import ellpeck.actuallyadditions.util.StringUtil;
import java.util.ArrayList;
public class BookletIndexEntry{
private final String unlocalizedName;
public ArrayList<BookletChapter> chapters = new ArrayList<BookletChapter>();
public BookletIndexEntry(String unlocalizedName){
this.unlocalizedName = unlocalizedName;
InitBooklet.entries.add(this);
}
public String getUnlocalizedName(){
return this.unlocalizedName;
}
public void addChapter(BookletChapter chapter){
this.chapters.add(chapter);
}
public String getLocalizedName(){
return StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".indexEntry."+this.unlocalizedName+".name");
}
}