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() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user