Add iron fence and fence gate

Cannot for the life of my figure out why the iron fence gate block won't render correctly. The blockstate isn't being called. Hopefully I can figure out in the morning
This commit is contained in:
TheDoctorSoda 2016-02-22 00:11:19 -08:00
parent 502fae9518
commit 90932acab9
23 changed files with 316 additions and 8 deletions

View file

@ -0,0 +1,26 @@
package techreborn.client;
import jline.internal.Log;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.common.util.LogHelper;
import techreborn.init.ModBlocks;
import techreborn.init.ModItems;
public class RegisterItemJsons {
public static void registerModels() {
registerItems();
registerBlocks();
}
private static void registerItems() {
}
private static void registerBlocks() {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(ModBlocks.ironFence), 0, new ModelResourceLocation("techreborn:ironFence", "inventory"));
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(ModBlocks.ironFenceGate), 0, new ModelResourceLocation("techreborn:ironFenceGate", "inventory"));
}
}