159 lines
9.8 KiB
Java
159 lines
9.8 KiB
Java
package mekanism.common;
|
|
|
|
import mekanism.common.item.ItemAtomicDisassembler;
|
|
import mekanism.common.item.ItemBalloon;
|
|
import mekanism.common.item.ItemClump;
|
|
import mekanism.common.item.ItemConfigurator;
|
|
import mekanism.common.item.ItemControlCircuit;
|
|
import mekanism.common.item.ItemCrystal;
|
|
import mekanism.common.item.ItemDictionary;
|
|
import mekanism.common.item.ItemDirtyDust;
|
|
import mekanism.common.item.ItemDust;
|
|
import mekanism.common.item.ItemElectricBow;
|
|
import mekanism.common.item.ItemEnergized;
|
|
import mekanism.common.item.ItemFilterCard;
|
|
import mekanism.common.item.ItemFlamethrower;
|
|
import mekanism.common.item.ItemFreeRunners;
|
|
import mekanism.common.item.ItemGasMask;
|
|
import mekanism.common.item.ItemGaugeDropper;
|
|
import mekanism.common.item.ItemHDPE;
|
|
import mekanism.common.item.ItemIngot;
|
|
import mekanism.common.item.ItemJetpack;
|
|
import mekanism.common.item.ItemMekanism;
|
|
import mekanism.common.item.ItemNetworkReader;
|
|
import mekanism.common.item.ItemPortableTeleporter;
|
|
import mekanism.common.item.ItemProxy;
|
|
import mekanism.common.item.ItemRobit;
|
|
import mekanism.common.item.ItemScubaTank;
|
|
import mekanism.common.item.ItemSeismicReader;
|
|
import mekanism.common.item.ItemShard;
|
|
import mekanism.common.item.ItemUpgrade;
|
|
import mekanism.common.item.ItemWalkieTalkie;
|
|
import mekanism.common.multipart.ItemGlowPanel;
|
|
import mekanism.common.multipart.ItemPartTransmitter;
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
import net.minecraftforge.fluids.FluidContainerRegistry;
|
|
import net.minecraftforge.fluids.FluidRegistry;
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
|
|
|
@ObjectHolder("Mekanism")
|
|
public class MekanismItems
|
|
{
|
|
public static final Item EnrichedAlloy = new ItemMekanism().setUnlocalizedName("EnrichedAlloy");
|
|
public static final Item ReinforcedAlloy = new ItemMekanism().setUnlocalizedName("ReinforcedAlloy");
|
|
public static final Item AtomicAlloy = new ItemMekanism().setUnlocalizedName("AtomicAlloy");
|
|
public static final Item TeleportationCore = new ItemMekanism().setUnlocalizedName("TeleportationCore");
|
|
public static final Item ElectrolyticCore = new ItemMekanism().setUnlocalizedName("ElectrolyticCore");
|
|
public static final Item Substrate = new ItemMekanism().setUnlocalizedName("Substrate");
|
|
public static final Item Polyethene = new ItemHDPE().setUnlocalizedName("HDPE");
|
|
public static final Item BioFuel = new ItemMekanism().setUnlocalizedName("BioFuel");
|
|
public static final Item ItemProxy = new ItemProxy().setUnlocalizedName("ItemProxy");
|
|
public static final Item EnrichedIron = new ItemMekanism().setUnlocalizedName("EnrichedIron");
|
|
public static final Item CompressedCarbon = new ItemMekanism().setUnlocalizedName("CompressedCarbon");
|
|
public static final Item CompressedRedstone = new ItemMekanism().setUnlocalizedName("CompressedRedstone");
|
|
public static final Item CompressedDiamond = new ItemMekanism().setUnlocalizedName("CompressedDiamond");
|
|
public static final Item CompressedObsidian = new ItemMekanism().setUnlocalizedName("CompressedObsidian");
|
|
public static final Item BrineBucket = new ItemMekanism().setMaxStackSize(1).setContainerItem(Items.bucket).setUnlocalizedName("BrineBucket");
|
|
public static final Item LithiumBucket = new ItemMekanism().setMaxStackSize(1).setContainerItem(Items.bucket).setUnlocalizedName("LithiumBucket");
|
|
public static final Item SpeedUpgrade = new ItemUpgrade(Upgrade.SPEED).setUnlocalizedName("SpeedUpgrade");
|
|
public static final Item EnergyUpgrade = new ItemUpgrade(Upgrade.ENERGY).setUnlocalizedName("EnergyUpgrade");
|
|
public static final Item FilterUpgrade = new ItemUpgrade(Upgrade.FILTER).setUnlocalizedName("FilterUpgrade");
|
|
public static final ItemEnergized EnergyTablet = (ItemEnergized)new ItemEnergized(1000000).setUnlocalizedName("EnergyTablet");
|
|
public static final ItemRobit Robit = (ItemRobit)new ItemRobit().setUnlocalizedName("Robit");
|
|
public static final ItemAtomicDisassembler AtomicDisassembler = (ItemAtomicDisassembler)new ItemAtomicDisassembler().setUnlocalizedName("AtomicDisassembler");
|
|
public static final Item PortableTeleporter = new ItemPortableTeleporter().setUnlocalizedName("PortableTeleporter");
|
|
public static final Item Configurator = new ItemConfigurator().setUnlocalizedName("Configurator");
|
|
public static final Item NetworkReader = new ItemNetworkReader().setUnlocalizedName("NetworkReader");
|
|
public static final Item WalkieTalkie = new ItemWalkieTalkie().setUnlocalizedName("WalkieTalkie");
|
|
public static final ItemElectricBow ElectricBow = (ItemElectricBow)new ItemElectricBow().setUnlocalizedName("ElectricBow");
|
|
public static final ItemFlamethrower Flamethrower = (ItemFlamethrower)new ItemFlamethrower().setUnlocalizedName("Flamethrower");
|
|
public static final ItemSeismicReader SeismicReader = (ItemSeismicReader)new ItemSeismicReader().setUnlocalizedName("SeismicReader");
|
|
public static final Item Dictionary = new ItemDictionary().setUnlocalizedName("Dictionary");
|
|
public static final ItemGaugeDropper GaugeDropper = (ItemGaugeDropper)new ItemGaugeDropper().setUnlocalizedName("GaugeDropper");
|
|
public static final Item FilterCard = new ItemFilterCard().setUnlocalizedName("FilterCard");
|
|
public static final Item PartTransmitter = new ItemPartTransmitter().setUnlocalizedName("MultipartTransmitter");
|
|
public static final Item GlowPanel = new ItemGlowPanel().setUnlocalizedName("GlowPanel");
|
|
public static final ItemScubaTank ScubaTank = (ItemScubaTank)new ItemScubaTank().setUnlocalizedName("ScubaTank");
|
|
public static final ItemGasMask GasMask = (ItemGasMask)new ItemGasMask().setUnlocalizedName("GasMask");
|
|
public static final ItemJetpack Jetpack = (ItemJetpack)new ItemJetpack().setUnlocalizedName("Jetpack");
|
|
public static final ItemJetpack ArmoredJetpack = (ItemJetpack)new ItemJetpack().setUnlocalizedName("ArmoredJetpack");
|
|
public static final Item FreeRunners = new ItemFreeRunners().setUnlocalizedName("FreeRunners");
|
|
public static final Item Balloon = new ItemBalloon().setUnlocalizedName("Balloon");
|
|
|
|
//Multi-ID Items
|
|
public static final Item Dust = new ItemDust();
|
|
public static final Item Sawdust = new ItemMekanism().setUnlocalizedName("Sawdust");
|
|
public static final Item Salt = new ItemMekanism().setUnlocalizedName("Salt");
|
|
public static final Item Ingot = new ItemIngot();
|
|
public static final Item Clump = new ItemClump();
|
|
public static final Item DirtyDust = new ItemDirtyDust();
|
|
public static final Item Shard = new ItemShard();
|
|
public static final Item Crystal = new ItemCrystal();
|
|
public static final Item ControlCircuit = new ItemControlCircuit();
|
|
|
|
/**
|
|
* Adds and registers all items.
|
|
*/
|
|
public static void register()
|
|
{
|
|
GameRegistry.registerItem(PartTransmitter, "PartTransmitter");
|
|
GameRegistry.registerItem(ElectricBow, "ElectricBow");
|
|
GameRegistry.registerItem(Dust, "Dust");
|
|
GameRegistry.registerItem(Ingot, "Ingot");
|
|
GameRegistry.registerItem(EnergyTablet, "EnergyTablet");
|
|
GameRegistry.registerItem(SpeedUpgrade, "SpeedUpgrade");
|
|
GameRegistry.registerItem(EnergyUpgrade, "EnergyUpgrade");
|
|
GameRegistry.registerItem(FilterUpgrade, "FilterUpgrade");
|
|
GameRegistry.registerItem(Robit, "Robit");
|
|
GameRegistry.registerItem(AtomicDisassembler, "AtomicDisassembler");
|
|
GameRegistry.registerItem(EnrichedAlloy, "EnrichedAlloy");
|
|
GameRegistry.registerItem(ReinforcedAlloy, "ReinforcedAlloy");
|
|
GameRegistry.registerItem(AtomicAlloy, "AtomicAlloy");
|
|
GameRegistry.registerItem(ItemProxy, "ItemProxy");
|
|
GameRegistry.registerItem(ControlCircuit, "ControlCircuit");
|
|
GameRegistry.registerItem(EnrichedIron, "EnrichedIron");
|
|
GameRegistry.registerItem(CompressedCarbon, "CompressedCarbon");
|
|
GameRegistry.registerItem(CompressedRedstone, "CompressedRedstone");
|
|
GameRegistry.registerItem(CompressedDiamond, "CompressedDiamond");
|
|
GameRegistry.registerItem(CompressedObsidian, "CompressedObsidian");
|
|
GameRegistry.registerItem(PortableTeleporter, "PortableTeleporter");
|
|
GameRegistry.registerItem(TeleportationCore, "TeleportationCore");
|
|
GameRegistry.registerItem(Clump, "Clump");
|
|
GameRegistry.registerItem(DirtyDust, "DirtyDust");
|
|
GameRegistry.registerItem(Configurator, "Configurator");
|
|
GameRegistry.registerItem(NetworkReader, "NetworkReader");
|
|
GameRegistry.registerItem(WalkieTalkie, "WalkieTalkie");
|
|
GameRegistry.registerItem(Jetpack, "Jetpack");
|
|
GameRegistry.registerItem(Dictionary, "Dictionary");
|
|
GameRegistry.registerItem(GasMask, "GasMask");
|
|
GameRegistry.registerItem(ScubaTank, "ScubaTank");
|
|
GameRegistry.registerItem(Balloon, "Balloon");
|
|
GameRegistry.registerItem(Shard, "Shard");
|
|
GameRegistry.registerItem(ElectrolyticCore, "ElectrolyticCore");
|
|
GameRegistry.registerItem(Sawdust, "Sawdust");
|
|
GameRegistry.registerItem(Salt, "Salt");
|
|
GameRegistry.registerItem(BrineBucket, "BrineBucket");
|
|
GameRegistry.registerItem(LithiumBucket, "LithiumBucket");
|
|
GameRegistry.registerItem(Crystal, "Crystal");
|
|
GameRegistry.registerItem(FreeRunners, "FreeRunners");
|
|
GameRegistry.registerItem(ArmoredJetpack, "ArmoredJetpack");
|
|
GameRegistry.registerItem(FilterCard, "FilterCard");
|
|
GameRegistry.registerItem(SeismicReader, "SeismicReader");
|
|
GameRegistry.registerItem(Substrate, "Substrate");
|
|
GameRegistry.registerItem(Polyethene, "Polyethene");
|
|
GameRegistry.registerItem(BioFuel, "BioFuel");
|
|
GameRegistry.registerItem(GlowPanel, "GlowPanel");
|
|
GameRegistry.registerItem(Flamethrower, "Flamethrower");
|
|
GameRegistry.registerItem(GaugeDropper, "GaugeDropper");
|
|
|
|
FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluid("brine"), new ItemStack(BrineBucket), FluidContainerRegistry.EMPTY_BUCKET);
|
|
FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluid("lithium"), new ItemStack(LithiumBucket), FluidContainerRegistry.EMPTY_BUCKET);
|
|
|
|
MinecraftForge.EVENT_BUS.register(GasMask);
|
|
MinecraftForge.EVENT_BUS.register(FreeRunners);
|
|
}
|
|
}
|