Add BlockRender code
This commit is contained in:
parent
419f532502
commit
cfed9f5ab3
3 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
package WayofTime.alchemicalWizardry.client;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class BlockRenderer
|
||||
{
|
||||
public static void registerBlock(Block block)
|
||||
{
|
||||
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("alchemicalwizardry:" + block.getUnlocalizedName().substring(5), "inventory"));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue