mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-16 13:03:12 +01:00
72 lines
2.9 KiB
Java
72 lines
2.9 KiB
Java
|
package ellpeck.actuallyadditions.ore;
|
||
|
|
||
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
||
|
import ellpeck.actuallyadditions.blocks.metalists.TheMiscBlocks;
|
||
|
import ellpeck.actuallyadditions.items.InitItems;
|
||
|
import ellpeck.actuallyadditions.items.metalists.TheDusts;
|
||
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
||
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
||
|
import ellpeck.actuallyadditions.items.metalists.TheSpecialDrops;
|
||
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||
|
import net.minecraft.block.Block;
|
||
|
import net.minecraft.init.Items;
|
||
|
import net.minecraft.item.Item;
|
||
|
import net.minecraft.item.ItemStack;
|
||
|
import net.minecraftforge.oredict.OreDictionary;
|
||
|
|
||
|
public class InitOreDict{
|
||
|
|
||
|
public static void init(){
|
||
|
ModUtil.LOGGER.info("Initializing OreDictionary Entries...");
|
||
|
|
||
|
addOre(InitItems.itemDust, TheDusts.IRON.ordinal(), "dustIron");
|
||
|
addOre(InitItems.itemDust, TheDusts.GOLD.ordinal(), "dustGold");
|
||
|
addOre(InitItems.itemDust, TheDusts.DIAMOND.ordinal(), "dustDiamond");
|
||
|
addOre(InitItems.itemDust, TheDusts.EMERALD.ordinal(), "dustEmerald");
|
||
|
addOre(InitItems.itemDust, TheDusts.LAPIS.ordinal(), "dustLapis");
|
||
|
addOre(InitItems.itemDust, TheDusts.QUARTZ.ordinal(), "dustQuartz");
|
||
|
addOre(InitItems.itemDust, TheDusts.COAL.ordinal(), "dustCoal");
|
||
|
addOre(InitItems.itemDust, TheDusts.QUARTZ_BLACK.ordinal(), "dustQuartzBlack");
|
||
|
|
||
|
addOre(InitBlocks.blockMisc, TheMiscBlocks.ORE_QUARTZ.ordinal(), "oreQuartzBlack");
|
||
|
|
||
|
addOre(InitItems.itemCanolaSeed, "seedCanola");
|
||
|
addOre(InitItems.itemMisc, TheMiscItems.CANOLA.ordinal(), "cropCanola");
|
||
|
|
||
|
addOre(InitItems.itemRiceSeed, "seedRice");
|
||
|
addOre(InitItems.itemFoods, TheFoods.RICE.ordinal(), "cropRice");
|
||
|
|
||
|
addOre(InitItems.itemFlaxSeed, "seedFlax");
|
||
|
addOre(Items.string, "cropFlax");
|
||
|
|
||
|
addOre(InitItems.itemCoffeeSeed, "seedCoffee");
|
||
|
addOre(InitItems.itemCoffeeBean, "cropCoffee");
|
||
|
|
||
|
addOre(InitItems.itemMisc, TheMiscItems.RICE_SLIME.ordinal(), "slimeball");
|
||
|
addOre(InitBlocks.blockMisc, TheMiscBlocks.CHARCOAL_BLOCK.ordinal(), "blockCharcoal");
|
||
|
|
||
|
addOre(InitItems.itemSpecialDrop, TheSpecialDrops.EMERALD_SHARD.ordinal(), "nuggetEmerald");
|
||
|
addOre(InitItems.itemSpecialDrop, TheSpecialDrops.PEARL_SHARD.ordinal(), "nuggetEnderpearl");
|
||
|
}
|
||
|
|
||
|
private static void addOre(ItemStack stack, String name){
|
||
|
OreDictionary.registerOre(name, stack);
|
||
|
}
|
||
|
|
||
|
private static void addOre(Item item, int meta, String name){
|
||
|
addOre(new ItemStack(item, 1, meta), name);
|
||
|
}
|
||
|
|
||
|
private static void addOre(Item item, String name){
|
||
|
addOre(item, 0, name);
|
||
|
}
|
||
|
|
||
|
private static void addOre(Block block, int meta, String name){
|
||
|
addOre(new ItemStack(block, 1, meta), name);
|
||
|
}
|
||
|
|
||
|
private static void addOre(Block block, String name){
|
||
|
addOre(block, 0, name);
|
||
|
}
|
||
|
}
|