mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-23 17:43:37 +02:00
24 lines
741 B
Java
24 lines
741 B
Java
package ellpeck.someprettytechystuff.booklet;
|
|
|
|
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;
|
|
this.name = name + "Chapter";
|
|
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");
|
|
}
|
|
}
|
|
}
|