mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 20:52:20 +00:00
73 lines
2.6 KiB
Java
73 lines
2.6 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under a
|
|
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
|
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
|
*
|
|
* File Created @ [Jan 14, 2014, 5:17:47 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.common.item;
|
|
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.oredict.OreDictionary;
|
|
import vazkii.botania.common.lib.LibOreDict;
|
|
|
|
public final class ModItems {
|
|
|
|
public static Item lexicon;
|
|
public static Item petal;
|
|
public static Item dye;
|
|
public static Item pestleAndMortar;
|
|
public static Item twigWand;
|
|
public static Item manaResource;
|
|
public static Item lens;
|
|
public static Item manaPetal;
|
|
public static Item rune;
|
|
public static Item signalFlare;
|
|
public static Item manaTablet;
|
|
public static Item manaGun;
|
|
public static Item manaCookie;
|
|
public static Item fertilizer;
|
|
public static Item grassSeeds;
|
|
|
|
public static void init() {
|
|
lexicon = new ItemLexicon();
|
|
petal = new ItemPetal();
|
|
dye = new ItemDye();
|
|
pestleAndMortar = new ItemPestleAndMortar();
|
|
twigWand = new ItemTwigWand();
|
|
manaResource = new ItemManaResource();
|
|
lens = new ItemLens();
|
|
manaPetal = new ItemManaPetal();
|
|
rune = new ItemRune();
|
|
signalFlare = new ItemSignalFlare();
|
|
manaTablet = new ItemManaTablet();
|
|
manaGun = new ItemManaGun();
|
|
manaCookie = new ItemManaCookie();
|
|
fertilizer = new ItemFertilizer();
|
|
grassSeeds = new ItemGrassSeeds();
|
|
|
|
OreDictionary.registerOre(LibOreDict.LEXICON, lexicon);
|
|
for(int i = 0; i < 16; i++) {
|
|
OreDictionary.registerOre(LibOreDict.PETAL[i], new ItemStack(petal, 1, i));
|
|
OreDictionary.registerOre(LibOreDict.DYE[i], new ItemStack(dye, 1, i));
|
|
OreDictionary.registerOre(LibOreDict.MANA_PETAL[i], new ItemStack(manaPetal, 1, i));
|
|
OreDictionary.registerOre(LibOreDict.RUNE[i], new ItemStack(rune, 1, i));
|
|
}
|
|
OreDictionary.registerOre(LibOreDict.PESTLE_AND_MORTAR, pestleAndMortar);
|
|
OreDictionary.registerOre(LibOreDict.MANA_STEEL, new ItemStack(manaResource, 1, 0));
|
|
OreDictionary.registerOre(LibOreDict.MANA_PEARL, new ItemStack(manaResource, 1, 1));
|
|
OreDictionary.registerOre(LibOreDict.MANA_DIAMOND, new ItemStack(manaResource, 1, 2));
|
|
|
|
// Vanilla ores (because forge doesn't do this by default for some reason)
|
|
OreDictionary.registerOre("ingotIron", Items.iron_ingot);
|
|
OreDictionary.registerOre("ingotGold", Items.gold_ingot);
|
|
OreDictionary.registerOre("gemDiamond", Items.diamond);
|
|
}
|
|
}
|