use of com.mcmoddev.lib.item.ItemMMDBlock in project BaseMetals by MinecraftModDevelopmentMods.
the class Blocks method maybeMakeItemBlock.
private static void maybeMakeItemBlock(final Block block, final MMDMaterial material, final String fullName) {
if (!(block instanceof BlockAnvil) && !(block instanceof BlockDoor) && !(block instanceof BlockSlab) && (!material.isEmpty())) {
final ItemBlock itemBlock = new ItemMMDBlock(material, block);
itemBlock.setRegistryName(block.getRegistryName());
itemBlock.setUnlocalizedName(block.getRegistryName().getResourceDomain() + "." + fullName);
material.addNewItem("ItemBlock_" + fullName, itemBlock);
}
}
Aggregations