Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package minecrafthdl.client.render.blocks;
import minecrafthdl.MinecraftHDL;
import minecrafthdl.block.ModBlocks;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
/**
* Created by Francis on 10/28/2016.
*/
public class BlockRenderRegister {
public static void registerBlockRenderer() {
reg(ModBlocks.synthesizer);
}
public static void reg(Block block) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(MinecraftHDL.MODID + ":" + block.getUnlocalizedName().substring(5), "inventory"));
}
}
ac58edbecThis file is pinned to the selected release. Download the original to open it in your design tool.