use of icbm.classic.content.items.ItemDefuser 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());
}
}
Aggregations