Search in sources :

Example 6 with MMDMaterial

use of com.mcmoddev.lib.material.MMDMaterial in project BaseMetals by MinecraftModDevelopmentMods.

the class Items method addStoneBits.

private static void addStoneBits() {
    final MMDMaterial stone = Materials.getMaterialByName(MaterialNames.STONE);
    stone.addNewItem(Names.AXE, net.minecraft.init.Items.STONE_AXE);
    stone.addNewItem(Names.HOE, net.minecraft.init.Items.STONE_HOE);
    stone.addNewItem(Names.PICKAXE, net.minecraft.init.Items.STONE_PICKAXE);
    stone.addNewItem(Names.SHOVEL, net.minecraft.init.Items.STONE_SHOVEL);
    stone.addNewItem(Names.SWORD, net.minecraft.init.Items.STONE_SWORD);
    stone.addNewBlock(Names.BLOCK, net.minecraft.init.Blocks.STONE);
    stone.addNewBlock(Names.SLAB, net.minecraft.init.Blocks.STONE_SLAB);
    stone.addNewBlock(Names.DOUBLE_SLAB, net.minecraft.init.Blocks.DOUBLE_STONE_SLAB);
    stone.addNewBlock(Names.STAIRS, net.minecraft.init.Blocks.STONE_STAIRS);
    if (Materials.hasMaterial(MaterialNames.STONE)) {
        create(Names.CRACKHAMMER, stone);
        create(Names.ROD, stone);
        create(Names.GEAR, stone);
        create(Names.SCYTHE, stone);
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 7 with MMDMaterial

use of com.mcmoddev.lib.material.MMDMaterial in project BaseMetals by MinecraftModDevelopmentMods.

the class Items method doSpecialMats.

private static void doSpecialMats() {
    if (Materials.hasMaterial(MaterialNames.CHARCOAL)) {
        final MMDMaterial charcoal = Materials.getMaterialByName(MaterialNames.CHARCOAL);
        create(Names.NUGGET, charcoal);
        create(Names.POWDER, charcoal);
        create(Names.SMALLPOWDER, charcoal);
        setBurnTimes(charcoal);
    }
    if (Materials.hasMaterial(MaterialNames.COAL)) {
        final MMDMaterial coal = Materials.getMaterialByName(MaterialNames.COAL);
        create(Names.NUGGET, coal);
        create(Names.POWDER, coal);
        create(Names.SMALLPOWDER, coal);
        setBurnTimes(coal);
    }
    if (Materials.hasMaterial(MaterialNames.REDSTONE)) {
        final MMDMaterial redstone = Materials.getMaterialByName(MaterialNames.REDSTONE);
        create(Names.INGOT, redstone);
        create(Names.SMALLPOWDER, redstone);
    }
    if (Materials.hasMaterial(MaterialNames.LAPIS)) {
        create(Names.SMALLPOWDER, Materials.getMaterialByName(MaterialNames.LAPIS));
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 8 with MMDMaterial

use of com.mcmoddev.lib.material.MMDMaterial in project BaseMetals by MinecraftModDevelopmentMods.

the class Items method addWoodBits.

private static void addWoodBits() {
    final MMDMaterial wood = Materials.getMaterialByName(MaterialNames.WOOD);
    wood.addNewItem(Names.AXE, net.minecraft.init.Items.WOODEN_AXE);
    wood.addNewItem(Names.DOOR, net.minecraft.init.Items.OAK_DOOR);
    wood.addNewItem(Names.HOE, net.minecraft.init.Items.WOODEN_HOE);
    wood.addNewItem(Names.PICKAXE, net.minecraft.init.Items.WOODEN_PICKAXE);
    wood.addNewItem(Names.SHOVEL, net.minecraft.init.Items.WOODEN_SHOVEL);
    wood.addNewItem(Names.SWORD, net.minecraft.init.Items.WOODEN_SWORD);
    wood.addNewBlock(Names.DOOR, net.minecraft.init.Blocks.OAK_DOOR);
    wood.addNewBlock(Names.ORE, net.minecraft.init.Blocks.LOG);
    wood.addNewBlock(Names.TRAPDOOR, net.minecraft.init.Blocks.TRAPDOOR);
    wood.addNewBlock(Names.BLOCK, net.minecraft.init.Blocks.PLANKS);
    wood.addNewBlock(Names.SLAB, net.minecraft.init.Blocks.WOODEN_SLAB);
    wood.addNewBlock(Names.DOUBLE_SLAB, net.minecraft.init.Blocks.DOUBLE_WOODEN_SLAB);
    wood.addNewBlock(Names.STAIRS, net.minecraft.init.Blocks.OAK_STAIRS);
    wood.addNewItem(Names.SHEARS, net.minecraft.init.Items.SHEARS);
    if (Materials.hasMaterial(MaterialNames.WOOD)) {
        create(Names.CRACKHAMMER, wood);
        create(Names.GEAR, wood);
        create(Names.SCYTHE, wood);
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 9 with MMDMaterial

use of com.mcmoddev.lib.material.MMDMaterial in project BaseMetals by MinecraftModDevelopmentMods.

the class Recipes method initModSpecificRecipes.

private static void initModSpecificRecipes() {
    if (Materials.hasMaterial(MaterialNames.ADAMANTINE)) {
        final MMDMaterial adamantine = Materials.getMaterialByName(MaterialNames.ADAMANTINE);
        addAdditionalOredicts(adamantine, "Adamantite");
        addAdditionalOredicts(adamantine, "Adamantium");
        addAdditionalOredicts(adamantine, "Adamant");
    }
    if (Materials.hasMaterial(MaterialNames.STEEL)) {
        final MMDMaterial steel = Materials.getMaterialByName(MaterialNames.STEEL);
        if (steel.hasItem(Names.GEAR)) {
            OreDictionary.registerOre(Oredicts.SPROCKET, steel.getItemStack(Names.GEAR));
        }
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 10 with MMDMaterial

use of com.mcmoddev.lib.material.MMDMaterial in project BaseMetals by MinecraftModDevelopmentMods.

the class TinkersConstructRegistry method integrationsInit.

/**
 * @param forMod
 */
public void integrationsInit(@Nonnull final String forMod) {
    final String curMod = forMod;
    for (final Entry<String, TCMaterial> entry : registry.get(curMod).entrySet()) {
        final TCMaterial work = entry.getValue();
        final MMDMaterial curMMDMat = work.getMMDMaterial();
        final Material curMat = work.getMaterial();
        final Item rI = curMMDMat.getItem(Names.INGOT);
        curMat.addItem(rI, 1, 144);
        curMat.setRepresentativeItem(rI);
        curMat.addCommonItems(curMMDMat.getCapitalizedName());
        addTraits(work);
    }
}
Also used : Item(net.minecraft.item.Item) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial) Material(slimeknights.tconstruct.library.materials.Material)

Aggregations

MMDMaterial (com.mcmoddev.lib.material.MMDMaterial)45 List (java.util.List)9 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)9 BaseMetals (com.mcmoddev.basemetals.BaseMetals)8 Arrays (java.util.Arrays)8 MaterialNames (com.mcmoddev.basemetals.data.MaterialNames)7 Names (com.mcmoddev.lib.data.Names)7 Materials (com.mcmoddev.lib.init.Materials)7 ItemStack (net.minecraft.item.ItemStack)6 RegistryEvent (net.minecraftforge.event.RegistryEvent)6 IIntegration (com.mcmoddev.lib.integration.IIntegration)5 MMDPlugin (com.mcmoddev.lib.integration.MMDPlugin)5 IMMDObject (com.mcmoddev.lib.material.IMMDObject)5 Oredicts (com.mcmoddev.lib.util.Oredicts)5 MinecraftForge (net.minecraftforge.common.MinecraftForge)5 ImmutableList (com.google.common.collect.ImmutableList)4 Options (com.mcmoddev.lib.util.Config.Options)4 Item (net.minecraft.item.Item)4 IRecipe (net.minecraft.item.crafting.IRecipe)4 ThermalExpansionHelper (cofh.api.util.ThermalExpansionHelper)2