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

@ -1,36 +0,0 @@
package techreborn.items;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import techreborn.lib.ModInfo;
import java.util.List;
/**
* Created by modmuss50 on 17/05/2016.
*/
@Deprecated
public class EmptyCell extends ItemTextureBase {
public EmptyCell() {
super();
setUnlocalizedName("techreborn.cell");
}
@Override
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
tooltip.add("§cDeprecated");
tooltip.add("§7Place to workbench to get new item");
}
@Override
public String getTextureName(int damage) {
return ModInfo.MOD_ID + ":items/cell_base";
}
@Override
public int getMaxMeta() {
return 1;
}
}

View file

@ -5,25 +5,11 @@ import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import org.apache.commons.lang3.Validate;
import reborncore.common.util.StringUtils;
import techreborn.init.ModItems;
public class ItemCells {
@Deprecated
public static final String[] types = new String[] { "Berylium", "biomass", "calciumCarbonate", "calcium", "carbon",
"chlorine", "deuterium", "diesel", "ethanol", "glyceryl", "helium3", "helium", "heliumPlasma", "hydrogen",
"ice", "lithium", "mercury", "methane", "nitrocarbon", "nitroCoalfuel", "nitroDiesel", "nitrogen",
"nitrogenDioxide", "oil", "potassium", "seedOil", "silicon", "sodium", "sodiumPersulfate", "sodiumSulfide",
"sulfur", "sulfuricAcid", "tritium", "wolframium", "empty", "lava", "water" };
@Deprecated
public static ItemStack getCellByName(String name, int count, boolean lookForIC2) {
return getCellByName(name, count);
}
public static ItemStack getCellByName(String name, int count) {
if (name.equalsIgnoreCase("empty") || name.equalsIgnoreCase("cell")) {
return new ItemStack(ModItems.emptyCell, count);
return DynamicCell.getEmptyCell(16).copy();
}
Fluid fluid = FluidRegistry.getFluid("fluid" + name.toLowerCase());
if (fluid == null) {