Added Universal Cell
This commit is contained in:
parent
9035f2a21c
commit
e38c800f21
13 changed files with 179 additions and 24 deletions
|
@ -28,18 +28,11 @@ import techreborn.api.Reference;
|
|||
public class ModItems
|
||||
{
|
||||
|
||||
// This are deprected to stop people using them in the recipes.
|
||||
@Deprecated
|
||||
public static Item gems;
|
||||
@Deprecated
|
||||
public static Item ingots;
|
||||
@Deprecated
|
||||
public static Item nuggets;
|
||||
@Deprecated
|
||||
public static Item dusts;
|
||||
@Deprecated
|
||||
public static Item smallDusts;
|
||||
@Deprecated
|
||||
public static Item parts;
|
||||
@Deprecated
|
||||
public static Item cells;
|
||||
|
@ -52,8 +45,6 @@ public class ModItems
|
|||
public static Item manual;
|
||||
public static Item uuMatter;
|
||||
public static Item plate;
|
||||
public static Item crushedOre;
|
||||
public static Item purifiedCrushedOre;
|
||||
public static Item cloakingDevice;
|
||||
|
||||
public static Item reBattery;
|
||||
|
@ -124,6 +115,9 @@ public class ModItems
|
|||
public static Item missingRecipe;
|
||||
public static Item debug;
|
||||
|
||||
public static Item emptyCell;
|
||||
public static DynamicCell dynamicCell;
|
||||
|
||||
public static void init() throws InstantiationException, IllegalAccessException
|
||||
{
|
||||
gems = new ItemGems();
|
||||
|
@ -312,6 +306,12 @@ public class ModItems
|
|||
debug = new ItemDebugTool();
|
||||
GameRegistry.registerItem(debug, "debug");
|
||||
|
||||
emptyCell = new EmptyCell();
|
||||
GameRegistry.registerItem(emptyCell, "emptyCell");
|
||||
|
||||
dynamicCell = new DynamicCell();
|
||||
GameRegistry.registerItem(dynamicCell, "dynamicCell");
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
|
||||
|
||||
Core.logHelper.info("TechReborns Items Loaded");
|
||||
|
|
|
@ -3,6 +3,7 @@ package techreborn.init;
|
|||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import techreborn.api.recipe.IRecipeCompact;
|
||||
import techreborn.blocks.BlockMachineFrame;
|
||||
import techreborn.items.*;
|
||||
|
@ -36,8 +37,8 @@ public class RecipeCompact implements IRecipeCompact
|
|||
recipes.put("iridiumOre", ItemIngots.getIngotByName("iridium"));
|
||||
recipes.put("plateiron", ItemPlates.getPlateByName("iron"));
|
||||
recipes.put("iridiumPlate", ItemPlates.getPlateByName("iridium"));
|
||||
recipes.put("cell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("airCell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("cell", new ItemStack(ModItems.emptyCell));
|
||||
recipes.put("airCell", new ItemStack(ModItems.emptyCell));
|
||||
recipes.put("electronicCircuit", ItemParts.getPartByName("electronicCircuit"));
|
||||
recipes.put("advancedCircuit", ItemParts.getPartByName("advancedCircuit"));
|
||||
recipes.put("rubberWood", new ItemStack(ModBlocks.rubberLog));
|
||||
|
@ -52,8 +53,8 @@ public class RecipeCompact implements IRecipeCompact
|
|||
recipes.put("diamondDrill", new ItemStack(ModItems.diamondDrill));
|
||||
recipes.put("miningDrill", new ItemStack(ModItems.ironDrill));
|
||||
recipes.put("solarPanel", new ItemStack(ModBlocks.solarPanel));
|
||||
recipes.put("waterCell", ItemCells.getCellByName("water"));
|
||||
recipes.put("lavaCell", ItemCells.getCellByName("lava"));
|
||||
recipes.put("waterCell", DynamicCell.getCellWithFluid(FluidRegistry.WATER));
|
||||
recipes.put("lavaCell", DynamicCell.getCellWithFluid(FluidRegistry.LAVA));
|
||||
recipes.put("pump", new ItemStack(ModBlocks.pump));
|
||||
// recipes.put("teleporter", new ItemStack(ModItems.missingRecipe));
|
||||
recipes.put("advancedAlloy", ItemIngots.getIngotByName("advancedAlloy"));
|
||||
|
|
|
@ -4,15 +4,7 @@ import net.minecraft.item.ItemStack;
|
|||
import techreborn.api.ISubItemRetriever;
|
||||
import techreborn.blocks.BlockOre;
|
||||
import techreborn.blocks.BlockStorage;
|
||||
import techreborn.items.ItemCells;
|
||||
import techreborn.items.ItemDusts;
|
||||
import techreborn.items.ItemDustsSmall;
|
||||
import techreborn.items.ItemGems;
|
||||
import techreborn.items.ItemIngots;
|
||||
import techreborn.items.ItemNuggets;
|
||||
import techreborn.items.ItemParts;
|
||||
import techreborn.items.ItemPlates;
|
||||
import techreborn.items.ItemUpgrades;
|
||||
import techreborn.items.*;
|
||||
|
||||
/**
|
||||
* Created by Mark on 03/04/2016.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue