2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("InitItems.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-12-30 22:02:15 +01:00
|
|
|
package de.ellpeck.actuallyadditions.items;
|
2015-01-05 22:14:01 +01:00
|
|
|
|
2015-12-30 22:02:15 +01:00
|
|
|
import de.ellpeck.actuallyadditions.blocks.InitBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.items.base.*;
|
|
|
|
import de.ellpeck.actuallyadditions.items.lens.ItemLens;
|
|
|
|
import de.ellpeck.actuallyadditions.items.lens.Lenses;
|
|
|
|
import de.ellpeck.actuallyadditions.items.metalists.TheFoods;
|
|
|
|
import de.ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
|
|
|
import de.ellpeck.actuallyadditions.material.InitArmorMaterials;
|
|
|
|
import de.ellpeck.actuallyadditions.material.InitToolMaterials;
|
|
|
|
import de.ellpeck.actuallyadditions.util.CompatUtil;
|
|
|
|
import de.ellpeck.actuallyadditions.util.ModUtil;
|
2015-03-19 21:27:56 +01:00
|
|
|
import net.minecraft.init.Items;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.item.EnumRarity;
|
2015-01-29 20:23:19 +01:00
|
|
|
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;
|
2015-01-29 20:23:19 +01:00
|
|
|
|
|
|
|
public class InitItems{
|
|
|
|
|
2015-12-03 20:15:07 +01:00
|
|
|
public static Item itemBooklet;
|
2015-08-28 21:17:09 +02:00
|
|
|
|
2015-01-29 20:23:19 +01:00
|
|
|
public static Item itemFertilizer;
|
|
|
|
public static Item itemMisc;
|
2015-01-30 20:16:32 +01:00
|
|
|
public static Item itemFoods;
|
2015-04-06 15:51:59 +02:00
|
|
|
public static Item itemJams;
|
2015-02-09 17:25:05 +01:00
|
|
|
public static Item itemKnife;
|
2015-03-07 02:23:31 +01:00
|
|
|
public static Item itemCrafterOnAStick;
|
|
|
|
public static Item itemDust;
|
2015-12-28 15:05:56 +01:00
|
|
|
public static Item itemSolidifiedExperience;
|
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;
|
|
|
|
|
2015-02-17 16:15:16 +01:00
|
|
|
public static Item itemPickaxeEmerald;
|
|
|
|
public static Item itemAxeEmerald;
|
|
|
|
public static Item itemShovelEmerald;
|
|
|
|
public static Item itemSwordEmerald;
|
|
|
|
public static Item itemHoeEmerald;
|
2015-10-02 16:48:01 +02:00
|
|
|
|
2015-07-11 06:45:26 +02:00
|
|
|
public static Item itemHelmEmerald;
|
|
|
|
public static Item itemChestEmerald;
|
|
|
|
public static Item itemPantsEmerald;
|
|
|
|
public static Item itemBootsEmerald;
|
2015-02-17 16:15:16 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2015-07-11 06:45:26 +02:00
|
|
|
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;
|
2015-06-12 19:12:06 +02:00
|
|
|
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
|
|
|
|
2015-06-12 19:12:06 +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-12 19:12:06 +02:00
|
|
|
|
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;
|
2015-07-16 16:52:28 +02:00
|
|
|
public static Item itemBatteryDouble;
|
|
|
|
public static Item itemBatteryTriple;
|
|
|
|
public static Item itemBatteryQuadruple;
|
|
|
|
public static Item itemBatteryQuintuple;
|
2015-06-15 22:06:07 +02:00
|
|
|
|
2015-07-07 20:20:24 +02:00
|
|
|
public static Item itemTeleStaff;
|
2015-07-17 06:51:19 +02:00
|
|
|
public static Item itemWingsOfTheBats;
|
|
|
|
|
2015-07-25 11:06:10 +02:00
|
|
|
public static Item itemGrowthRing;
|
2015-07-25 12:11:31 +02:00
|
|
|
public static Item itemMagnetRing;
|
2015-07-26 02:36:42 +02:00
|
|
|
public static Item itemWaterRemovalRing;
|
2015-07-25 11:06:10 +02:00
|
|
|
|
2015-10-13 18:48:44 +02:00
|
|
|
public static Item itemChestToCrateUpgrade;
|
2015-12-16 15:22:19 +01:00
|
|
|
public static Item itemCrateKeeper;
|
2015-10-13 18:48:44 +02:00
|
|
|
|
2015-10-20 00:22:36 +02:00
|
|
|
public static Item itemLaserWrench;
|
2015-11-14 14:30:35 +01:00
|
|
|
public static Item itemCrystal;
|
2015-11-22 18:52:11 +01:00
|
|
|
public static Item itemColorLens;
|
2015-11-27 15:57:38 +01:00
|
|
|
public static Item itemExplosionLens;
|
2015-11-28 19:30:24 +01:00
|
|
|
public static Item itemDamageLens;
|
2015-10-20 00:22:36 +02:00
|
|
|
|
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
|
|
|
|
2015-12-16 15:22:19 +01:00
|
|
|
itemCrateKeeper = new ItemGeneric("itemCrateKeeper");
|
2015-12-03 22:49:31 +01:00
|
|
|
itemColorLens = new ItemLens("itemColorLens", Lenses.LENS_COLOR);
|
|
|
|
itemExplosionLens = new ItemLens("itemExplosionLens", Lenses.LENS_DETONATION);
|
|
|
|
itemDamageLens = new ItemLens("itemDamageLens", Lenses.LENS_DEATH);
|
2015-12-03 20:15:07 +01:00
|
|
|
itemCrystal = new ItemCrystal("itemCrystal");
|
|
|
|
itemLaserWrench = new ItemLaserWrench("itemLaserWrench");
|
|
|
|
itemChestToCrateUpgrade = new ItemChestToCrateUpgrade("itemChestToCrateUpgrade");
|
|
|
|
itemBooklet = new ItemBooklet("itemBooklet");
|
|
|
|
itemGrowthRing = new ItemGrowthRing("itemGrowthRing");
|
|
|
|
itemMagnetRing = new ItemMagnetRing("itemSuctionRing");
|
|
|
|
itemWaterRemovalRing = new ItemWaterRemovalRing("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");
|
|
|
|
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");
|
|
|
|
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-12-03 20:15:07 +01:00
|
|
|
itemTeleStaff = new ItemTeleStaff("itemTeleStaff");
|
|
|
|
itemWingsOfTheBats = new ItemWingsOfTheBats("itemWingsOfTheBats");
|
|
|
|
itemDrill = new ItemDrill("itemDrill");
|
2015-07-16 16:52:28 +02:00
|
|
|
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);
|
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");
|
2015-05-20 22:39:43 +02:00
|
|
|
itemBucketOil = new ItemBucketAA(InitBlocks.blockOil, "itemBucketOil");
|
|
|
|
FluidContainerRegistry.registerFluidContainer(InitBlocks.fluidOil, new ItemStack(itemBucketOil), FluidContainerRegistry.EMPTY_BUCKET);
|
|
|
|
itemBucketCanolaOil = new ItemBucketAA(InitBlocks.blockCanolaOil, "itemBucketCanolaOil");
|
|
|
|
FluidContainerRegistry.registerFluidContainer(InitBlocks.fluidCanolaOil, new ItemStack(itemBucketCanolaOil), FluidContainerRegistry.EMPTY_BUCKET);
|
2015-12-03 20:15:07 +01:00
|
|
|
itemFertilizer = new ItemFertilizer("itemFertilizer");
|
|
|
|
itemCoffee = new ItemCoffee("itemCoffee");
|
|
|
|
itemPhantomConnector = new ItemPhantomConnector("itemPhantomConnector");
|
|
|
|
itemResonantRice = new ItemResonantRice("itemResonantRice");
|
|
|
|
itemMisc = new ItemMisc("itemMisc");
|
|
|
|
itemFoods = new ItemFoods("itemFood");
|
|
|
|
itemJams = new ItemJams("itemJam");
|
|
|
|
itemKnife = new ItemKnife("itemKnife");
|
|
|
|
itemCrafterOnAStick = new ItemCrafterOnAStick("itemCrafterOnAStick");
|
|
|
|
itemDust = new ItemDust("itemDust");
|
2015-12-28 15:05:56 +01:00
|
|
|
itemSolidifiedExperience = new ItemSolidifiedExperience("itemSolidifiedExperience");
|
2015-12-03 20:15:07 +01:00
|
|
|
itemLeafBlower = new ItemLeafBlower(false, "itemLeafBlower");
|
|
|
|
itemLeafBlowerAdvanced = new ItemLeafBlower(true, "itemLeafBlowerAdvanced");
|
|
|
|
itemPotionRing = new ItemPotionRing(false, "itemPotionRing");
|
|
|
|
itemPotionRingAdvanced = new ItemPotionRing(true, "itemPotionRingAdvanced");
|
|
|
|
itemHairyBall = new ItemHairyBall("itemHairyBall");
|
|
|
|
itemCoffeeBean = new ItemCoffeeBean("itemCoffeeBeans");
|
2015-06-29 20:55:56 +02:00
|
|
|
itemRiceSeed = new ItemSeed("itemRiceSeed", "seedRice", InitBlocks.blockRice, itemFoods, TheFoods.RICE.ordinal());
|
2015-06-28 03:12:32 +02:00
|
|
|
CompatUtil.registerMFRSeed(itemRiceSeed);
|
2015-06-29 20:55:56 +02:00
|
|
|
itemCanolaSeed = new ItemSeed("itemCanolaSeed", "seedCanola", InitBlocks.blockCanola, itemMisc, TheMiscItems.CANOLA.ordinal());
|
2015-06-28 03:12:32 +02:00
|
|
|
CompatUtil.registerMFRSeed(itemCanolaSeed);
|
2015-06-29 20:55:56 +02:00
|
|
|
itemFlaxSeed = new ItemSeed("itemFlaxSeed", "seedFlax", InitBlocks.blockFlax, Items.string, 0);
|
2015-06-28 03:12:32 +02:00
|
|
|
CompatUtil.registerMFRSeed(itemFlaxSeed);
|
2015-06-29 20:55:56 +02:00
|
|
|
itemCoffeeSeed = new ItemSeed("itemCoffeeSeed", "seedCoffeeBeans", InitBlocks.blockCoffee, itemCoffeeBean, 0);
|
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-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-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-10-25 23:19:01 +01:00
|
|
|
woodenPaxel = new ItemAllToolAA(Item.ToolMaterial.WOOD, "plankWood", "woodenPaxel", EnumRarity.uncommon, 5192733);
|
|
|
|
stonePaxel = new ItemAllToolAA(Item.ToolMaterial.STONE, "stone", "stonePaxel", EnumRarity.uncommon, 7040621);
|
|
|
|
ironPaxel = new ItemAllToolAA(Item.ToolMaterial.IRON, "ingotIron", "ironPaxel", EnumRarity.rare, 10920613);
|
|
|
|
goldPaxel = new ItemAllToolAA(Item.ToolMaterial.GOLD, "ingotGold", "goldPaxel", EnumRarity.rare, 16770048);
|
|
|
|
diamondPaxel = new ItemAllToolAA(Item.ToolMaterial.EMERALD, "gemDiamond", "diamondPaxel", EnumRarity.epic, 3250376);
|
|
|
|
emeraldPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialEmerald, "gemEmerald", "emeraldPaxel", EnumRarity.epic, 7723338);
|
|
|
|
obsidianPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialObsidian, "obsidian", "obsidianPaxel", EnumRarity.epic, 4166);
|
|
|
|
quartzPaxel = new ItemAllToolAA(InitToolMaterials.toolMaterialQuartz, "gemQuartzBlack", "quartzPaxel", EnumRarity.rare, 1710103);
|
2015-01-05 22:14:01 +01:00
|
|
|
}
|
|
|
|
}
|