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