patchouli does this now yes

This commit is contained in:
Ellpeck 2018-10-26 20:47:34 +02:00
parent 57af7e50c1
commit e9a7cef39f

View file

@ -1,12 +1,9 @@
package de.ellpeck.naturesaura.compat.patchouli; package de.ellpeck.naturesaura.compat.patchouli;
import de.ellpeck.naturesaura.NaturesAura; import de.ellpeck.naturesaura.NaturesAura;
import net.minecraft.client.renderer.block.model.ModelBakery;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import vazkii.patchouli.client.book.BookPage; import vazkii.patchouli.client.book.BookPage;
import vazkii.patchouli.client.book.ClientBookRegistry; import vazkii.patchouli.client.book.ClientBookRegistry;
import vazkii.patchouli.common.item.PatchouliItems;
public final class PatchouliCompat { public final class PatchouliCompat {
@ -15,8 +12,6 @@ public final class PatchouliCompat {
public static void initClient() { public static void initClient() {
addPatchouliPage("altar", PageAltar.class); addPatchouliPage("altar", PageAltar.class);
addPatchouliPage("tree_ritual", PageTreeRitual.class); addPatchouliPage("tree_ritual", PageTreeRitual.class);
ModelBakery.registerItemVariants(PatchouliItems.book, new ModelResourceLocation(NaturesAura.MOD_ID + ":book", "inventory"));
} }
private static void addPatchouliPage(String name, Class<? extends BookPage> page) { private static void addPatchouliPage(String name, Class<? extends BookPage> page) {