2018-10-22 00:14:52 +02:00
|
|
|
package de.ellpeck.naturesaura.compat.patchouli;
|
|
|
|
|
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
2018-10-26 12:03:42 +02:00
|
|
|
import net.minecraft.client.renderer.block.model.ModelBakery;
|
|
|
|
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
2018-10-22 00:14:52 +02:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import vazkii.patchouli.client.book.BookPage;
|
2018-10-25 19:23:20 +02:00
|
|
|
import vazkii.patchouli.client.book.ClientBookRegistry;
|
2018-10-26 12:03:42 +02:00
|
|
|
import vazkii.patchouli.common.item.PatchouliItems;
|
2018-10-22 00:14:52 +02:00
|
|
|
|
|
|
|
public final class PatchouliCompat {
|
|
|
|
|
|
|
|
public static final ResourceLocation GUI_ELEMENTS = new ResourceLocation(NaturesAura.MOD_ID, "textures/gui/patchouli/elements.png");
|
|
|
|
|
2018-10-26 12:03:42 +02:00
|
|
|
public static void initClient() {
|
2018-10-22 00:14:52 +02:00
|
|
|
addPatchouliPage("altar", PageAltar.class);
|
|
|
|
addPatchouliPage("tree_ritual", PageTreeRitual.class);
|
2018-10-26 12:03:42 +02:00
|
|
|
|
|
|
|
ModelBakery.registerItemVariants(PatchouliItems.book, new ModelResourceLocation(NaturesAura.MOD_ID + ":book", "inventory"));
|
2018-10-22 00:14:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private static void addPatchouliPage(String name, Class<? extends BookPage> page) {
|
2018-10-25 19:23:20 +02:00
|
|
|
ClientBookRegistry.INSTANCE.pageTypes.put(NaturesAura.MOD_ID + ":" + name, page);
|
2018-10-22 00:14:52 +02:00
|
|
|
}
|
|
|
|
}
|