Search in sources :

Example 1 with FoodStats

use of gregtech.api.items.metaitem.FoodStats in project GregTech by GregTechCE.

the class MetaItem1 method registerSubItems.

@Override
public void registerSubItems() {
    CREDIT_COPPER = addItem(0, "credit.copper");
    CREDIT_CUPRONICKEL = addItem(1, "credit.cupronickel").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Cupronickel, 907200L)));
    CREDIT_SILVER = addItem(2, "credit.silver");
    CREDIT_GOLD = addItem(3, "credit.gold");
    CREDIT_PLATINUM = addItem(4, "credit.platinum");
    CREDIT_OSMIUM = addItem(5, "credit.osmium");
    CREDIT_NAQUADAH = addItem(6, "credit.naquadah");
    CREDIT_DARMSTADTIUM = addItem(7, "credit.darmstadtium");
    COIN_GOLD_ANCIENT = addItem(8, "coin.gold.ancient").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Gold, 907200L)));
    COIN_DOGE = addItem(9, "coin.doge").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Brass, 907200L)));
    COIN_CHOCOLATE = addItem(10, "coin.chocolate").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Gold, OrePrefix.foil.materialAmount))).addStats(new FoodStats(1, 0.1F, false, true, OreDictUnifier.get(OrePrefix.foil, Materials.Gold, 1), new RandomPotionEffect(MobEffects.SPEED, 200, 1, 10)));
    MINECART_WHEELS_IRON = addItem(100, "minecart.wheels.iron");
    MINECART_WHEELS_STEEL = addItem(101, "minecart.wheels.steel");
    SHAPE_EMPTY = addItem(300, "shape.empty");
    SHAPE_MOLD_PLATE = addItem(301, "shape.mold.plate");
    SHAPE_MOLD_CASING = addItem(302, "shape.mold.casing");
    SHAPE_MOLD_GEAR = addItem(303, "shape.mold.gear");
    SHAPE_MOLD_CREDIT = addItem(304, "shape.mold.credit");
    SHAPE_MOLD_BOTTLE = addItem(305, "shape.mold.bottle");
    SHAPE_MOLD_INGOT = addItem(306, "shape.mold.ingot");
    SHAPE_MOLD_BALL = addItem(307, "shape.mold.ball");
    SHAPE_MOLD_BLOCK = addItem(308, "shape.mold.block");
    SHAPE_MOLD_NUGGET = addItem(309, "shape.mold.nugget");
    SHAPE_MOLD_BUN = addItem(310, "shape.mold.bun");
    SHAPE_MOLD_BREAD = addItem(311, "shape.mold.bread");
    SHAPE_MOLD_BAGUETTE = addItem(312, "shape.mold.baguette");
    SHAPE_MOLD_CYLINDER = addItem(313, "shape.mold.cylinder");
    SHAPE_MOLD_ANVIL = addItem(314, "shape.mold.anvil");
    SHAPE_MOLD_NAME = addItem(315, "shape.mold.name");
    SHAPE_MOLD_GEAR_SMALL = addItem(317, "shape.mold.gear.small");
    SHAPE_EXTRUDER_PLATE = addItem(350, "shape.extruder.plate");
    SHAPE_EXTRUDER_ROD = addItem(351, "shape.extruder.rod");
    SHAPE_EXTRUDER_BOLT = addItem(352, "shape.extruder.bolt");
    SHAPE_EXTRUDER_RING = addItem(353, "shape.extruder.ring");
    SHAPE_EXTRUDER_CELL = addItem(354, "shape.extruder.cell");
    SHAPE_EXTRUDER_INGOT = addItem(355, "shape.extruder.ingot");
    SHAPE_EXTRUDER_WIRE = addItem(356, "shape.extruder.wire");
    SHAPE_EXTRUDER_CASING = addItem(357, "shape.extruder.casing");
    SHAPE_EXTRUDER_PIPE_TINY = addItem(358, "shape.extruder.pipe.tiny");
    SHAPE_EXTRUDER_PIPE_SMALL = addItem(359, "shape.extruder.pipe.small");
    SHAPE_EXTRUDER_PIPE_MEDIUM = addItem(360, "shape.extruder.pipe.medium");
    SHAPE_EXTRUDER_PIPE_LARGE = addItem(361, "shape.extruder.pipe.large");
    SHAPE_EXTRUDER_PIPE_HUGE = addItem(362, "shape.extruder.pipe.huge");
    SHAPE_EXTRUDER_BLOCK = addItem(363, "shape.extruder.block");
    SHAPE_EXTRUDER_SWORD = addItem(364, "shape.extruder.sword");
    SHAPE_EXTRUDER_PICKAXE = addItem(365, "shape.extruder.pickaxe");
    SHAPE_EXTRUDER_SHOVEL = addItem(366, "shape.extruder.shovel");
    SHAPE_EXTRUDER_AXE = addItem(367, "shape.extruder.axe");
    SHAPE_EXTRUDER_HOE = addItem(368, "shape.extruder.hoe");
    SHAPE_EXTRUDER_HAMMER = addItem(369, "shape.extruder.hammer");
    SHAPE_EXTRUDER_FILE = addItem(370, "shape.extruder.file");
    SHAPE_EXTRUDER_SAW = addItem(371, "shape.extruder.saw");
    SHAPE_EXTRUDER_GEAR = addItem(372, "shape.extruder.gear");
    SHAPE_EXTRUDER_BOTTLE = addItem(373, "shape.extruder.bottle");
    SHAPE_SLICER_FLAT = addItem(398, "shape.slicer.flat");
    SHAPE_SLICER_STRIPES = addItem(399, "shape.slicer.stripes");
    FUEL_CAN_PLASTIC_EMPTY = addItem(400, "fuel.can.plastic.empty").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Plastic, OrePrefix.plate.materialAmount)));
    FUEL_CAN_PLASTIC_FILLED = addItem(401, "fuel.can.plastic.filled").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Plastic, OrePrefix.plate.materialAmount)));
    SPRAY_EMPTY = addItem(402, "spray.empty").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Tin, OrePrefix.plate.materialAmount * 2L), new MaterialStack(Materials.Redstone, OrePrefix.dust.materialAmount)));
    THERMOS_CAN_EMPTY = addItem(404, "thermos_can.empty").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Aluminium, OrePrefix.plate.materialAmount + 2L * OrePrefix.ring.materialAmount)));
    LARGE_FLUID_CELL_STEEL = addItem(405, "large.fluid.cell.steel").addStats(new FluidStats(16000, Integer.MAX_VALUE, Integer.MAX_VALUE)).setMaxStackSize(16).setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Steel, OrePrefix.plate.materialAmount * 2L + 2L * OrePrefix.ring.materialAmount)));
    LARGE_FLUID_CELL_TUNGSTENSTEEL = addItem(406, "large.fluid.cell.tungstensteel").addStats(new FluidStats(64000, Integer.MAX_VALUE, Integer.MAX_VALUE)).setMaxStackSize(16).setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.TungstenSteel, OrePrefix.plate.materialAmount * 2L + 2L * OrePrefix.ring.materialAmount)));
    for (byte i = 0; i < 16; i = (byte) (i + 1)) {
        // IItemBehaviour behaviour = new Behaviour_Spray_Color(SPRAY_EMPTY.getStackForm(), SPRAY_CAN_DYES_USED[i].getStackForm(), SPRAY_CAN_DYES[i].getStackForm(), 512L, i);
        // .addStats(behaviour);
        SPRAY_CAN_DYES[i] = addItem(430 + 2 * i, "spray.can.dyes." + EnumDyeColor.byDyeDamage(i).getName());
        // .addStats(behaviour);
        SPRAY_CAN_DYES_USED[i] = addItem(431 + 2 * i, "spray.can.dyes.used." + EnumDyeColor.byDyeDamage(i).getName());
    }
    // IItemBehaviour behaviour = new Behaviour_Lighter(null, TOOL_MATCHES.getStackForm(), TOOL_MATCHES.getStackForm(), 1L);
    // .addStats(behaviour);
    TOOL_MATCHES = addItem(471, "tool.matches");
    // behaviour = new Behaviour_Lighter(null, TOOL_MATCHBOX_USED.getStackForm(), TOOL_MATCHBOX_FULL.getStackForm(), 16L);
    // .addStats(behaviour);
    TOOL_MATCHBOX_USED = addItem(472, "tool.matchbox.used");
    // .addStats(behaviour);
    TOOL_MATCHBOX_FULL = addItem(473, "tool.matchbox.full");
    TOOL_LIGHTER_INVAR_EMPTY = addItem(474, "tool.lighter.invar.empty").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Invar, OrePrefix.plate.materialAmount * 2L)));
    // behaviour = new Behaviour_Lighter(TOOL_LIGHTER_INVAR_EMPTY.getStackForm(), TOOL_LIGHTER_INVAR_USED.getStackForm(), TOOL_LIGHTER_INVAR_FULL.getStackForm(), 100L);
    // .addStats(behaviour);
    TOOL_LIGHTER_INVAR_USED = addItem(475, "tool.lighter.invar.used").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Invar, OrePrefix.plate.materialAmount * 2L)));
    // .addStats(behaviour);
    TOOL_LIGHTER_INVAR_FULL = addItem(476, "tool.lighter.invar.full").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Invar, OrePrefix.plate.materialAmount * 2L)));
    TOOL_LIGHTER_PLATINUM_EMPTY = addItem(477, "tool.lighter.platinum.empty").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Platinum, OrePrefix.plate.materialAmount * 2L)));
    // behaviour = new Behaviour_Lighter(TOOL_LIGHTER_PLATINUM_EMPTY.getStackForm(), TOOL_LIGHTER_PLATINUM_USED.getStackForm(), TOOL_LIGHTER_PLATINUM_FULL.getStackForm(), 1000L);
    // .addStats(behaviour);
    TOOL_LIGHTER_PLATINUM_USED = addItem(478, "tool.lighter.platinum.used").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Platinum, OrePrefix.plate.materialAmount * 2L)));
    // .addStats(behaviour);
    TOOL_LIGHTER_PLATINUM_FULL = addItem(479, "tool.lighter.platinum.full").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Platinum, OrePrefix.plate.materialAmount * 2L)));
    INGOT_IRIDIUM_ALLOY = addItem(480, "ingot.iridiumalloy");
    // .addStats(new Behaviour_PrintedPages());
    PAPER_PRINTED_PAGES = addItem(481, "paper.printed.pages").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 10886400L)));
    PAPER_MAGIC_EMPTY = addItem(482, "paper.magic.empty").setInvisible().setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 3628800L)));
    PAPER_MAGIC_PAGE = addItem(483, "paper.magic.page").setInvisible().setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 3628800L)));
    PAPER_MAGIC_PAGES = addItem(484, "paper.magic.pages").setInvisible().setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 10886400L)));
    PAPER_PUNCH_CARD_EMPTY = addItem(485, "paper.punch.card.empty").setInvisible().setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 7257600L)));
    PAPER_PUNCH_CARD_ENCODED = addItem(486, "paper.punch.card.encoded").setInvisible().setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Paper, 7257600L)));
    SCHEMATIC = addItem(490, "schematic").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    SCHEMATIC_CRAFTING = addItem(491, "schematic.crafting").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    SCHEMATIC_1X1 = addItem(495, "schematic.1by1").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    SCHEMATIC_2X2 = addItem(496, "schematic.2by2").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    SCHEMATIC_3X3 = addItem(497, "schematic.3by3").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    SCHEMATIC_DUST = addItem(498, "schematic.dust").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, 7257600L)));
    BATTERY_HULL_LV = addItem(500, "battery.hull.lv").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.BatteryAlloy, OrePrefix.plate.materialAmount)));
    BATTERY_HULL_MV = addItem(501, "battery.hull.hv").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.BatteryAlloy, OrePrefix.plate.materialAmount * 3L)));
    BATTERY_HULL_HV = addItem(502, "battery.hull.mv").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.BatteryAlloy, OrePrefix.plate.materialAmount * 9L)));
    BATTERY_RE_ULV_TANTALUM = addItem(499, "battery.re.ulv.tantalum").addStats(new ElectricStats(1000, 0));
    BATTERY_SU_LV_SULFURICACID = addItem(510, "battery.su.lv.sulfuricacid").addStats(new ElectricStats(18000, 1, false));
    BATTERY_SU_LV_MERCURY = addItem(511, "battery.su.lv.mercury").addStats(new ElectricStats(32000, 1, false));
    BATTERY_RE_LV_CADMIUM = addItem(517, "battery.re.lv.cadmium").addStats(new ElectricStats(75000, 1));
    BATTERY_RE_LV_LITHIUM = addItem(518, "battery.re.lv.lithium").addStats(new ElectricStats(100000, 1));
    BATTERY_RE_LV_SODIUM = addItem(519, "battery.re.lv.sodium").addStats(new ElectricStats(50000, 1));
    BATTERY_SU_MV_SULFURICACID = addItem(520, "battery.su.mv.sulfuricacid").addStats(new ElectricStats(72000, 2, false));
    BATTERY_SU_MV_MERCURY = addItem(521, "battery.su.mv.mercury").addStats(new ElectricStats(128000, 2, false));
    BATTERY_RE_MV_CADMIUM = addItem(527, "battery.re.mv.cadmium").addStats(new ElectricStats(300000, 2));
    BATTERY_RE_MV_LITHIUM = addItem(528, "battery.re.mv.lithium").addStats(new ElectricStats(400000, 2));
    BATTERY_RE_MV_SODIUM = addItem(529, "battery.re.mv.sodium").addStats(new ElectricStats(200000, 2));
    BATTERY_SU_HV_SULFURICACID = addItem(530, "battery.su.hv.sulfuricacid").addStats(new ElectricStats(288000, 3, false));
    BATTERY_SU_HV_MERCURY = addItem(531, "battery.su.hv.mercury").addStats(new ElectricStats(512000, 3, false));
    BATTERY_RE_HV_CADMIUM = addItem(537, "battery.re.hv.cadmium").addStats(new ElectricStats(1200000, 3));
    BATTERY_RE_HV_LITHIUM = addItem(538, "battery.re.hv.lithium").addStats(new ElectricStats(1600000, 3));
    BATTERY_RE_HV_SODIUM = addItem(539, "battery.re.hv.sodium").addStats(new ElectricStats(800000, 3));
    ENERGY_LAPOTRONICORB = addItem(597, "energy.lapotronicorb").addStats(new ElectricStats(100000000, 5)).setUnificationData(OrePrefix.battery, MarkerMaterials.Tier.Ultimate);
    ENERGY_LAPOTRONICORB2 = addItem(598, "energy.lapotronicorb2").addStats(new ElectricStats(1000000000, 6)).setUnificationData(OrePrefix.battery, MarkerMaterials.Tier.Ultimate);
    ZPM = addItem(599, "zpm").addStats(new ElectricStats(2000000000000L, 7, false));
    ZPM2 = addItem(605, "zpm2").addStats(new ElectricStats(Long.MAX_VALUE, 8));
    ELECTRIC_MOTOR_LV = addItem(600, "electric.motor.lv");
    ELECTRIC_MOTOR_MV = addItem(601, "electric.motor.mv");
    ELECTRIC_MOTOR_HV = addItem(602, "electric.motor.hv");
    ELECTRIC_MOTOR_EV = addItem(603, "electric.motor.ev");
    ELECTRIC_MOTOR_IV = addItem(604, "electric.motor.iv");
    ELECTRIC_MOTOR_LUV = addItem(606, "electric.motor.luv");
    ELECTRIC_MOTOR_ZPM = addItem(607, "electric.motor.zpm");
    ELECTRIC_MOTOR_UV = addItem(608, "electric.motor.uv");
    ELECTRIC_PUMP_LV = addItem(610, "electric.pump.lv");
    ELECTRIC_PUMP_MV = addItem(611, "electric.pump.mv");
    ELECTRIC_PUMP_HV = addItem(612, "electric.pump.hv");
    ELECTRIC_PUMP_EV = addItem(613, "electric.pump.ev");
    ELECTRIC_PUMP_IV = addItem(614, "electric.pump.iv");
    ELECTRIC_PUMP_LUV = addItem(620, "electric.pump.luv");
    ELECTRIC_PUMP_ZPM = addItem(621, "electric.pump.zpm");
    ELECTRIC_PUMP_UV = addItem(622, "electric.pump.uv");
    FLUID_REGULATOR_LV = addItem(615, "fluidregulator.lv");
    FLUID_REGULATOR_MV = addItem(616, "fluidregulator.mv");
    FLUID_REGULATOR_HV = addItem(617, "fluidregulator.hv");
    FLUID_REGULATOR_EV = addItem(618, "fluidregulator.ev");
    FLUID_REGULATOR_IV = addItem(619, "fluidregulator.iv");
    FLUID_FILTER = addItem(635, "fluidfilter");
    ROTOR_LV = addItem(620, "rotor.lv").setUnificationData(OrePrefix.rotor, Materials.Tin);
    ROTOR_MV = addItem(621, "rotor.mv").setUnificationData(OrePrefix.rotor, Materials.Bronze);
    ROTOR_HV = addItem(622, "rotor.hv").setUnificationData(OrePrefix.rotor, Materials.Steel);
    ROTOR_EV = addItem(623, "rotor.ev").setUnificationData(OrePrefix.rotor, Materials.StainlessSteel);
    ROTOR_IV = addItem(624, "rotor.iv").setUnificationData(OrePrefix.rotor, Materials.TungstenSteel);
    CONVEYOR_MODULE_LV = addItem(630, "conveyor.module.lv");
    CONVEYOR_MODULE_MV = addItem(631, "conveyor.module.mv");
    CONVEYOR_MODULE_HV = addItem(632, "conveyor.module.hv");
    CONVEYOR_MODULE_EV = addItem(633, "conveyor.module.ev");
    CONVEYOR_MODULE_IV = addItem(634, "conveyor.module.iv");
    ELECTRIC_PISTON_LV = addItem(640, "electric.piston.lv");
    ELECTRIC_PISTON_MV = addItem(641, "electric.piston.mv");
    ELECTRIC_PISTON_HV = addItem(642, "electric.piston.hv");
    ELECTRIC_PISTON_EV = addItem(643, "electric.piston.ev");
    ELECTRIC_PISTON_IV = addItem(644, "electric.piston.iv");
    ELECTRIC_PISTON_LUV = addItem(645, "electric.piston.luv");
    ELECTRIC_PISTON_ZPM = addItem(646, "electric.piston.zpm");
    ELECTRIC_PISTON_UV = addItem(647, "electric.piston.uv");
    ROBOT_ARM_LV = addItem(650, "robot.arm.lv");
    ROBOT_ARM_MV = addItem(651, "robot.arm.mv");
    ROBOT_ARM_HV = addItem(652, "robot.arm.hv");
    ROBOT_ARM_EV = addItem(653, "robot.arm.ev");
    ROBOT_ARM_IV = addItem(654, "robot.arm.iv");
    ROBOT_ARM_LUV = addItem(655, "robot.arm.luv");
    ROBOT_ARM_ZPM = addItem(656, "robot.arm.zpm");
    ROBOT_ARM_UV = addItem(657, "robot.arm.uv");
    FIELD_GENERATOR_LV = addItem(670, "field.generator.lv");
    FIELD_GENERATOR_MV = addItem(671, "field.generator.mv");
    FIELD_GENERATOR_HV = addItem(672, "field.generator.hv");
    FIELD_GENERATOR_EV = addItem(673, "field.generator.ev");
    FIELD_GENERATOR_IV = addItem(674, "field.generator.iv");
    FIELD_GENERATOR_LUV = addItem(675, "field.generator.luv");
    FIELD_GENERATOR_ZPM = addItem(676, "field.generator.zpm");
    FIELD_GENERATOR_UV = addItem(677, "field.generator.uv");
    EMITTER_LV = addItem(680, "emitter.lv");
    EMITTER_MV = addItem(681, "emitter.mv");
    EMITTER_HV = addItem(682, "emitter.hv");
    EMITTER_EV = addItem(683, "emitter.ev");
    EMITTER_IV = addItem(684, "emitter.iv");
    EMITTER_LUV = addItem(685, "emitter.luv");
    EMITTER_ZPM = addItem(686, "emitter.zpm");
    EMITTER_UV = addItem(687, "emitter.uv");
    SENSOR_LV = addItem(690, "sensor.lv");
    SENSOR_MV = addItem(691, "sensor.mv");
    SENSOR_HV = addItem(692, "sensor.hv");
    SENSOR_EV = addItem(693, "sensor.ev");
    SENSOR_IV = addItem(694, "sensor.iv");
    SENSOR_LUV = addItem(695, "sensor.luv");
    SENSOR_ZPM = addItem(696, "sensor.zpm");
    SENSOR_UV = addItem(697, "sensor.uv");
    // .addStats(new Behaviour_DataStick());
    TOOL_DATASTICK = addItem(708, "tool.datastick").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Data);
    // .addStats(new Behaviour_DataOrb());
    TOOL_DATAORB = addItem(707, "tool.dataorb").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Ultimate);
    CIRCUIT_PRIMITIVE = addItem(700, "circuit.primitive").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Primitive);
    CIRCUIT_BASIC = addItem(701, "circuit.basic").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Basic);
    CIRCUIT_GOOD = addItem(702, "circuit.good").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Good);
    CIRCUIT_ADVANCED = addItem(703, "circuit.advanced").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Advanced);
    CIRCUIT_DATA = addItem(704, "circuit.data").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Data);
    CIRCUIT_ELITE = addItem(705, "circuit.elite").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Elite);
    CIRCUIT_MASTER = addItem(706, "circuit.master").setUnificationData(OrePrefix.circuit, MarkerMaterials.Tier.Master);
    CIRCUIT_ULTIMATE = TOOL_DATAORB;
    CIRCUIT_BOARD_BASIC = addItem(710, "circuit.board.basic");
    CIRCUIT_BOARD_ADVANCED = addItem(711, "circuit.board.advanced");
    CIRCUIT_BOARD_ELITE = addItem(712, "circuit.board.elite");
    CIRCUIT_PARTS_CRYSTAL_CHIP_ELITE = addItem(713, "circuit.parts.crystal.chip.elite");
    CIRCUIT_PARTS_CRYSTAL_CHIP_MASTER = addItem(714, "circuit.parts.crystal.chip.master");
    CIRCUIT_PARTS_ADVANCED = addItem(715, "circuit.parts.advanced");
    CIRCUIT_PARTS_WIRING_BASIC = addItem(716, "circuit.parts.wiring.basic");
    CIRCUIT_PARTS_WIRING_ADVANCED = addItem(717, "circuit.parts.wiring.advanced");
    CIRCUIT_PARTS_WIRING_ELITE = addItem(718, "circuit.parts.wiring.elite");
    EMPTY_BOARD_BASIC = addItem(719, "empty.board.basic");
    EMPTY_BOARD_ELITE = addItem(720, "empty.board.elite");
    COMPONENT_SAWBLADE_DIAMOND = addItem(721, "component.sawblade.diamond").addOreDict(OreDictNames.craftingDiamondBlade);
    COMPONENT_GRINDER_DIAMOND = addItem(722, "component.grinder.diamond").addOreDict(OreDictNames.craftingGrinder);
    COMPONENT_GRINDER_TUNGSTEN = addItem(723, "component.grinder.tungsten").addOreDict(OreDictNames.craftingGrinder);
    QUANTUMEYE = addItem(724, "quantumeye");
    QUANTUMSTAR = addItem(725, "quantumstar");
    GRAVISTAR = addItem(726, "gravistar");
    UPGRADE_MUFFLER = addItem(727, "upgrade.muffler");
    UPGRADE_LOCK = addItem(728, "upgrade.lock");
    COMPONENT_FILTER = addItem(729, "component.filter").setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Zinc, OrePrefix.foil.materialAmount * 16L))).addOreDict(OreDictNames.craftingFilter);
    COVER_CONTROLLER = addItem(730, "cover.controller");
    COVER_ACTIVITY_DETECTOR = addItem(731, "cover.activity.detector");
    COVER_FLUID_DETECTOR = addItem(732, "cover.fluid.detector");
    COVER_ITEM_DETECTOR = addItem(733, "cover.item.detector");
    COVER_ENERGY_DETECTOR = addItem(734, "cover.energy.detector");
    COVER_PLAYER_DETECTOR = addItem(735, "cover.player.detector");
    COVER_SCREEN = addItem(740, "cover.screen");
    COVER_CRAFTING = addItem(744, "cover.crafting");
    COVER_DRAIN = addItem(745, "cover.drain");
    COVER_SHUTTER = addItem(749, "cover.shutter");
    COVER_SOLARPANEL = addItem(750, "cover.solarpanel");
    COVER_SOLARPANEL_8V = addItem(751, "cover.solarpanel.8v");
    COVER_SOLARPANEL_LV = addItem(752, "cover.solarpanel.lv");
    COVER_SOLARPANEL_MV = addItem(753, "cover.solarpanel.mv");
    COVER_SOLARPANEL_HV = addItem(754, "cover.solarpanel.hv");
    COVER_SOLARPANEL_EV = addItem(755, "cover.solarpanel.ev");
    COVER_SOLARPANEL_IV = addItem(756, "cover.solarpanel.iv");
    COVER_SOLARPANEL_LUV = addItem(757, "cover.solarpanel.luv");
    COVER_SOLARPANEL_ZPM = addItem(758, "cover.solarpanel.zpm");
    COVER_SOLARPANEL_UV = addItem(759, "cover.solarpanel.uv");
    TOOL_CHEAT = addItem(761, "tool.cheat").addStats(/*new Behaviour_Scanner(), */
    new ElectricStats(-2000000000, -1));
    TOOL_SCANNER = addItem(762, "tool.scanner").addStats(/*new Behaviour_Scanner(),*/
    new ElectricStats(400000, 2, true, false));
    // .addStats(new Behaviour_SensorKit());
    NC_SENSORKIT = addItem(763, "nc.sensorkit");
    DUCT_TAPE = addItem(764, "duct.tape").addOreDict(OreDictNames.craftingDuctTape);
    MCGUFFIUM_239 = addItem(765, "mcguffium.239");
    INTEGRATED_CIRCUIT = addItem(766, "circuit.integrated");
    FLUID_CELL = addItem(767, "cell.fluid").addStats(new FluidStats(16000, Integer.MIN_VALUE, Integer.MAX_VALUE));
}
Also used : ItemMaterialInfo(gregtech.api.unification.stack.ItemMaterialInfo) ElectricStats(gregtech.api.items.metaitem.ElectricStats) MaterialStack(gregtech.api.unification.stack.MaterialStack) RandomPotionEffect(gregtech.api.util.RandomPotionEffect) FoodStats(gregtech.api.items.metaitem.FoodStats) FluidStats(gregtech.api.items.metaitem.FluidStats)

Example 2 with FoodStats

use of gregtech.api.items.metaitem.FoodStats in project GregTech by GregTechCE.

the class MetaItem2 method registerSubItems.

@Override
public void registerSubItems() {
    boolean drinksAlwaysDrinkable = false;
    THERMOS_CAN_DARK_COFFEE = addItem(0, "thermos_can.dark.coffee").addStats(new FoodStats(2, 0.2F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SPEED, 400, 1, 70), new RandomPotionEffect(MobEffects.HASTE, 400, 1, 70)));
    THERMOS_CAN_DARK_CAFE_AU_LAIT = addItem(1, "thermos_can.dark.cafe.au.lait").setInvisible().addStats(new FoodStats(2, 0.2F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SPEED, 400, 2, 90), new RandomPotionEffect(MobEffects.HASTE, 400, 2, 90)));
    THERMOS_CAN_COFFEE = addItem(2, "thermos_can.coffee").addStats(new FoodStats(3, 0.4F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SPEED, 400, 0, 50), new RandomPotionEffect(MobEffects.HASTE, 400, 0, 50)));
    THERMOS_CAN_CAFE_AU_LAIT = addItem(3, "thermos_can.cafe.au.lait").addStats(new FoodStats(3, 0.4F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SPEED, 400, 1, 70), new RandomPotionEffect(MobEffects.HASTE, 400, 1, 70)));
    THERMOS_CAN_LAIT_AU_CAFE = addItem(4, "thermos_can.lait.au.cafe").setInvisible().addStats(new FoodStats(3, 0.4F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SPEED, 400, 2, 90), new RandomPotionEffect(MobEffects.HASTE, 400, 2, 90)));
    THERMOS_CAN_DARK_CHOCOLATE_MILK = addItem(5, "thermos_can.dark.chocolate.milk").addStats(new FoodStats(3, 0.4F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.REGENERATION, 50, 1, 60)));
    THERMOS_CAN_CHOCOLATE_MILK = addItem(6, "thermos_can.chocolate.milk").addStats(new FoodStats(3, 0.4F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.REGENERATION, 50, 1, 90)));
    THERMOS_CAN_TEA = addItem(7, "thermos_can.tea").addStats(new FoodStats(2, 0.2F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SLOWNESS, 300, 0, 50)));
    THERMOS_CAN_SWEET_TEA = addItem(8, "thermos_can.sweet.tea").setInvisible().addStats(new FoodStats(2, 0.2F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm()));
    THERMOS_CAN_ICE_TEA = addItem(9, "thermos_can.ice.tea").addStats(new FoodStats(2, 0.2F, true, drinksAlwaysDrinkable, THERMOS_CAN_EMPTY.getStackForm(), new RandomPotionEffect(MobEffects.SLOWNESS, 300, 0, 50)));
    GELLED_TOLUENE = addItem(10, "gelled_toluene");
    ItemStack emptyBottle = new ItemStack(Items.GLASS_BOTTLE);
    // , new int[]{Potion.confusion.id, 400, 1, 90, Potion.resistance.id, 400, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5}));
    BOTTLE_GLEN_MCKENNER = addItem(117, "bottle.glen_mckenner").setInvisible().addStats(new FoodStats(2, 0.1F, true, drinksAlwaysDrinkable, emptyBottle));
    BOTTLE_PURPLE_DRINK = addItem(100, "bottle.purple.drink").addStats(new FoodStats(8, 0.2F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.SLOWNESS, 400, 1, 90)));
    BOTTLE_DIABOLO_SAUCE = addItem(122, "bottle.diabolo.sauce").setInvisible().addStats(new FoodStats(2, 0.1F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.NAUSEA, 3000, 1, 50), new RandomPotionEffect(MobEffects.FIRE_RESISTANCE, 3000, 0, 80)));
    BOTTLE_DIABLO_SAUCE = addItem(123, "bottle.diablo.sauce").setInvisible().addStats(new FoodStats(2, 0.1F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.NAUSEA, 4000, 1, 70), new RandomPotionEffect(MobEffects.FIRE_RESISTANCE, 4000, 0, 90)));
    BOTTLE_SNITCHES_GLITCH_SAUCE = addItem(124, "bottle.snitches.glitch.sauce").setInvisible().addStats(new FoodStats(2, 0.1F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.NAUSEA, 9999, 2, 999), new RandomPotionEffect(MobEffects.FIRE_RESISTANCE, 9999, 9, 999)));
    BOTTLE_NOTCHES_BREW = addItem(130, "bottle.notches.brew").setInvisible().addStats(new FoodStats(4, 0.2F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.REGENERATION, 700, 4, 95), new RandomPotionEffect(MobEffects.ABSORPTION, 3000, 1, 95), new RandomPotionEffect(MobEffects.RESISTANCE, 7000, 1, 95), new RandomPotionEffect(MobEffects.FIRE_RESISTANCE, 7000, 0, 95), new RandomPotionEffect(MobEffects.INSTANT_DAMAGE, 0, 2, 20)));
    BOTTLE_CAVE_JOHNSONS_GRENADE_JUICE = addItem(135, "bottle.cave.johnsons.grenade.juice").setInvisible().addStats(new FoodStats(0, 0.0F, true, drinksAlwaysDrinkable, emptyBottle));
    BOTTLE_HOLY_WATER = addItem(137, "bottle.holy.water").setUnificationData(OrePrefix.bottle, Materials.DistilledWater).addStats(new FoodStats(0, 0.0F, true, drinksAlwaysDrinkable, emptyBottle, new RandomPotionEffect(MobEffects.POISON, 100, 1, 100)));
    FOOD_CHUM = addItem(210, "food.chum").addStats(new FoodStats(5, 0.2F, false, true, null, new RandomPotionEffect(MobEffects.HUNGER, 1000, 4, 100), new RandomPotionEffect(MobEffects.NAUSEA, 300, 1, 80)));
    FOOD_CHUM_ON_STICK = addItem(211, "food.chum.on.stick").addStats(new FoodStats(5, 0.2F, false, true, new ItemStack(Items.STICK, 1), new RandomPotionEffect(MobEffects.HUNGER, 1000, 4, 100), new RandomPotionEffect(MobEffects.NAUSEA, 300, 1, 80)));
    DYE_INDIGO = addItem(410, "dye.indigo").addOreDict("dyeBlue");
    for (byte i = 0; i < 16; i = (byte) (i + 1)) {
        DYE_ONLY_ITEMS[i] = addItem(414 + i, "dye." + EnumDyeColor.byMetadata(i).getUnlocalizedName()).addOreDict("dye" + CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, EnumDyeColor.byMetadata(i).getName()));
    }
    PLANK_OAK = addItem(470, "plank.oak").setBurnValue(75);
    PLANK_SPRUCE = addItem(471, "plank.spruce").setBurnValue(75);
    PLANK_BIRCH = addItem(472, "plank.birch").setBurnValue(75);
    PLANK_JUNGLE = addItem(473, "plank.jungle").setBurnValue(75);
    PLANK_ACACIA = addItem(474, "plank.acacia").setBurnValue(75);
    PLANK_DARKOAK = addItem(475, "plank.darkoak").setBurnValue(75);
    SFMIXTURE = addItem(270, "sfmixture");
    MSFMIXTURE = addItem(271, "msfmixture");
    CROP_DROP_PLUMBILIA = addItem(500, "crop.drop.plumbilia");
    CROP_DROP_ARGENTIA = addItem(501, "crop.drop.argentia");
    CROP_DROP_INDIGO = addItem(502, "crop.drop.indigo");
    CROP_DROP_FERRU = addItem(503, "crop.drop.ferru");
    CROP_DROP_AURELIA = addItem(504, "crop.drop.aurelia");
    CROP_DROP_TEALEAF = addItem(505, "crop.drop.tealeaf").addOreDict("cropTea");
    CROP_DROP_OIL_BERRY = addItem(510, "crop.drop.oil_berry");
    CROP_DROP_BOBS_YER_UNCLE_RANKS = addItem(511, "crop.drop.bobs_yer_uncle_ranks");
    CROP_DROP_UUM_BERRY = addItem(512, "crop.drop.uum_berry");
    CROP_DROP_UUA_BERRY = addItem(513, "crop.drop.uua_berry");
    CROP_DROP_MILK_WART = addItem(520, "crop.drop.milk_wart");
    CROP_DROP_COPPON = addItem(530, "crop.drop.coppon");
    CROP_DROP_TINE = addItem(540, "crop.drop.tine").setBurnValue(100);
    CROP_DROP_BAUXITE = addItem(521, "crop.drop.bauxite");
    CROP_DROP_ILMENITE = addItem(522, "crop.drop.ilmenite");
    CROP_DROP_PITCHBLENDE = addItem(523, "crop.drop.pitchblende");
    CROP_DROP_URANINITE = addItem(524, "crop.drop.uraninite");
    CROP_DROP_THORIUM = addItem(526, "crop.drop.thorium");
    CROP_DROP_NICKEL = addItem(527, "crop.drop.nickel");
    CROP_DROP_ZINC = addItem(528, "crop.drop.zinc");
    CROP_DROP_MANGANESE = addItem(529, "crop.drop.manganese");
    CROP_DROP_SCHEELITE = addItem(531, "crop.drop.scheelite");
    CROP_DROP_PLATINUM = addItem(532, "crop.drop.platinum");
    CROP_DROP_IRIDIUM = addItem(533, "crop.drop.iridium");
    CROP_DROP_OSMIUM = addItem(534, "crop.drop.osmium");
    CROP_DROP_NAQUADAH = addItem(535, "crop.drop.naquadah");
    CROP_DROP_CHILLY = addItem(550, "crop.drop.chilly").addOreDict("cropChilipepper").addStats(new FoodStats(1, 0.3F, false, false, null, new RandomPotionEffect(MobEffects.NAUSEA, 200, 1, 40)));
    CROP_DROP_LEMON = addItem(551, "crop.drop.lemon").addOreDict("cropLemon").addStats(new FoodStats(1, 0.3F));
    CROP_DROP_TOMATO = addItem(552, "crop.drop.tomato").addOreDict("cropTomato").addStats(new FoodStats(1, 0.2F));
    CROP_DROP_MTOMATO = addItem(553, "crop.drop.mtomato").addOreDict("cropTomato").addStats(new FoodStats(9, 1.0F, false, false, null, new RandomPotionEffect(MobEffects.REGENERATION, 100, 100, 100)));
    CROP_DROP_GRAPES = addItem(554, "crop.drop.grapes").addOreDict("cropGrape").addStats(new FoodStats(2, 0.3F));
    CROP_DROP_ONION = addItem(555, "crop.drop.onion").addOreDict("cropOnion").addStats(new FoodStats(2, 0.2F));
    CROP_DROP_CUCUMBER = addItem(556, "crop.drop.cucumber").addOreDict("cropCucumber").addStats(new FoodStats(1, 0.2F));
}
Also used : RandomPotionEffect(gregtech.api.util.RandomPotionEffect) FoodStats(gregtech.api.items.metaitem.FoodStats) ItemStack(net.minecraft.item.ItemStack)

Aggregations

FoodStats (gregtech.api.items.metaitem.FoodStats)2 RandomPotionEffect (gregtech.api.util.RandomPotionEffect)2 ElectricStats (gregtech.api.items.metaitem.ElectricStats)1 FluidStats (gregtech.api.items.metaitem.FluidStats)1 ItemMaterialInfo (gregtech.api.unification.stack.ItemMaterialInfo)1 MaterialStack (gregtech.api.unification.stack.MaterialStack)1 ItemStack (net.minecraft.item.ItemStack)1