forked from TAIGA/TAIGA
first progress on book integration, need to introduce a custom json structure
This commit is contained in:
@@ -70,6 +70,7 @@ public class TAIGA {
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent e) {
|
||||
proxy.registerBookPages();
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@@ -124,7 +125,5 @@ public class TAIGA {
|
||||
integrateOre("Karmesine", karmesineFluid);
|
||||
integrateOre("Ovium", oviumFluid);
|
||||
integrateOre("Jauxum", jauxumFluid);
|
||||
|
||||
|
||||
}
|
||||
}
|
@@ -16,6 +16,8 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import slimeknights.mantle.client.book.repository.FileRepository;
|
||||
import slimeknights.tconstruct.library.book.TinkerBook;
|
||||
import slimeknights.tconstruct.library.client.MaterialRenderInfo;
|
||||
import slimeknights.tconstruct.library.client.texture.MetalTextureTexture;
|
||||
import slimeknights.tconstruct.library.materials.Material;
|
||||
@@ -122,6 +124,11 @@ public class ClientProxy extends CommonProxy {
|
||||
TAIGAConfiguration.clientPreInit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBookPages() {
|
||||
TinkerBook.INSTANCE.addRepository(new FileRepository("taiga:book"));
|
||||
}
|
||||
|
||||
public static class FluidStateMapper extends StateMapperBase implements ItemMeshDefinition {
|
||||
|
||||
public final Fluid fluid;
|
||||
|
@@ -24,4 +24,7 @@ public class CommonProxy {
|
||||
|
||||
public void registerServerCommands(FMLServerStartingEvent e) {
|
||||
}
|
||||
|
||||
public void registerBookPages() {
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"title": "TEST Title",
|
||||
"text": [
|
||||
{
|
||||
"text": "Test text."
|
||||
}
|
||||
]
|
||||
}
|
1
src/main/resources/assets/taiga/book/en_US/language.lang
Normal file
1
src/main/resources/assets/taiga/book/en_US/language.lang
Normal file
@@ -0,0 +1 @@
|
||||
index_title=TAIGA
|
9
src/main/resources/assets/taiga/book/index.json
Normal file
9
src/main/resources/assets/taiga/book/index.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"name": "index_title",
|
||||
"data": "sections/intro.json",
|
||||
"icon": {
|
||||
"file": "taiga:textures/gui/book/logo.png"
|
||||
}
|
||||
}
|
||||
]
|
7
src/main/resources/assets/taiga/book/sections/intro.json
Normal file
7
src/main/resources/assets/taiga/book/sections/intro.json
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"name": "welcome",
|
||||
"type": "text",
|
||||
"data": "intro/welcome.json"
|
||||
}
|
||||
]
|
BIN
src/main/resources/assets/taiga/textures/gui/book/logo.png
Normal file
BIN
src/main/resources/assets/taiga/textures/gui/book/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Reference in New Issue
Block a user