2015-01-05 22:14:01 +01:00
|
|
|
package ellpeck.someprettytechystuff.booklet;
|
2014-12-20 21:34:07 +01:00
|
|
|
|
|
|
|
import net.minecraft.util.StatCollector;
|
|
|
|
|
|
|
|
public class Chapter{
|
|
|
|
|
|
|
|
public final int ID;
|
|
|
|
public final String name;
|
|
|
|
public final int pageAmount;
|
|
|
|
public final boolean hasCraftingRecipe;
|
|
|
|
public String[] pageTexts;
|
|
|
|
|
|
|
|
public Chapter(int ID, String name, int pageAmount, boolean hasCraftingRecipe){
|
|
|
|
this.ID = ID;
|
2015-01-05 22:14:01 +01:00
|
|
|
this.name = name + "Chapter";
|
2014-12-20 21:34:07 +01:00
|
|
|
this.pageAmount = pageAmount;
|
|
|
|
this.hasCraftingRecipe = hasCraftingRecipe;
|
|
|
|
this.pageTexts = new String[pageAmount];
|
|
|
|
for(int i = 0; i < pageTexts.length; i++){
|
|
|
|
this.pageTexts[i] = StatCollector.translateToLocal("infoBook." + this.name + ".page" + i + ".text");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|