mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-25 22:21:42 +02:00
24 lines
721 B
Java
24 lines
721 B
Java
|
package ellpeck.gemification.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;
|
||
|
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");
|
||
|
}
|
||
|
}
|
||
|
}
|