Search in sources :

Example 1 with ItemRadarGun

use of icbm.classic.content.items.ItemRadarGun in project ICBM-Classic by BuiltBrokenModding.

the class ItemReg method registerItems.

@SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) {
    // Items
    event.getRegistry().register(new ItemGrenade().setName("grenade").setCreativeTab(ICBMClassic.CREATIVE_TAB));
    event.getRegistry().register(new ItemBombCart().setName("bombcart").setCreativeTab(ICBMClassic.CREATIVE_TAB));
    // TODO fix name _
    event.getRegistry().register(new ItemBase().setName("poisonPowder").setCreativeTab(ICBMClassic.CREATIVE_TAB));
    Item sulfurItem = new ItemBase().setName("sulfurDust").setCreativeTab(ICBMClassic.CREATIVE_TAB);
    // TODO fix name _
    event.getRegistry().register(sulfurItem);
    OreDictionary.registerOre("dustSulfur", sulfurItem);
    Item saltpeterItem = new ItemBase().setName("saltpeter").setCreativeTab(ICBMClassic.CREATIVE_TAB);
    event.getRegistry().register(saltpeterItem);
    OreDictionary.registerOre("dustSaltpeter", saltpeterItem);
    event.getRegistry().register(new ItemAntidote().setName("antidote"));
    event.getRegistry().register(new ItemSignalDisrupter());
    event.getRegistry().register(new ItemTracker());
    event.getRegistry().register(new ItemDefuser());
    event.getRegistry().register(new ItemRadarGun());
    event.getRegistry().register(new ItemRemoteDetonator());
    event.getRegistry().register(new ItemLaserDetonator());
    event.getRegistry().register(new ItemRocketLauncher());
    event.getRegistry().register(new ItemMissile());
    // Block items
    event.getRegistry().register(new ItemBlock(BlockReg.blockGlassPlate).setRegistryName(BlockReg.blockGlassPlate.getRegistryName()));
    event.getRegistry().register(new ItemBlock(BlockReg.blockGlassButton).setRegistryName(BlockReg.blockGlassButton.getRegistryName()));
    event.getRegistry().register(new ItemBlockSubTypes(BlockReg.blockSpikes));
    event.getRegistry().register(new ItemBlockSubTypes(BlockReg.blockConcrete));
    event.getRegistry().register(new ItemBlock(BlockReg.blockReinforcedGlass).setRegistryName(BlockReg.blockReinforcedGlass.getRegistryName()));
    event.getRegistry().register(new ItemBlockExplosive(BlockReg.blockExplosive).setRegistryName(BlockReg.blockExplosive.getRegistryName()));
    event.getRegistry().register(new ItemBlock(BlockReg.blockEmpTower).setRegistryName(BlockReg.blockEmpTower.getRegistryName()));
    event.getRegistry().register(new ItemBlock(BlockReg.blockRadarStation).setRegistryName(BlockReg.blockRadarStation.getRegistryName()));
    event.getRegistry().register(new ItemBlockSubTypes(BlockReg.blockLaunchSupport));
    event.getRegistry().register(new ItemBlockRotatedMultiTile(BlockReg.blockLaunchBase, e -> TileLauncherBase.getLayoutOfMultiBlock(e)));
    event.getRegistry().register(new ItemBlockSubTypes(BlockReg.blockLaunchScreen));
    event.getRegistry().register(new ItemBlock(BlockReg.blockCruiseLauncher).setRegistryName(BlockReg.blockCruiseLauncher.getRegistryName()));
    // Crafting resources
    if (ConfigItems.ENABLE_CRAFTING_ITEMS) {
        if (ConfigItems.ENABLE_INGOTS_ITEMS) {
            event.getRegistry().register(new ItemCrafting("ingot", "steel", "copper"));
            event.getRegistry().register(new ItemCrafting("clump", "steel"));
        }
        if (ConfigItems.ENABLE_PLATES_ITEMS) {
            event.getRegistry().register(new ItemCrafting("plate", "steel", "iron"));
        }
        if (ConfigItems.ENABLE_CIRCUIT_ITEMS) {
            event.getRegistry().register(new ItemCrafting("circuit", "basic", "advanced", "elite"));
        }
        if (ConfigItems.ENABLE_WIRES_ITEMS) {
            event.getRegistry().register(new ItemCrafting("wire", "copper", "gold"));
        }
    }
    // Optional items
    if (ConfigItems.ENABLE_BATTERY) {
        event.getRegistry().register(new ItemBattery());
    }
}
Also used : Item(net.minecraft.item.Item) ItemDefuser(icbm.classic.content.items.ItemDefuser) ItemLaserDetonator(icbm.classic.content.items.ItemLaserDetonator) ItemCrafting(icbm.classic.content.items.ItemCrafting) ItemSignalDisrupter(icbm.classic.content.items.ItemSignalDisrupter) ItemRemoteDetonator(icbm.classic.content.items.ItemRemoteDetonator) OreDictionary(net.minecraftforge.oredict.OreDictionary) ItemBattery(icbm.classic.content.items.ItemBattery) ItemRocketLauncher(icbm.classic.content.items.ItemRocketLauncher) RegistryEvent(net.minecraftforge.event.RegistryEvent) ItemBombCart(icbm.classic.content.items.ItemBombCart) Mod(net.minecraftforge.fml.common.Mod) ICBMClassic(icbm.classic.ICBMClassic) ItemTracker(icbm.classic.content.items.ItemTracker) ICBMConstants(icbm.classic.ICBMConstants) ItemGrenade(icbm.classic.content.items.ItemGrenade) ItemBlockExplosive(icbm.classic.content.blocks.explosive.ItemBlockExplosive) TileLauncherBase(icbm.classic.content.blocks.launcher.base.TileLauncherBase) ItemMissile(icbm.classic.content.items.ItemMissile) ConfigItems(icbm.classic.config.ConfigItems) ObjectHolder(net.minecraftforge.fml.common.registry.GameRegistry.ObjectHolder) ItemBlockSubTypes(icbm.classic.prefab.item.ItemBlockSubTypes) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent) ItemRadarGun(icbm.classic.content.items.ItemRadarGun) ItemBlockRotatedMultiTile(icbm.classic.prefab.item.ItemBlockRotatedMultiTile) ItemBlock(net.minecraft.item.ItemBlock) ItemAntidote(icbm.classic.content.items.ItemAntidote) ItemBase(icbm.classic.prefab.item.ItemBase) ItemCrafting(icbm.classic.content.items.ItemCrafting) ItemBattery(icbm.classic.content.items.ItemBattery) ItemRocketLauncher(icbm.classic.content.items.ItemRocketLauncher) ItemBase(icbm.classic.prefab.item.ItemBase) ItemMissile(icbm.classic.content.items.ItemMissile) ItemBlockSubTypes(icbm.classic.prefab.item.ItemBlockSubTypes) ItemBlockExplosive(icbm.classic.content.blocks.explosive.ItemBlockExplosive) ItemBlock(net.minecraft.item.ItemBlock) ItemDefuser(icbm.classic.content.items.ItemDefuser) ItemRemoteDetonator(icbm.classic.content.items.ItemRemoteDetonator) Item(net.minecraft.item.Item) ItemLaserDetonator(icbm.classic.content.items.ItemLaserDetonator) ItemBlockRotatedMultiTile(icbm.classic.prefab.item.ItemBlockRotatedMultiTile) ItemTracker(icbm.classic.content.items.ItemTracker) ItemGrenade(icbm.classic.content.items.ItemGrenade) ItemSignalDisrupter(icbm.classic.content.items.ItemSignalDisrupter) ItemBombCart(icbm.classic.content.items.ItemBombCart) ItemAntidote(icbm.classic.content.items.ItemAntidote) ItemRadarGun(icbm.classic.content.items.ItemRadarGun) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

ICBMClassic (icbm.classic.ICBMClassic)1 ICBMConstants (icbm.classic.ICBMConstants)1 ConfigItems (icbm.classic.config.ConfigItems)1 ItemBlockExplosive (icbm.classic.content.blocks.explosive.ItemBlockExplosive)1 TileLauncherBase (icbm.classic.content.blocks.launcher.base.TileLauncherBase)1 ItemAntidote (icbm.classic.content.items.ItemAntidote)1 ItemBattery (icbm.classic.content.items.ItemBattery)1 ItemBombCart (icbm.classic.content.items.ItemBombCart)1 ItemCrafting (icbm.classic.content.items.ItemCrafting)1 ItemDefuser (icbm.classic.content.items.ItemDefuser)1 ItemGrenade (icbm.classic.content.items.ItemGrenade)1 ItemLaserDetonator (icbm.classic.content.items.ItemLaserDetonator)1 ItemMissile (icbm.classic.content.items.ItemMissile)1 ItemRadarGun (icbm.classic.content.items.ItemRadarGun)1 ItemRemoteDetonator (icbm.classic.content.items.ItemRemoteDetonator)1 ItemRocketLauncher (icbm.classic.content.items.ItemRocketLauncher)1 ItemSignalDisrupter (icbm.classic.content.items.ItemSignalDisrupter)1 ItemTracker (icbm.classic.content.items.ItemTracker)1 ItemBase (icbm.classic.prefab.item.ItemBase)1 ItemBlockRotatedMultiTile (icbm.classic.prefab.item.ItemBlockRotatedMultiTile)1