Removed a load of un needed junk from other versions of Gtech
This commit is contained in:
parent
5a230b20a2
commit
a8ea0f55e7
141 changed files with 139 additions and 2326 deletions
|
@ -1,93 +0,0 @@
|
|||
package techreborn.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
import techreborn.init.ModItems;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemDustsTiny extends ItemTR {
|
||||
|
||||
public static ItemStack getTinyDustByName(String name, int count) {
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
if (types[i].equalsIgnoreCase(name)) {
|
||||
return new ItemStack(ModItems.tinyDusts, count, i);
|
||||
}
|
||||
}
|
||||
throw new InvalidParameterException("The gem " + name + " could not be found.");
|
||||
}
|
||||
|
||||
public static ItemStack getTinyDustByName(String name) {
|
||||
return getTinyDustByName(name, 1);
|
||||
}
|
||||
|
||||
public static final String[] types = new String[]
|
||||
{"Almandine", "AluminumBrass", "Aluminum", "Alumite", "Andradite",
|
||||
"Antimony", "Ardite", "Ashes", "Basalt", "Bauxite", "Biotite",
|
||||
"Brass", "Bronze", "Cadmium", "Calcite", "Charcoal", "Chrome",
|
||||
"Cinnabar", "Clay", "Coal", "Cobalt", "Copper", "Cupronickel",
|
||||
"DarkAshes", "DarkIron", "Diamond", "Electrum", "Emerald",
|
||||
"EnderEye", "EnderPearl", "Endstone", "Flint", "Glowstone", "Gold", "Graphite",
|
||||
"Grossular", "Gunpowder", "Indium", "Invar", "Iridium", "Iron", "Kanthal", "Lapis", "Lazurite",
|
||||
"Lead", "Limestone", "Lodestone", "Magnesium", "Magnetite", "Manganese",
|
||||
"Manyullyn", "Marble", "Mithril", "Netherrack", "Nichrome", "Nickel",
|
||||
"Obsidian", "Osmium", "Peridot", "Phosphorous", "Platinum", "PotassiumFeldspar",
|
||||
"Pyrite", "Pyrope", "RedGarnet", "Redrock", "Redstone", "Ruby", "Saltpeter",
|
||||
"Sapphire", "Silicon", "Silver", "Sodalite", "Spessartine", "Sphalerite",
|
||||
"Steel", "Sulfur", "Tellurium", "Teslatite", "Tetrahedrite", "Tin",
|
||||
"Titanium", "Tungsten", "Uvarovite", "Vinteum", "Voidstone", "YellowGarnet",
|
||||
"Zinc", "Galena"};
|
||||
|
||||
private IIcon[] textures;
|
||||
|
||||
public ItemDustsTiny() {
|
||||
setUnlocalizedName("techreborn.dusttiny");
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
// Registers Textures For All Dusts
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
textures = new IIcon[types.length];
|
||||
|
||||
for (int i = 0; i < types.length; ++i) {
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "tinyDust/tiny"
|
||||
+ types[i] + "Dust");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
// Adds Texture what match's meta data
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
if (meta < 0 || meta >= textures.length) {
|
||||
meta = 0;
|
||||
}
|
||||
|
||||
return textures[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
// gets Unlocalized Name depending on meta data
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = itemStack.getItemDamage();
|
||||
if (meta < 0 || meta >= types.length) {
|
||||
meta = 0;
|
||||
}
|
||||
|
||||
return super.getUnlocalizedName() + "." + types[meta];
|
||||
}
|
||||
|
||||
// Adds Dusts SubItems To Creative Tab
|
||||
public void getSubItems(Item item, CreativeTabs creativeTabs, List list) {
|
||||
for (int meta = 0; meta < types.length; ++meta) {
|
||||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -36,11 +36,10 @@ public class ItemParts extends Item {
|
|||
"heliumCoolantSimple", "HeliumCoolantTriple", "HeliumCoolantSix",
|
||||
"NaKCoolantSimple", "NaKCoolantTriple", "NaKCoolantSix",
|
||||
"cupronickelHeatingCoil", "nichromeHeatingCoil", "kanthalHeatingCoil",
|
||||
"bronzeGear", "ironGear", "titaniumGear", "steelGear", "tungstensteelGear",
|
||||
"laserFocus", "ductTape", "lazuriteChunk", "iridiumAlloyIngot", "rockCutterBlade", "superConductor",
|
||||
"thoriumCell", "doubleThoriumCell", "quadThoriumCell", "plutoniumCell", "doublePlutoniumCell",
|
||||
"quadPlutoniumCell", "destructoPack", "iridiumNeutronReflector", "massHoleDevice", "computerMonitor"
|
||||
, "machineParts", ""};
|
||||
,"machineParts"};
|
||||
|
||||
private IIcon[] textures;
|
||||
|
||||
|
|
|
@ -1,81 +0,0 @@
|
|||
package techreborn.items;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
import techreborn.init.ModItems;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemRods extends Item {
|
||||
|
||||
public static ItemStack getRodByName(String name, int count) {
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
if (types[i].equalsIgnoreCase(name)) {
|
||||
return new ItemStack(ModItems.rods, count, i);
|
||||
}
|
||||
}
|
||||
throw new InvalidParameterException("The rod " + name + " could not be found.");
|
||||
}
|
||||
|
||||
public static ItemStack getRodByName(String name) {
|
||||
return getRodByName(name, 1);
|
||||
}
|
||||
|
||||
public static final String[] types = new String[]
|
||||
{"brass", "bronze", "copper", "electrum", "gold", "invar",
|
||||
"iridium", "iron", "lead", "nickel", "platinum",
|
||||
"silver", "steel", "tin", "titanium", "tungstensteel"};
|
||||
|
||||
private IIcon[] textures;
|
||||
|
||||
public ItemRods() {
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
setHasSubtypes(true);
|
||||
setUnlocalizedName("techreborn.rod");
|
||||
}
|
||||
|
||||
@Override
|
||||
// Registers Textures For All Dusts
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
textures = new IIcon[types.length];
|
||||
|
||||
for (int i = 0; i < types.length; ++i) {
|
||||
textures[i] = iconRegister.registerIcon("techreborn:" + "metalRod/"
|
||||
+ types[i] + "Rod");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
// Adds Texture what match's meta data
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
if (meta < 0 || meta >= textures.length) {
|
||||
meta = 0;
|
||||
}
|
||||
|
||||
return textures[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
// gets Unlocalized Name depending on meta data
|
||||
public String getUnlocalizedName(ItemStack itemStack) {
|
||||
int meta = itemStack.getItemDamage();
|
||||
if (meta < 0 || meta >= types.length) {
|
||||
meta = 0;
|
||||
}
|
||||
|
||||
return super.getUnlocalizedName() + "." + types[meta];
|
||||
}
|
||||
|
||||
// Adds Dusts SubItems To Creative Tab
|
||||
public void getSubItems(Item item, CreativeTabs creativeTabs, List list) {
|
||||
for (int meta = 0; meta < types.length; ++meta) {
|
||||
list.add(new ItemStack(item, 1, meta));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue