Remove deprecated empty cell

This commit is contained in:
ProfessorProspector 2016-12-12 15:57:04 -08:00
parent de5ebf5ae3
commit c271422e11
6 changed files with 16 additions and 96 deletions

View file

@ -2,7 +2,6 @@ package techreborn.init;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.oredict.OreDictionary;
@ -22,6 +21,7 @@ import techreborn.items.tools.*;
public class ModItems {
public static final String META_PLACEHOLDER = "PLACEHOLDER_ITEM";
public static Item gems;
public static Item ingots;
public static Item nuggets;
@ -38,84 +38,65 @@ public class ModItems {
public static Item uuMatter;
public static Item plate;
public static Item cloakingDevice;
public static Item reBattery;
public static Item treeTap;
public static Item electricTreetap;
public static Item ironDrill;
public static Item diamondDrill;
public static Item advancedDrill;
public static Item ironChainsaw;
public static Item diamondChainsaw;
public static Item advancedChainsaw;
public static Item steelJackhammer;
public static Item diamondJackhammer;
public static Item advancedJackhammer;
public static Item nanosaber;
public static Item wrench;
public static Item lapotronCrystal;
public static Item energyCrystal;
public static Item scrapBox;
public static Item frequencyTransmitter;
public static Item bronzeSword;
public static Item bronzePickaxe;
public static Item bronzeSpade;
public static Item bronzeAxe;
public static Item bronzeHoe;
public static Item bronzeHelmet;
public static Item bronzeChestplate;
public static Item bronzeLeggings;
public static Item bronzeBoots;
public static Item rubySword;
public static Item rubyPickaxe;
public static Item rubySpade;
public static Item rubyAxe;
public static Item rubyHoe;
public static Item rubyHelmet;
public static Item rubyChestplate;
public static Item rubyLeggings;
public static Item rubyBoots;
public static Item sapphireSword;
public static Item sapphirePickaxe;
public static Item sapphireSpade;
public static Item sapphireAxe;
public static Item sapphireHoe;
public static Item sapphireHelmet;
public static Item sapphireChestplate;
public static Item sapphireLeggings;
public static Item sapphireBoots;
public static Item peridotSword;
public static Item peridotPickaxe;
public static Item peridotSpade;
public static Item peridotAxe;
public static Item peridotHoe;
public static Item peridotHelmet;
public static Item peridotChestplate;
public static Item peridotLeggings;
public static Item peridotBoots;
public static Item upgrades;
public static Item missingRecipe;
public static Item debug;
public static Item emptyCell;
public static DynamicCell dynamicCell;
public static final String META_PLACEHOLDER = "PLACEHOLDER_ITEM";
public static void init() throws InstantiationException, IllegalAccessException {
gems = new ItemGems();
registerItem(gems, "gem");
@ -293,11 +274,6 @@ public class ModItems {
dynamicCell = new DynamicCell();
registerItem(dynamicCell, "dynamicCell");
emptyCell = dynamicCell;
Item cell = new EmptyCell();
registerItem(cell, "emptyCell");
GameRegistry.addShapelessRecipe(new ItemStack(dynamicCell), cell);
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
Core.logHelper.info("TechReborns Items Loaded");

View file

@ -485,7 +485,7 @@ public class ModRecipes {
"ingot" + name.substring(0, 1).toUpperCase() + name.substring(1));
}
CraftingHelper
.addShapedOreRecipe(ItemCells.getCellByName("empty", 16, false), " T ", "T T", " T ", 'T', "ingotTin");
.addShapedOreRecipe(DynamicCell.getEmptyCell(16), " T ", "T T", " T ", 'T', "ingotTin");
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ironFence, 6), " ", "RRR", "RRR", 'R',
ItemIngots.getIngotByName("refined_iron"));
@ -831,7 +831,7 @@ public class ModRecipes {
"ingotSteel", 'C', "ingotChrome", 'A', "ingotAluminum");
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("heliumCoolantSimple"), " T ", "TCT", " T ", 'T',
"ingotTin", 'C', ItemCells.getCellByName("helium", 1, false));
"ingotTin", 'C', ItemCells.getCellByName("helium", 1));
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantTriple"), "TTT", "CCC", "TTT", 'T',
"ingotTin", 'C', ItemParts.getPartByName("heliumCoolantSimple"));
@ -1526,7 +1526,7 @@ public class ModRecipes {
RecipeHandler.addRecipe(
new CentrifugeRecipe(new ItemStack(Items.GLOWSTONE_DUST, 16), RecipeUtils.getEmptyCell(1),
ItemCells.getCellByName("helium", 1, false), ItemDusts.getDustByName("gold", 8),
ItemCells.getCellByName("helium", 1), ItemDusts.getDustByName("gold", 8),
new ItemStack(Items.REDSTONE), null, 25000, 20));
}

View file

@ -22,7 +22,7 @@ public class SubItemRetriever implements ISubItemRetriever {
@Override
public ItemStack getCellByName(String name, int count, boolean lookForIC2) {
return ItemCells.getCellByName(name, count, lookForIC2);
return ItemCells.getCellByName(name, count);
}
@Override