2017-02-23 13:29:43 +01:00
|
|
|
/*
|
|
|
|
* This file is part of TechReborn, licensed under the MIT License (MIT).
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017 TechReborn
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
|
|
* copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
* SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2015-04-11 18:03:14 +02:00
|
|
|
package techreborn.init;
|
|
|
|
|
2016-03-28 06:20:27 +02:00
|
|
|
import net.minecraft.inventory.EntityEquipmentSlot;
|
2015-04-12 01:03:49 +02:00
|
|
|
import net.minecraft.item.Item;
|
2015-05-09 03:15:38 +02:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2017-06-24 21:15:49 +02:00
|
|
|
import reborncore.RebornRegistry;
|
2017-01-18 10:55:24 +01:00
|
|
|
import reborncore.api.power.IEnergyInterfaceItem;
|
|
|
|
import reborncore.api.power.IEnergyItemInfo;
|
2016-02-20 17:59:31 +01:00
|
|
|
import reborncore.common.blocks.BlockMachineBase;
|
2015-11-08 13:15:45 +01:00
|
|
|
import reborncore.common.util.BucketHandler;
|
2017-07-01 20:27:07 +02:00
|
|
|
import reborncore.common.util.OreUtil;
|
2015-11-08 13:15:45 +01:00
|
|
|
import techreborn.Core;
|
2016-05-22 23:13:38 +02:00
|
|
|
import techreborn.api.Reference;
|
2017-06-14 17:56:09 +02:00
|
|
|
import techreborn.blocks.BlockMachineFrames;
|
2016-06-04 12:20:06 +02:00
|
|
|
import techreborn.config.ConfigTechReborn;
|
2016-03-29 11:30:55 +02:00
|
|
|
import techreborn.items.*;
|
2015-04-14 02:09:38 +02:00
|
|
|
import techreborn.items.armor.ItemLapotronPack;
|
|
|
|
import techreborn.items.armor.ItemLithiumBatpack;
|
2016-03-28 06:20:27 +02:00
|
|
|
import techreborn.items.armor.ItemTRArmour;
|
2016-12-09 03:39:49 +01:00
|
|
|
import techreborn.items.battery.*;
|
2016-03-29 11:30:55 +02:00
|
|
|
import techreborn.items.tools.*;
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-03-15 11:08:58 +01:00
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public class ModItems {
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-12-13 00:57:04 +01:00
|
|
|
public static final String META_PLACEHOLDER = "PLACEHOLDER_ITEM";
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item GEMS;
|
|
|
|
public static Item INGOTS;
|
|
|
|
public static Item NUGGETS;
|
|
|
|
public static Item DUSTS;
|
|
|
|
public static Item SMALL_DUSTS;
|
|
|
|
public static Item PARTS;
|
|
|
|
public static Item ROCK_CUTTER;
|
|
|
|
public static Item LITHIUM_BATTERY_PACK;
|
|
|
|
public static Item LAPOTRONIC_ORB_PACK;
|
|
|
|
public static Item LITHIUM_BATTERY;
|
|
|
|
public static Item OMNI_TOOL;
|
|
|
|
public static Item LAPOTRONIC_ORB;
|
|
|
|
public static Item MANUAL;
|
|
|
|
public static Item UU_MATTER;
|
|
|
|
public static Item PLATES;
|
|
|
|
public static Item CLOAKING_DEVICE;
|
|
|
|
public static Item RE_BATTERY;
|
|
|
|
public static Item TREE_TAP;
|
|
|
|
public static Item ELECTRIC_TREE_TAP;
|
|
|
|
public static Item STEEL_DRILL;
|
|
|
|
public static Item DIAMOND_DRILL;
|
|
|
|
public static Item ADVANCED_DRILL;
|
|
|
|
public static Item STEEL_CHAINSAW;
|
|
|
|
public static Item DIAMOND_CHAINSAW;
|
|
|
|
public static Item ADVANCED_CHAINSAW;
|
|
|
|
public static Item STEEL_JACKHAMMER;
|
|
|
|
public static Item DIAMOND_JACKHAMMER;
|
|
|
|
public static Item ADVANCED_JACKHAMMER;
|
|
|
|
public static Item NANOSABER;
|
|
|
|
public static Item WRENCH;
|
|
|
|
public static Item LAPOTRONIC_CRYSTAL;
|
|
|
|
public static Item ENERGY_CRYSTAL;
|
|
|
|
public static Item SCRAP_BOX;
|
|
|
|
public static Item FREQUENCY_TRANSMITTER;
|
2017-06-12 15:23:32 +02:00
|
|
|
public static @Nullable
|
|
|
|
Item BRONZE_SWORD;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_PICKAXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_SPADE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_AXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_HOE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_HELMET;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_CHESTPLATE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_LEGGINGS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item BRONZE_BOOTS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_SWORD;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_PICKAXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_SPADE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_AXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_HOE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_HELMET;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_CHESTPLATE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_LEGGINGS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item RUBY_BOOTS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_SWORD;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_PICKAXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_SPADE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_AXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_HOE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_HELMET;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_CHSTPLATE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_LEGGINGS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item SAPPHIRE_BOOTS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_SWORD;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_PICKAXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_SAPPHIRE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_AXE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_HOE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_HELMET;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_CHESTPLATE;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_LEGGINGS;
|
2017-03-15 11:08:58 +01:00
|
|
|
@Nullable
|
2017-01-01 08:29:32 +01:00
|
|
|
public static Item PERIDOT_BOOTS;
|
|
|
|
public static Item UPGRADES;
|
|
|
|
public static Item MISSING_RECIPE_PLACEHOLDER;
|
|
|
|
public static Item DEBUG;
|
|
|
|
public static DynamicCell CELL;
|
2016-05-17 22:12:33 +02:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void init() throws InstantiationException, IllegalAccessException {
|
2017-01-01 08:29:32 +01:00
|
|
|
GEMS = new ItemGems();
|
|
|
|
registerItem(GEMS, "gem");
|
|
|
|
INGOTS = new ItemIngots();
|
|
|
|
registerItem(INGOTS, "ingot");
|
|
|
|
DUSTS = new ItemDusts();
|
|
|
|
registerItem(DUSTS, "dust");
|
|
|
|
SMALL_DUSTS = new ItemDustsSmall();
|
|
|
|
registerItem(SMALL_DUSTS, "smallDust");
|
|
|
|
PLATES = new ItemPlates();
|
|
|
|
registerItem(PLATES, "plates");
|
|
|
|
NUGGETS = new ItemNuggets();
|
|
|
|
registerItem(NUGGETS, "nuggets");
|
2016-03-25 10:47:34 +01:00
|
|
|
// purifiedCrushedOre = new ItemPurifiedCrushedOre();
|
2016-05-17 22:39:07 +02:00
|
|
|
// registerItem(purifiedCrushedOre, "purifiedCrushedOre");
|
2017-01-01 08:29:32 +01:00
|
|
|
PARTS = new ItemParts();
|
|
|
|
registerItem(PARTS, "part");
|
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
ROCK_CUTTER = new ItemRockCutter();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ROCK_CUTTER, "rockCutter");
|
2017-01-18 10:55:24 +01:00
|
|
|
LITHIUM_BATTERY_PACK = new ItemLithiumBatpack();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(LITHIUM_BATTERY_PACK, "lithiumBatpack");
|
2017-01-18 10:55:24 +01:00
|
|
|
LAPOTRONIC_ORB_PACK = new ItemLapotronPack();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(LAPOTRONIC_ORB_PACK, "lapotronPack");
|
2017-01-18 10:55:24 +01:00
|
|
|
LITHIUM_BATTERY = new ItemLithiumBattery();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(LITHIUM_BATTERY, "lithiumBattery");
|
2017-01-18 10:55:24 +01:00
|
|
|
LAPOTRONIC_ORB = new ItemLapotronicOrb();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(LAPOTRONIC_ORB, "lapotronicOrb");
|
2017-01-18 10:55:24 +01:00
|
|
|
OMNI_TOOL = new ItemOmniTool();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(OMNI_TOOL, "omniTool");
|
2017-01-18 10:55:24 +01:00
|
|
|
ENERGY_CRYSTAL = new ItemEnergyCrystal();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ENERGY_CRYSTAL, "energycrystal");
|
2017-01-18 10:55:24 +01:00
|
|
|
LAPOTRONIC_CRYSTAL = new ItemLapotronCrystal();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(LAPOTRONIC_CRYSTAL, "lapotroncrystal");
|
|
|
|
|
|
|
|
MANUAL = new ItemTechManual();
|
|
|
|
registerItem(MANUAL, "techmanuel");
|
|
|
|
UU_MATTER = new ItemUUmatter();
|
|
|
|
registerItem(UU_MATTER, "uumatter");
|
2017-01-18 10:55:24 +01:00
|
|
|
RE_BATTERY = new ItemReBattery();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(RE_BATTERY, "rebattery");
|
|
|
|
TREE_TAP = new ItemTreeTap();
|
|
|
|
registerItem(TREE_TAP, "treetap");
|
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
ELECTRIC_TREE_TAP = new ItemElectricTreetap();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ELECTRIC_TREE_TAP, "electricTreetap");
|
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
STEEL_DRILL = new ItemSteelDrill();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(STEEL_DRILL, "irondrill");
|
2017-01-18 10:55:24 +01:00
|
|
|
DIAMOND_DRILL = new ItemDiamondDrill();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(DIAMOND_DRILL, "diamonddrill");
|
2017-01-18 10:55:24 +01:00
|
|
|
ADVANCED_DRILL = new ItemAdvancedDrill();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ADVANCED_DRILL, "advanceddrill");
|
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
STEEL_CHAINSAW = new ItemSteelChainsaw();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(STEEL_CHAINSAW, "ironchainsaw");
|
2017-01-18 10:55:24 +01:00
|
|
|
DIAMOND_CHAINSAW = new ItemDiamondChainsaw();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(DIAMOND_CHAINSAW, "diamondchainsaw");
|
2017-01-18 10:55:24 +01:00
|
|
|
ADVANCED_CHAINSAW = new ItemAdvancedChainsaw();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ADVANCED_CHAINSAW, "advancedchainsaw");
|
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
STEEL_JACKHAMMER = new ItemSteelJackhammer();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(STEEL_JACKHAMMER, "steeljackhammer");
|
2017-01-18 10:55:24 +01:00
|
|
|
DIAMOND_JACKHAMMER = new ItemDiamondJackhammer();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(DIAMOND_JACKHAMMER, "diamondjackhammer");
|
2017-01-18 10:55:24 +01:00
|
|
|
ADVANCED_JACKHAMMER = new ItemAdvancedJackhammer();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(ADVANCED_JACKHAMMER, "ironjackhammer");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
if (ConfigTechReborn.enableGemArmorAndTools) {
|
2017-01-01 08:29:32 +01:00
|
|
|
BRONZE_SWORD = new ItemTRSword(Reference.BRONZE);
|
|
|
|
registerItem(BRONZE_SWORD, "bronzeSword");
|
|
|
|
BRONZE_PICKAXE = new ItemTRPickaxe(Reference.BRONZE);
|
|
|
|
registerItem(BRONZE_PICKAXE, "bronzePickaxe");
|
|
|
|
BRONZE_SPADE = new ItemTRSpade(Reference.BRONZE);
|
|
|
|
registerItem(BRONZE_SPADE, "bronzeSpade");
|
|
|
|
BRONZE_AXE = new ItemTRAxe(Reference.BRONZE);
|
|
|
|
registerItem(BRONZE_AXE, "bronzeAxe");
|
|
|
|
BRONZE_HOE = new ItemTRHoe(Reference.BRONZE);
|
|
|
|
registerItem(BRONZE_HOE, "bronzeHoe");
|
|
|
|
|
|
|
|
BRONZE_HELMET = new ItemTRArmour(Reference.BRONZE_ARMOUR, EntityEquipmentSlot.HEAD);
|
|
|
|
registerItem(BRONZE_HELMET, "bronzeHelmet");
|
|
|
|
BRONZE_CHESTPLATE = new ItemTRArmour(Reference.BRONZE_ARMOUR, EntityEquipmentSlot.CHEST);
|
|
|
|
registerItem(BRONZE_CHESTPLATE, "bronzeChestplate");
|
|
|
|
BRONZE_LEGGINGS = new ItemTRArmour(Reference.BRONZE_ARMOUR, EntityEquipmentSlot.LEGS);
|
|
|
|
registerItem(BRONZE_LEGGINGS, "bronzeLeggings");
|
|
|
|
BRONZE_BOOTS = new ItemTRArmour(Reference.BRONZE_ARMOUR, EntityEquipmentSlot.FEET);
|
|
|
|
registerItem(BRONZE_BOOTS, "bronzeBoots");
|
|
|
|
|
|
|
|
RUBY_SWORD = new ItemTRSword(Reference.RUBY);
|
|
|
|
registerItem(RUBY_SWORD, "rubySword");
|
|
|
|
RUBY_PICKAXE = new ItemTRPickaxe(Reference.RUBY);
|
|
|
|
registerItem(RUBY_PICKAXE, "rubyPickaxe");
|
|
|
|
RUBY_SPADE = new ItemTRSpade(Reference.RUBY);
|
|
|
|
registerItem(RUBY_SPADE, "rubySpade");
|
|
|
|
RUBY_AXE = new ItemTRAxe(Reference.RUBY);
|
|
|
|
registerItem(RUBY_AXE, "rubyAxe");
|
|
|
|
RUBY_HOE = new ItemTRHoe(Reference.RUBY);
|
|
|
|
registerItem(RUBY_HOE, "rubyHoe");
|
|
|
|
|
|
|
|
RUBY_HELMET = new ItemTRArmour(Reference.RUBY_ARMOUR, EntityEquipmentSlot.HEAD);
|
|
|
|
registerItem(RUBY_HELMET, "rubyHelmet");
|
|
|
|
RUBY_CHESTPLATE = new ItemTRArmour(Reference.RUBY_ARMOUR, EntityEquipmentSlot.CHEST);
|
|
|
|
registerItem(RUBY_CHESTPLATE, "rubyChestplate");
|
|
|
|
RUBY_LEGGINGS = new ItemTRArmour(Reference.RUBY_ARMOUR, EntityEquipmentSlot.LEGS);
|
|
|
|
registerItem(RUBY_LEGGINGS, "rubyLeggings");
|
|
|
|
RUBY_BOOTS = new ItemTRArmour(Reference.RUBY_ARMOUR, EntityEquipmentSlot.FEET);
|
|
|
|
registerItem(RUBY_BOOTS, "rubyBoots");
|
|
|
|
|
|
|
|
SAPPHIRE_SWORD = new ItemTRSword(Reference.SAPPHIRE);
|
|
|
|
registerItem(SAPPHIRE_SWORD, "sapphireSword");
|
|
|
|
SAPPHIRE_PICKAXE = new ItemTRPickaxe(Reference.SAPPHIRE);
|
|
|
|
registerItem(SAPPHIRE_PICKAXE, "sapphirePickaxe");
|
|
|
|
SAPPHIRE_SPADE = new ItemTRSpade(Reference.SAPPHIRE);
|
|
|
|
registerItem(SAPPHIRE_SPADE, "sapphireSpade");
|
|
|
|
SAPPHIRE_AXE = new ItemTRAxe(Reference.SAPPHIRE);
|
|
|
|
registerItem(SAPPHIRE_AXE, "sapphireAxe");
|
|
|
|
SAPPHIRE_HOE = new ItemTRHoe(Reference.SAPPHIRE);
|
|
|
|
registerItem(SAPPHIRE_HOE, "sapphireHoe");
|
|
|
|
|
|
|
|
SAPPHIRE_HELMET = new ItemTRArmour(Reference.SAPPHIRE_ARMOUR, EntityEquipmentSlot.HEAD);
|
|
|
|
registerItem(SAPPHIRE_HELMET, "sapphireHelmet");
|
|
|
|
SAPPHIRE_CHSTPLATE = new ItemTRArmour(Reference.SAPPHIRE_ARMOUR, EntityEquipmentSlot.CHEST);
|
|
|
|
registerItem(SAPPHIRE_CHSTPLATE, "sapphireChestplate");
|
|
|
|
SAPPHIRE_LEGGINGS = new ItemTRArmour(Reference.SAPPHIRE_ARMOUR, EntityEquipmentSlot.LEGS);
|
|
|
|
registerItem(SAPPHIRE_LEGGINGS, "sapphireLeggings");
|
|
|
|
SAPPHIRE_BOOTS = new ItemTRArmour(Reference.SAPPHIRE_ARMOUR, EntityEquipmentSlot.FEET);
|
|
|
|
registerItem(SAPPHIRE_BOOTS, "sapphireBoots");
|
|
|
|
|
|
|
|
PERIDOT_SWORD = new ItemTRSword(Reference.PERIDOT);
|
|
|
|
registerItem(PERIDOT_SWORD, "peridotSword");
|
|
|
|
PERIDOT_PICKAXE = new ItemTRPickaxe(Reference.PERIDOT);
|
|
|
|
registerItem(PERIDOT_PICKAXE, "peridotPickaxe");
|
|
|
|
PERIDOT_SAPPHIRE = new ItemTRSpade(Reference.PERIDOT);
|
|
|
|
registerItem(PERIDOT_SAPPHIRE, "peridotSpade");
|
|
|
|
PERIDOT_AXE = new ItemTRAxe(Reference.PERIDOT);
|
|
|
|
registerItem(PERIDOT_AXE, "peridotAxe");
|
|
|
|
PERIDOT_HOE = new ItemTRHoe(Reference.PERIDOT);
|
|
|
|
registerItem(PERIDOT_HOE, "peridotHoe");
|
|
|
|
|
|
|
|
PERIDOT_HELMET = new ItemTRArmour(Reference.PERIDOT_ARMOUR, EntityEquipmentSlot.HEAD);
|
|
|
|
registerItem(PERIDOT_HELMET, "peridotHelmet");
|
|
|
|
PERIDOT_CHESTPLATE = new ItemTRArmour(Reference.PERIDOT_ARMOUR, EntityEquipmentSlot.CHEST);
|
|
|
|
registerItem(PERIDOT_CHESTPLATE, "peridotChestplate");
|
|
|
|
PERIDOT_LEGGINGS = new ItemTRArmour(Reference.PERIDOT_ARMOUR, EntityEquipmentSlot.LEGS);
|
|
|
|
registerItem(PERIDOT_LEGGINGS, "peridotLeggings");
|
|
|
|
PERIDOT_BOOTS = new ItemTRArmour(Reference.PERIDOT_ARMOUR, EntityEquipmentSlot.FEET);
|
|
|
|
registerItem(PERIDOT_BOOTS, "peridotBoots");
|
2016-06-04 12:20:06 +02:00
|
|
|
}
|
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
WRENCH = new ItemWrench();
|
|
|
|
registerItem(WRENCH, "wrench");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
NANOSABER = new ItemNanosaber();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(NANOSABER, "nanosaber");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
SCRAP_BOX = new ItemScrapBox();
|
|
|
|
registerItem(SCRAP_BOX, "scrapbox");
|
2016-10-08 21:46:16 +02:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
FREQUENCY_TRANSMITTER = new ItemFrequencyTransmitter();
|
|
|
|
registerItem(FREQUENCY_TRANSMITTER, "frequencyTransmitter");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
UPGRADES = new ItemUpgrades();
|
|
|
|
registerItem(UPGRADES, "upgrades");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-18 10:55:24 +01:00
|
|
|
CLOAKING_DEVICE = new ItemCloakingDevice();
|
2017-01-01 08:29:32 +01:00
|
|
|
registerItem(CLOAKING_DEVICE, "cloakingdevice");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
MISSING_RECIPE_PLACEHOLDER = new ItemMissingRecipe().setUnlocalizedName("missingRecipe");
|
|
|
|
registerItem(MISSING_RECIPE_PLACEHOLDER, "mssingRecipe");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
DEBUG = new ItemDebugTool();
|
|
|
|
registerItem(DEBUG, "debug");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2017-01-01 08:29:32 +01:00
|
|
|
CELL = new DynamicCell();
|
|
|
|
registerItem(CELL, "dynamicCell");
|
2016-05-17 22:12:33 +02:00
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
|
|
|
|
|
|
|
|
Core.logHelper.info("TechReborns Items Loaded");
|
|
|
|
|
2017-06-14 17:56:09 +02:00
|
|
|
BlockMachineBase.advancedFrameStack = BlockMachineFrames.getFrameByName("advanced", 1);
|
|
|
|
BlockMachineBase.basicFrameStack = BlockMachineFrames.getFrameByName("basic", 1);
|
2016-09-19 21:58:34 +02:00
|
|
|
|
2017-07-01 20:27:07 +02:00
|
|
|
OreUtil.registerOre("itemRubber", ItemParts.getPartByName("rubber"));
|
2016-03-25 10:47:34 +01:00
|
|
|
}
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void registerItem(Item item, String name) {
|
2016-05-17 22:39:07 +02:00
|
|
|
item.setRegistryName(name);
|
2017-06-24 21:15:49 +02:00
|
|
|
RebornRegistry.registerItem(item);
|
2017-06-12 15:23:32 +02:00
|
|
|
if (item.getClass().isInstance(IEnergyItemInfo.class)) {
|
|
|
|
if (!item.getClass().isInstance(IEnergyInterfaceItem.class)) {
|
2017-01-18 10:55:24 +01:00
|
|
|
Core.logHelper.error(name + " was not patched with the power mixin. This is a error, the item may not work as intended.");
|
|
|
|
Core.logHelper.error("Please check that the reborn core loading plugin has been registerd.");
|
|
|
|
}
|
|
|
|
}
|
2016-05-17 22:39:07 +02:00
|
|
|
}
|
|
|
|
|
2015-04-11 18:03:14 +02:00
|
|
|
}
|