Search in sources :

Example 36 with MMDMaterial

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

the class Items method addGoldBits.

private static void addGoldBits() {
    final MMDMaterial gold = Materials.getMaterialByName(MaterialNames.GOLD);
    gold.addNewItem(Names.AXE, net.minecraft.init.Items.GOLDEN_AXE);
    gold.addNewItem(Names.HOE, net.minecraft.init.Items.GOLDEN_HOE);
    gold.addNewItem(Names.HORSE_ARMOR, net.minecraft.init.Items.GOLDEN_HORSE_ARMOR);
    gold.addNewItem(Names.PICKAXE, net.minecraft.init.Items.GOLDEN_PICKAXE);
    gold.addNewItem(Names.SHOVEL, net.minecraft.init.Items.GOLDEN_SHOVEL);
    gold.addNewItem(Names.SWORD, net.minecraft.init.Items.GOLDEN_SWORD);
    gold.addNewItem(Names.BOOTS, net.minecraft.init.Items.GOLDEN_BOOTS);
    gold.addNewItem(Names.CHESTPLATE, net.minecraft.init.Items.GOLDEN_CHESTPLATE);
    gold.addNewItem(Names.HELMET, net.minecraft.init.Items.GOLDEN_HELMET);
    gold.addNewItem(Names.LEGGINGS, net.minecraft.init.Items.GOLDEN_LEGGINGS);
    gold.addNewItem(Names.INGOT, net.minecraft.init.Items.GOLD_INGOT);
    gold.addNewItem(Names.NUGGET, net.minecraft.init.Items.GOLD_NUGGET);
    if (Materials.hasMaterial(MaterialNames.GOLD)) {
        create(Names.BLEND, gold);
        create(Names.POWDER, gold);
        create(Names.SMALLBLEND, gold);
        create(Names.SMALLPOWDER, gold);
        create(Names.ARROW, gold);
        create(Names.BOLT, gold);
        create(Names.BOW, gold);
        create(Names.CRACKHAMMER, gold);
        create(Names.CROSSBOW, gold);
        create(Names.DOOR, gold);
        create(Names.FISHING_ROD, gold);
        create(Names.SHEARS, gold);
        create(Names.SHIELD, gold);
        create(Names.SLAB, gold);
        create(Names.ROD, gold);
        create(Names.GEAR, gold);
        create(Names.SCYTHE, gold);
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 37 with MMDMaterial

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

the class VanillaItems method doSpecialMats.

private static void doSpecialMats() {
    if (Materials.hasMaterial(MaterialNames.CHARCOAL) && Options.isMaterialEnabled(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) && Options.isMaterialEnabled(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) && Options.isMaterialEnabled(MaterialNames.REDSTONE)) {
        final MMDMaterial redstone = Materials.getMaterialByName(MaterialNames.REDSTONE);
        create(Names.INGOT, redstone);
        create(Names.SMALLPOWDER, redstone);
    }
    if (Materials.hasMaterial(MaterialNames.LAPIS) && Options.isMaterialEnabled(MaterialNames.LAPIS)) {
        create(Names.SMALLPOWDER, Materials.getMaterialByName(MaterialNames.LAPIS));
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 38 with MMDMaterial

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

the class VanillaItems method addIronBits.

private static void addIronBits() {
    final MMDMaterial iron = Materials.getMaterialByName(MaterialNames.IRON);
    if (Materials.hasMaterial(MaterialNames.IRON)) {
        create(Names.BLEND, iron);
        create(Names.INGOT, iron);
        create(Names.NUGGET, iron);
        create(Names.POWDER, iron);
        create(Names.SMALLBLEND, iron);
        create(Names.SMALLPOWDER, iron);
        create(Names.ARROW, iron);
        create(Names.AXE, iron);
        create(Names.BOLT, iron);
        create(Names.BOOTS, iron);
        create(Names.BOW, iron);
        create(Names.CHESTPLATE, iron);
        create(Names.CRACKHAMMER, iron);
        create(Names.CROSSBOW, iron);
        create(Names.FISHING_ROD, iron);
        create(Names.HELMET, iron);
        create(Names.HOE, iron);
        create(Names.HORSE_ARMOR, iron);
        create(Names.LEGGINGS, iron);
        create(Names.PICKAXE, iron);
        create(Names.SHEARS, iron);
        create(Names.SHIELD, iron);
        create(Names.SHOVEL, iron);
        create(Names.SLAB, iron);
        create(Names.SWORD, iron);
        create(Names.ROD, iron);
        create(Names.GEAR, iron);
        create(Names.SCYTHE, iron);
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 39 with MMDMaterial

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

the class VanillaItems method addGoldBits.

private static void addGoldBits() {
    final MMDMaterial gold = Materials.getMaterialByName(MaterialNames.GOLD);
    if (Materials.hasMaterial(MaterialNames.GOLD)) {
        create(Names.BLEND, gold);
        create(Names.POWDER, gold);
        create(Names.SMALLBLEND, gold);
        create(Names.SMALLPOWDER, gold);
        create(Names.ARROW, gold);
        create(Names.BOLT, gold);
        create(Names.BOW, gold);
        create(Names.CRACKHAMMER, gold);
        create(Names.CROSSBOW, gold);
        create(Names.DOOR, gold);
        create(Names.FISHING_ROD, gold);
        create(Names.SHEARS, gold);
        create(Names.SHIELD, gold);
        create(Names.SLAB, gold);
        create(Names.ROD, gold);
        create(Names.GEAR, gold);
        create(Names.SCYTHE, gold);
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial)

Example 40 with MMDMaterial

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

the class BMeTinkersConstruct method registerMeltings.

@SubscribeEvent
public void registerMeltings(TinkersExtraMeltingsEvent ev) {
    if (isMaterialFluidEnabled(MaterialNames.COAL)) {
        TinkersConstruct.INSTANCE.addExtraMelting(FluidRegistry.getFluidStack(MaterialNames.COAL, 144), new ItemStack(net.minecraft.init.Items.COAL));
    }
    if (isMaterialFluidEnabled(MaterialNames.ENDER)) {
        final MMDMaterial ender = Materials.getMaterialByName(MaterialNames.ENDER);
        TinkersConstruct.INSTANCE.addExtraMelting(FluidRegistry.getFluidStack(ender.getName(), 144), new ItemStack(Items.ENDER_PEARL));
    }
    if (isMaterialFluidEnabled(MaterialNames.MERCURY)) {
        final MMDMaterial mercury = Materials.getMaterialByName(MaterialNames.MERCURY);
        TinkersConstruct.INSTANCE.addExtraMelting(FluidRegistry.getFluidStack(mercury.getName(), 144), mercury.getItemStack(Names.INGOT));
    }
    if (isMaterialFluidEnabled(MaterialNames.PRISMARINE)) {
        final MMDMaterial prismarine = Materials.getMaterialByName(MaterialNames.PRISMARINE);
        TinkersConstruct.INSTANCE.addExtraMelting(FluidRegistry.getFluidStack(prismarine.getName(), 144), new ItemStack(net.minecraft.init.Items.PRISMARINE_SHARD));
    }
}
Also used : MMDMaterial(com.mcmoddev.lib.material.MMDMaterial) ItemStack(net.minecraft.item.ItemStack) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

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