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);
}
}
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));
}
}
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);
}
}
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));
}
}
}
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);
}
}
Aggregations