Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.theviolentsquirrels.questsystem.renderer.block;
- import net.minecraft.client.resources.model.ModelResourceLocation;
- import net.minecraft.item.Item;
- import net.minecraftforge.client.model.ModelLoader;
- import net.minecraftforge.fml.common.FMLLog;
- import net.theviolentsquirrels.questsystem.block.BlockWallCustom.EnumType;
- import net.theviolentsquirrels.questsystem.renderer.ModelManager;
- public final class BlockWallCustomVariants {
- public static void registerWallVariants(Item blockWallItem) {
- ModelResourceLocation modelResourceLocation;
- modelResourceLocation = ModelManager.INSTANCE.getModelResourceLocation(blockWallItem, "inventory");
- FMLLog.info(modelResourceLocation.toString());
- for (EnumType enumType : EnumType.values()) {
- ModelLoader.setCustomModelResourceLocation(blockWallItem, enumType.getMetadata(), modelResourceLocation);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement