ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/items/InitItems.java

280 lines
15 KiB
Java
Raw Normal View History

2015-03-07 12:51:28 +01:00
package ellpeck.actuallyadditions.items;
2015-01-05 22:14:01 +01:00
2015-05-20 22:39:43 +02:00
import ellpeck.actuallyadditions.blocks.InitBlocks;
import ellpeck.actuallyadditions.items.metalists.TheFoods;
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
2015-03-07 12:51:28 +01:00
import ellpeck.actuallyadditions.items.tools.*;
import ellpeck.actuallyadditions.material.InitArmorMaterials;
import ellpeck.actuallyadditions.material.InitToolMaterials;
2015-06-28 03:12:32 +02:00
import ellpeck.actuallyadditions.util.CompatUtil;
2015-03-29 15:29:05 +02:00
import ellpeck.actuallyadditions.util.ItemUtil;
2015-07-01 21:32:48 +02:00
import ellpeck.actuallyadditions.util.ModUtil;
2015-03-19 21:27:56 +01:00
import net.minecraft.init.Items;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
2015-03-19 21:27:56 +01:00
import net.minecraft.item.ItemStack;
2015-05-20 22:39:43 +02:00
import net.minecraftforge.fluids.FluidContainerRegistry;
public class InitItems{
public static Item itemFertilizer;
public static Item itemMisc;
2015-01-30 20:16:32 +01:00
public static Item itemFoods;
public static Item itemJams;
public static Item itemKnife;
public static Item itemCrafterOnAStick;
public static Item itemDust;
public static Item itemSpecialDrop;
2015-03-29 15:29:05 +02:00
public static Item itemLeafBlower;
public static Item itemLeafBlowerAdvanced;
2015-01-05 22:14:01 +01:00
2015-03-31 20:37:55 +02:00
public static Item itemPotionRing;
public static Item itemPotionRingAdvanced;
public static Item itemPickaxeEmerald;
public static Item itemAxeEmerald;
public static Item itemShovelEmerald;
public static Item itemSwordEmerald;
public static Item itemHoeEmerald;
public static Item itemHelmEmerald;
public static Item itemChestEmerald;
public static Item itemPantsEmerald;
public static Item itemBootsEmerald;
public static Item itemPickaxeObsidian;
public static Item itemAxeObsidian;
public static Item itemShovelObsidian;
public static Item itemSwordObsidian;
public static Item itemHoeObsidian;
2015-07-25 08:34:02 +02:00
public static Item itemPickaxeQuartz;
public static Item itemAxeQuartz;
public static Item itemShovelQuartz;
public static Item itemSwordQuartz;
public static Item itemHoeQuartz;
public static Item itemHelmObsidian;
public static Item itemChestObsidian;
public static Item itemPantsObsidian;
public static Item itemBootsObsidian;
2015-07-25 08:34:02 +02:00
public static Item itemHelmQuartz;
public static Item itemChestQuartz;
public static Item itemPantsQuartz;
public static Item itemBootsQuartz;
2015-05-07 16:36:29 +02:00
public static Item itemHairyBall;
2015-06-06 01:25:53 +02:00
2015-05-20 22:39:43 +02:00
public static Item itemRiceSeed;
public static Item itemCanolaSeed;
2015-06-06 01:25:53 +02:00
public static Item itemFlaxSeed;
public static Item itemCoffeeSeed;
2015-06-06 01:25:53 +02:00
2015-05-20 22:39:43 +02:00
public static Item itemResonantRice;
public static Item itemBucketOil;
public static Item itemBucketCanolaOil;
public static Item itemPhantomConnector;
2015-05-07 16:36:29 +02:00
public static Item itemCoffeeBean;
public static Item itemCoffee;
public static Item woodenPaxel;
public static Item stonePaxel;
public static Item ironPaxel;
public static Item diamondPaxel;
public static Item goldPaxel;
public static Item emeraldPaxel;
public static Item obsidianPaxel;
2015-07-29 18:58:23 +02:00
public static Item quartzPaxel;
2015-06-21 02:28:49 +02:00
public static Item itemDrill;
public static Item itemDrillUpgradeSpeed;
public static Item itemDrillUpgradeSpeedII;
public static Item itemDrillUpgradeSpeedIII;
public static Item itemDrillUpgradeSilkTouch;
public static Item itemDrillUpgradeFortune;
public static Item itemDrillUpgradeFortuneII;
public static Item itemDrillUpgradeThreeByThree;
public static Item itemDrillUpgradeFiveByFive;
public static Item itemDrillUpgradeBlockPlacing;
public static Item itemBattery;
public static Item itemBatteryDouble;
public static Item itemBatteryTriple;
public static Item itemBatteryQuadruple;
public static Item itemBatteryQuintuple;
2015-06-15 22:06:07 +02:00
public static Item itemTeleStaff;
2015-07-17 06:51:19 +02:00
public static Item itemWingsOfTheBats;
public static Item itemGrowthRing;
2015-07-25 12:11:31 +02:00
public static Item itemMagnetRing;
public static Item itemWaterRemovalRing;
2015-01-05 22:14:01 +01:00
public static void init(){
2015-07-01 21:32:48 +02:00
ModUtil.LOGGER.info("Initializing Items...");
2015-01-05 22:14:01 +01:00
itemGrowthRing = new ItemGrowthRing();
ItemUtil.register(itemGrowthRing);
2015-07-25 12:11:31 +02:00
itemMagnetRing = new ItemMagnetRing();
ItemUtil.register(itemMagnetRing);
itemWaterRemovalRing = new ItemWaterRemovalRing();
ItemUtil.register(itemWaterRemovalRing);
2015-07-25 08:51:28 +02:00
itemHelmEmerald = new ItemArmorAA("itemHelmEmerald", InitArmorMaterials.armorMaterialEmerald, 0, "gemEmerald", "armorEmerald");
itemChestEmerald = new ItemArmorAA("itemChestEmerald", InitArmorMaterials.armorMaterialEmerald, 1, "gemEmerald", "armorEmerald");
itemPantsEmerald = new ItemArmorAA("itemPantsEmerald", InitArmorMaterials.armorMaterialEmerald, 2, "gemEmerald", "armorEmerald");
itemBootsEmerald = new ItemArmorAA("itemBootsEmerald", InitArmorMaterials.armorMaterialEmerald, 3, "gemEmerald", "armorEmerald");
ItemUtil.registerItems(new Item[]{itemHelmEmerald, itemChestEmerald, itemPantsEmerald, itemBootsEmerald});
2015-07-25 08:51:28 +02:00
itemHelmObsidian = new ItemArmorAA("itemHelmObsidian", InitArmorMaterials.armorMaterialObsidian, 0, "obsidian", "armorObsidian");
itemChestObsidian = new ItemArmorAA("itemChestObsidian", InitArmorMaterials.armorMaterialObsidian, 1, "obsidian", "armorObsidian");
itemPantsObsidian = new ItemArmorAA("itemPantsObsidian", InitArmorMaterials.armorMaterialObsidian, 2, "obsidian", "armorObsidian");
itemBootsObsidian = new ItemArmorAA("itemBootsObsidian", InitArmorMaterials.armorMaterialObsidian, 3, "obsidian", "armorObsidian");
ItemUtil.registerItems(new Item[]{itemHelmObsidian, itemChestObsidian, itemPantsObsidian, itemBootsObsidian});
2015-07-25 08:51:28 +02:00
itemHelmQuartz = new ItemArmorAA("itemHelmQuartz", InitArmorMaterials.armorMaterialQuartz, 0, "gemQuartzBlack", "armorQuartz");
itemChestQuartz = new ItemArmorAA("itemChestQuartz", InitArmorMaterials.armorMaterialQuartz, 1, "gemQuartzBlack", "armorQuartz");
itemPantsQuartz = new ItemArmorAA("itemPantsQuartz", InitArmorMaterials.armorMaterialQuartz, 2, "gemQuartzBlack", "armorQuartz");
itemBootsQuartz = new ItemArmorAA("itemBootsQuartz", InitArmorMaterials.armorMaterialQuartz, 3, "gemQuartzBlack", "armorQuartz");
2015-07-25 08:34:02 +02:00
ItemUtil.registerItems(new Item[]{itemHelmQuartz, itemChestQuartz, itemPantsQuartz, itemBootsQuartz});
itemTeleStaff = new ItemTeleStaff();
ItemUtil.register(itemTeleStaff);
2015-07-17 12:47:42 +02:00
itemWingsOfTheBats = new ItemWingsOfTheBats();
2015-07-17 06:51:19 +02:00
ItemUtil.register(itemWingsOfTheBats);
2015-06-21 02:28:49 +02:00
itemDrill = new ItemDrill();
ItemUtil.register(itemDrill);
itemBattery = new ItemBattery("itemBattery", 1000000, 5000);
itemBatteryDouble = new ItemBattery("itemBatteryDouble", 2000000, 10000);
itemBatteryTriple = new ItemBattery("itemBatteryTriple", 3000000, 15000);
itemBatteryQuadruple = new ItemBattery("itemBatteryQuadruple", 4000000, 20000);
itemBatteryQuintuple = new ItemBattery("itemBatteryQuintuple", 5000000, 25000);
ItemUtil.registerItems(new Item[]{itemBattery, itemBatteryDouble, itemBatteryTriple, itemBatteryQuadruple, itemBatteryQuintuple});
2015-06-21 02:28:49 +02:00
itemDrillUpgradeSpeed = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.SPEED, "itemDrillUpgradeSpeed");
itemDrillUpgradeSpeedII = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.SPEED_II, "itemDrillUpgradeSpeedII");
itemDrillUpgradeSpeedIII = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.SPEED_III, "itemDrillUpgradeSpeedIII");
itemDrillUpgradeSilkTouch = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.SILK_TOUCH, "itemDrillUpgradeSilkTouch");
itemDrillUpgradeFortune = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.FORTUNE, "itemDrillUpgradeFortune");
itemDrillUpgradeFortuneII = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.FORTUNE_II, "itemDrillUpgradeFortuneII");
itemDrillUpgradeThreeByThree = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.THREE_BY_THREE, "itemDrillUpgradeThreeByThree");
itemDrillUpgradeFiveByFive = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.FIVE_BY_FIVE, "itemDrillUpgradeFiveByFive");
itemDrillUpgradeBlockPlacing = new ItemDrillUpgrade(ItemDrillUpgrade.UpgradeType.PLACER, "itemDrillUpgradeBlockPlacing");
ItemUtil.registerItems(new Item[]{itemDrillUpgradeSpeed, itemDrillUpgradeSpeedII, itemDrillUpgradeSpeedIII, itemDrillUpgradeSilkTouch, itemDrillUpgradeFortune, itemDrillUpgradeFortuneII, itemDrillUpgradeThreeByThree, itemDrillUpgradeFiveByFive, itemDrillUpgradeBlockPlacing});
2015-06-15 22:06:07 +02:00
2015-05-20 22:39:43 +02:00
itemBucketOil = new ItemBucketAA(InitBlocks.blockOil, "itemBucketOil");
ItemUtil.register(itemBucketOil);
FluidContainerRegistry.registerFluidContainer(InitBlocks.fluidOil, new ItemStack(itemBucketOil), FluidContainerRegistry.EMPTY_BUCKET);
itemBucketCanolaOil = new ItemBucketAA(InitBlocks.blockCanolaOil, "itemBucketCanolaOil");
ItemUtil.register(itemBucketCanolaOil);
FluidContainerRegistry.registerFluidContainer(InitBlocks.fluidCanolaOil, new ItemStack(itemBucketCanolaOil), FluidContainerRegistry.EMPTY_BUCKET);
itemFertilizer = new ItemFertilizer();
2015-03-29 15:29:05 +02:00
ItemUtil.register(itemFertilizer);
2015-06-21 02:28:49 +02:00
itemCoffee = new ItemCoffee();
ItemUtil.register(itemCoffee);
2015-05-20 22:39:43 +02:00
itemPhantomConnector = new ItemPhantomConnector();
ItemUtil.register(itemPhantomConnector);
itemResonantRice = new ItemResonantRice();
ItemUtil.register(itemResonantRice);
itemMisc = new ItemMisc();
ItemUtil.register(itemMisc);
2015-01-30 20:16:32 +01:00
itemFoods = new ItemFoods();
ItemUtil.register(itemFoods);
itemJams = new ItemJams();
ItemUtil.register(itemJams);
itemKnife = new ItemKnife();
2015-03-29 15:29:05 +02:00
ItemUtil.register(itemKnife);
itemCrafterOnAStick = new ItemCrafterOnAStick();
2015-03-29 15:29:05 +02:00
ItemUtil.register(itemCrafterOnAStick);
itemDust = new ItemDust();
ItemUtil.register(itemDust);
itemSpecialDrop = new ItemSpecialDrop();
ItemUtil.register(itemSpecialDrop);
2015-03-29 15:29:05 +02:00
itemLeafBlower = new ItemLeafBlower(false);
ItemUtil.register(itemLeafBlower);
itemLeafBlowerAdvanced = new ItemLeafBlower(true);
ItemUtil.register(itemLeafBlowerAdvanced);
2015-03-31 20:37:55 +02:00
itemPotionRing = new ItemPotionRing(false);
ItemUtil.register(itemPotionRing);
itemPotionRingAdvanced = new ItemPotionRing(true);
ItemUtil.register(itemPotionRingAdvanced);
2015-05-07 16:36:29 +02:00
itemHairyBall = new ItemHairyBall();
ItemUtil.register(itemHairyBall);
itemCoffeeBean = new ItemCoffeeBean();
ItemUtil.register(itemCoffeeBean);
itemRiceSeed = new ItemSeed("itemRiceSeed", "seedRice", InitBlocks.blockRice, itemFoods, TheFoods.RICE.ordinal());
2015-05-20 22:39:43 +02:00
ItemUtil.register(itemRiceSeed);
2015-06-28 03:12:32 +02:00
CompatUtil.registerMFRSeed(itemRiceSeed);
2015-05-20 22:39:43 +02:00
itemCanolaSeed = new ItemSeed("itemCanolaSeed", "seedCanola", InitBlocks.blockCanola, itemMisc, TheMiscItems.CANOLA.ordinal());
2015-05-20 22:39:43 +02:00
ItemUtil.register(itemCanolaSeed);
2015-06-28 03:12:32 +02:00
CompatUtil.registerMFRSeed(itemCanolaSeed);
2015-05-20 22:39:43 +02:00
itemFlaxSeed = new ItemSeed("itemFlaxSeed", "seedFlax", InitBlocks.blockFlax, Items.string, 0);
2015-06-06 01:25:53 +02:00
ItemUtil.register(itemFlaxSeed);
2015-06-28 03:12:32 +02:00
CompatUtil.registerMFRSeed(itemFlaxSeed);
2015-06-06 01:25:53 +02:00
itemCoffeeSeed = new ItemSeed("itemCoffeeSeed", "seedCoffeeBeans", InitBlocks.blockCoffee, itemCoffeeBean, 0);
ItemUtil.register(itemCoffeeSeed);
2015-06-28 03:12:32 +02:00
CompatUtil.registerMFRSeed(itemCoffeeSeed);
2015-07-25 08:34:02 +02:00
itemPickaxeEmerald = new ItemPickaxeAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "itemPickaxeEmerald", EnumRarity.epic);
itemAxeEmerald = new ItemAxeAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "itemAxeEmerald", EnumRarity.epic);
itemShovelEmerald = new ItemShovelAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "itemShovelEmerald", EnumRarity.epic);
itemSwordEmerald = new ItemSwordAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "itemSwordEmerald", EnumRarity.epic);
itemHoeEmerald = new ItemHoeAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "itemHoeEmerald", EnumRarity.epic);
2015-03-29 15:29:05 +02:00
ItemUtil.registerItems(new Item[]{itemPickaxeEmerald, itemAxeEmerald, itemShovelEmerald, itemSwordEmerald, itemHoeEmerald});
2015-07-12 22:05:34 +02:00
itemPickaxeObsidian = new ItemPickaxeAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "itemPickaxeObsidian", EnumRarity.uncommon);
itemAxeObsidian = new ItemAxeAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "itemAxeObsidian", EnumRarity.uncommon);
itemShovelObsidian = new ItemShovelAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "itemShovelObsidian", EnumRarity.uncommon);
itemSwordObsidian = new ItemSwordAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "itemSwordObsidian", EnumRarity.uncommon);
itemHoeObsidian = new ItemHoeAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "itemHoeObsidian", EnumRarity.uncommon);
2015-03-29 15:29:05 +02:00
ItemUtil.registerItems(new Item[]{itemPickaxeObsidian, itemAxeObsidian, itemShovelObsidian, itemSwordObsidian, itemHoeObsidian});
2015-07-25 08:39:05 +02:00
itemPickaxeQuartz = new ItemPickaxeAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "itemPickaxeQuartz", EnumRarity.rare);
itemAxeQuartz = new ItemAxeAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "itemAxeQuartz", EnumRarity.rare);
itemShovelQuartz = new ItemShovelAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "itemShovelQuartz", EnumRarity.rare);
itemSwordQuartz = new ItemSwordAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "itemSwordQuartz", EnumRarity.rare);
itemHoeQuartz = new ItemHoeAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "itemHoeQuartz", EnumRarity.rare);
2015-07-25 08:34:02 +02:00
ItemUtil.registerItems(new Item[]{itemPickaxeQuartz, itemAxeQuartz, itemShovelQuartz, itemSwordQuartz, itemHoeQuartz});
2015-07-12 22:05:34 +02:00
woodenPaxel = new ItemAllToolAA(Item.ToolMaterial.WOOD, "plankWood", "woodenPaxel", EnumRarity.uncommon);
stonePaxel = new ItemAllToolAA(Item.ToolMaterial.STONE, "stone", "stonePaxel", EnumRarity.uncommon);
ironPaxel = new ItemAllToolAA(Item.ToolMaterial.IRON, "ingotIron", "ironPaxel", EnumRarity.rare);
goldPaxel = new ItemAllToolAA(Item.ToolMaterial.GOLD, "ingotGold", "goldPaxel", EnumRarity.rare);
diamondPaxel = new ItemAllToolAA(Item.ToolMaterial.EMERALD, "gemDiamond", "diamondPaxel", EnumRarity.epic);
emeraldPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "emeraldPaxel", EnumRarity.epic);
obsidianPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "obsidianPaxel", EnumRarity.epic);
2015-07-29 18:58:23 +02:00
quartzPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "quartzPaxel", EnumRarity.rare);
ItemUtil.registerItems(new Item[]{woodenPaxel, stonePaxel, ironPaxel, goldPaxel, diamondPaxel, emeraldPaxel, obsidianPaxel, quartzPaxel});
2015-01-05 22:14:01 +01:00
}
}