Flattened nuggets

This commit is contained in:
drcrazy 2018-08-23 15:20:57 +03:00
parent 45d6317d12
commit 2939ee02a3
15 changed files with 183 additions and 169 deletions

View file

@ -38,6 +38,7 @@ import techreborn.blocks.cable.EnumCableType;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
import techreborn.init.ModItems; import techreborn.init.ModItems;
import techreborn.init.ModNuggets;
import techreborn.init.ModPlates; import techreborn.init.ModPlates;
import techreborn.items.*; import techreborn.items.*;
import techreborn.lib.ModInfo; import techreborn.lib.ModInfo;
@ -134,11 +135,7 @@ public class RegisterItemJsons {
} }
ModPlates.registerModel(); ModPlates.registerModel();
ModNuggets.registerModel();
name = ItemNuggets.types.clone();
for (int i = 0; i < ItemNuggets.types.length; ++i) {
registerBlockstate(ModItems.NUGGETS, i, name[i], "items/materials/");
}
name = ItemDusts.types.clone(); name = ItemDusts.types.clone();
for (int i = 0; i < ItemDusts.types.length; ++i) { for (int i = 0; i < ItemDusts.types.length; ++i) {

View file

@ -47,7 +47,7 @@ public class ModItems {
public static Item GEMS; public static Item GEMS;
public static Item INGOTS; public static Item INGOTS;
public static Item NUGGETS;
public static Item DUSTS; public static Item DUSTS;
public static Item SMALL_DUSTS; public static Item SMALL_DUSTS;
public static Item PARTS; public static Item PARTS;
@ -166,9 +166,9 @@ public class ModItems {
registerItem(SMALL_DUSTS, "smallDust"); registerItem(SMALL_DUSTS, "smallDust");
ModPlates.register(); ModPlates.register();
ModNuggets.register();
NUGGETS = new ItemNuggets();
registerItem(NUGGETS, "nuggets");
// purifiedCrushedOre = new ItemPurifiedCrushedOre(); // purifiedCrushedOre = new ItemPurifiedCrushedOre();
// registerItem(purifiedCrushedOre, "purifiedCrushedOre"); // registerItem(purifiedCrushedOre, "purifiedCrushedOre");
PARTS = new ItemParts(); PARTS = new ItemParts();

View file

@ -0,0 +1,60 @@
/**
*
*/
package techreborn.init;
import java.util.Arrays;
import com.google.common.base.CaseFormat;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.RebornRegistry;
import techreborn.items.ItemNuggets;
import techreborn.lib.ModInfo;
/**
* @author drcrazy
*
*/
public enum ModNuggets implements IStringSerializable {
ALUMINUM, BRASS, BRONZE, CHROME, COPPER, DIAMOND, ELECTRUM, HOT_TUNGSTENSTEEL, INVAR, IRIDIUM, LEAD, NICKEL,
PLATINUM, REFINED_IRON, SILVER, STEEL, TIN, TITANIUM, TUNGSTEN, TUNGSTENSTEEL, ZINC;
public final String name;
public final Item item;
private ModNuggets() {
name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "NUGGET_" + this.toString());
item = new ItemNuggets();
item.setRegistryName(new ResourceLocation(ModInfo.MOD_ID, name));
item.setTranslationKey(ModInfo.MOD_ID + "." + name);
}
public ItemStack getStack() {
return new ItemStack(item);
}
public static void register() {
Arrays.stream(ModNuggets.values()).forEach(nugget -> RebornRegistry.registerItem(nugget.item));
}
@SideOnly(Side.CLIENT)
public static void registerModel() {
ResourceLocation blockstateJson = new ResourceLocation(ModInfo.MOD_ID, "items/materials/nuggets");
Arrays.stream(ModNuggets.values()).forEach(nugget -> ModelLoader.setCustomModelResourceLocation(nugget.item, 0,
new ModelResourceLocation(blockstateJson, "type=" + nugget.name)));
}
@Override
public String getName() {
return name;
}
}

View file

@ -66,7 +66,6 @@ public enum ModPlates implements IStringSerializable {
public static void register() { public static void register() {
Arrays.stream(ModPlates.values()).forEach(plate -> RebornRegistry.registerItem(plate.item)); Arrays.stream(ModPlates.values()).forEach(plate -> RebornRegistry.registerItem(plate.item));
} }
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)

View file

@ -103,9 +103,8 @@ public class OreDict {
// if (!ignoreIt) // if (!ignoreIt)
// ItemPlates.registerType(type); // ItemPlates.registerType(type);
} }
// TODO: fix recipe
// for (String type : ItemPlates.types) { // for (String type : ItemPlates.types) {
// // TODO: fix recipe
// OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "plate_" + type), ItemPlates.getPlateByName(type)); // OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "plate_" + type), ItemPlates.getPlateByName(type));
// } // }
@ -116,10 +115,10 @@ public class OreDict {
for (String type : ItemDustsSmall.types) { for (String type : ItemDustsSmall.types) {
OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "dust_small_" + type), ItemDustsSmall.getSmallDustByName(type)); OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "dust_small_" + type), ItemDustsSmall.getSmallDustByName(type));
} }
// TODO: fix recipe
for (String type : ItemNuggets.types) { // for (String type : ItemNuggets.types) {
OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "nugget_" + type), ItemNuggets.getNuggetByName(type)); // OreUtil.registerOre(CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "nugget_" + type), ItemNuggets.getNuggetByName(type));
} // }
} }

View file

@ -84,14 +84,19 @@ public class SubItemRetriever implements ISubItemRetriever {
return ItemIngots.getIngotByName(name, count); return ItemIngots.getIngotByName(name, count);
} }
@Override @Override
public ItemStack getNuggetByName(String name) { public ItemStack getNuggetByName(String name) {
return ItemNuggets.getNuggetByName(name); // TODO: fix recipe
// return ItemNuggets.getNuggetByName(name);
return null;
} }
@Override @Override
public ItemStack getNuggetByName(String name, int count) { public ItemStack getNuggetByName(String name, int count) {
return ItemNuggets.getNuggetByName(name, count); // TODO: fix recipe
// return ItemNuggets.getNuggetByName(name, count);
return null;
} }
@Override @Override
@ -104,15 +109,19 @@ public class SubItemRetriever implements ISubItemRetriever {
return ItemParts.getPartByName(name, count); return ItemParts.getPartByName(name, count);
} }
// @Override @Override
// public ItemStack getPlateByName(String name) { public ItemStack getPlateByName(String name) {
// TODO: fix recipe
// return ItemPlates.getPlateByName(name); // return ItemPlates.getPlateByName(name);
// } return null;
}
// @Override @Override
// public ItemStack getPlateByName(String name, int count) { public ItemStack getPlateByName(String name, int count) {
// TODO: fix recipe
// return ItemPlates.getPlateByName(name, count); // return ItemPlates.getPlateByName(name, count);
// } return null;
}
@Override @Override
public ItemStack getUpgradeByName(String name) { public ItemStack getUpgradeByName(String name) {
@ -143,16 +152,4 @@ public class SubItemRetriever implements ISubItemRetriever {
public ItemStack getStorageBlockByName(String name, int count) { public ItemStack getStorageBlockByName(String name, int count) {
return BlockStorage.getStorageBlockByName(name, count); return BlockStorage.getStorageBlockByName(name, count);
} }
@Override
public ItemStack getPlateByName(String name) {
// TODO Auto-generated method stub
return null;
}
@Override
public ItemStack getPlateByName(String name, int count) {
// TODO Auto-generated method stub
return null;
}
} }

View file

@ -320,15 +320,16 @@ public class CraftingTableRecipes extends RecipeMethods {
registerShapeless(getMaterial(name, Type.DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST)); registerShapeless(getMaterial(name, Type.DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST), getMaterialObject(name, Type.SMALL_DUST));
} }
for (String nuggets : ItemNuggets.types) { // TODO: fix recipe
if (nuggets.equalsIgnoreCase("diamond")) // for (String nuggets : ItemNuggets.types) {
continue; // if (nuggets.equalsIgnoreCase("diamond"))
registerShapeless(getMaterial(nuggets, 9, Type.NUGGET), CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "ingot_" + nuggets)); // continue;
registerShaped(getMaterial(nuggets, Type.INGOT), "NNN", "NNN", "NNN", 'N', CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "nugget_" + nuggets)); // registerShapeless(getMaterial(nuggets, 9, Type.NUGGET), CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "ingot_" + nuggets));
} // registerShaped(getMaterial(nuggets, Type.INGOT), "NNN", "NNN", "NNN", 'N', CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, "nugget_" + nuggets));
// }
registerShapeless(getMaterial("diamond", 9, Type.NUGGET), "gemDiamond"); //
registerShaped(getStack(Items.DIAMOND), "NNN", "NNN", "NNN", 'N', "nuggetDiamond"); // registerShapeless(getMaterial("diamond", 9, Type.NUGGET), "gemDiamond");
// registerShaped(getStack(Items.DIAMOND), "NNN", "NNN", "NNN", 'N', "nuggetDiamond");
} }
static void registerMixedMetalIngotRecipes() { static void registerMixedMetalIngotRecipes() {

View file

@ -46,8 +46,9 @@ public class IndustrialCentrifugeRecipes extends RecipeMethods {
register(getStack(Blocks.MYCELIUM, 8), 1640, getStack(Blocks.SAND, 4), getStack(Items.CLAY_BALL), getStack(Blocks.BROWN_MUSHROOM, 2), getStack(Blocks.RED_MUSHROOM, 2)); register(getStack(Blocks.MYCELIUM, 8), 1640, getStack(Blocks.SAND, 4), getStack(Items.CLAY_BALL), getStack(Blocks.BROWN_MUSHROOM, 2), getStack(Blocks.RED_MUSHROOM, 2));
register(getStack(Items.GOLDEN_APPLE), 5000, getStack(Items.GOLD_INGOT, 6), getMaterial("methane", Type.CELL)); register(getStack(Items.GOLDEN_APPLE), 5000, getStack(Items.GOLD_INGOT, 6), getMaterial("methane", Type.CELL));
register(getStack(Items.GOLDEN_APPLE, 1, 1), 5000, getStack(Items.GOLD_INGOT, 64), getMaterial("methane", Type.CELL)); register(getStack(Items.GOLDEN_APPLE, 1, 1), 5000, getStack(Items.GOLD_INGOT, 64), getMaterial("methane", Type.CELL));
register(getStack(Items.GOLDEN_CARROT), 5000, getStack(Items.GOLD_NUGGET, 6), getMaterial("methane", Type.CELL)); // TODO: Fix recipe
register(getStack(Items.SPECKLED_MELON, 8), 5000, getStack(Items.GOLD_NUGGET, 6), getMaterial("methane", Type.CELL)); // register(getStack(Items.GOLDEN_CARROT), 5000, getStack(Items.GOLD_NUGGET, 6), getMaterial("methane", Type.CELL));
// register(getStack(Items.SPECKLED_MELON, 8), 5000, getStack(Items.GOLD_NUGGET, 6), getMaterial("methane", Type.CELL));
register(getStack(Items.APPLE, 32), 5000, getMaterial("methane", Type.CELL)); register(getStack(Items.APPLE, 32), 5000, getMaterial("methane", Type.CELL));
register(getStack(Items.MUSHROOM_STEW, 16), 5000, getMaterial("methane", Type.CELL)); register(getStack(Items.MUSHROOM_STEW, 16), 5000, getMaterial("methane", Type.CELL));
register(getStack(Items.BREAD, 64), 5000, getMaterial("methane", Type.CELL)); register(getStack(Items.BREAD, 64), 5000, getMaterial("methane", Type.CELL));
@ -89,7 +90,8 @@ public class IndustrialCentrifugeRecipes extends RecipeMethods {
register(getOre("dustElectrum"), 960, getMaterial("gold", 2, Type.SMALL_DUST), getMaterial("silver", 2, Type.SMALL_DUST)); register(getOre("dustElectrum"), 960, getMaterial("gold", 2, Type.SMALL_DUST), getMaterial("silver", 2, Type.SMALL_DUST));
register(getOre("dustZinc"), 1040, getMaterial("tin", Type.SMALL_DUST)); register(getOre("dustZinc"), 1040, getMaterial("tin", Type.SMALL_DUST));
register(getOre("dustBrass"), 1500, getMaterial("copper", 3, Type.SMALL_DUST), getMaterial("zinc", Type.SMALL_DUST)); register(getOre("dustBrass"), 1500, getMaterial("copper", 3, Type.SMALL_DUST), getMaterial("zinc", Type.SMALL_DUST));
register(getOre("dustPlatinum", 2), 3000, getMaterial("iridium", 2, Type.NUGGET), getMaterial("nickel", Type.SMALL_DUST)); // TODO: Fix recipe
// register(getOre("dustPlatinum", 2), 3000, getMaterial("iridium", 2, Type.NUGGET), getMaterial("nickel", Type.SMALL_DUST));
register(getOre("dustNickel", 3), 3440, getMaterial("iron", Type.SMALL_DUST), getMaterial("gold", Type.SMALL_DUST), getMaterial("copper", Type.SMALL_DUST)); register(getOre("dustNickel", 3), 3440, getMaterial("iron", Type.SMALL_DUST), getMaterial("gold", Type.SMALL_DUST), getMaterial("copper", Type.SMALL_DUST));
register(getOre("dustGold", 3), 2400, getMaterial("copper", Type.SMALL_DUST), getMaterial("nickel", Type.SMALL_DUST)); register(getOre("dustGold", 3), 2400, getMaterial("copper", Type.SMALL_DUST), getMaterial("nickel", Type.SMALL_DUST));
register(getOre("dustCopper", 3), 2400, getMaterial("gold", Type.SMALL_DUST), getMaterial("nickel", Type.SMALL_DUST)); register(getOre("dustCopper", 3), 2400, getMaterial("gold", Type.SMALL_DUST), getMaterial("nickel", Type.SMALL_DUST));
@ -97,7 +99,8 @@ public class IndustrialCentrifugeRecipes extends RecipeMethods {
register(getOre("dustGlowstone", 16), 2500, getStack(Items.REDSTONE, 8), getMaterial("sulfur", Type.CELL), getMaterial("helium", Type.CELL)); register(getOre("dustGlowstone", 16), 2500, getStack(Items.REDSTONE, 8), getMaterial("sulfur", Type.CELL), getMaterial("helium", Type.CELL));
register(getStack(Items.DYE, 4, 4), 1500, false, getMaterial("lazurite", 3, Type.DUST), getMaterial("pyrite", Type.SMALL_DUST), getMaterial("calcite", Type.SMALL_DUST), getMaterial("sodalite", 2, Type.SMALL_DUST)); register(getStack(Items.DYE, 4, 4), 1500, false, getMaterial("lazurite", 3, Type.DUST), getMaterial("pyrite", Type.SMALL_DUST), getMaterial("calcite", Type.SMALL_DUST), getMaterial("sodalite", 2, Type.SMALL_DUST));
register(getOre("dustEnderEye", 2), 1840, getMaterial("ender_pearl", 2, Type.DUST), getStack(Items.BLAZE_POWDER)); register(getOre("dustEnderEye", 2), 1840, getMaterial("ender_pearl", 2, Type.DUST), getStack(Items.BLAZE_POWDER));
register(getOre("dustNetherrack", 16), 2400, getStack(Items.REDSTONE), getMaterial("sulfur", Type.CELL), getMaterial("coal", Type.DUST), getStack(Items.GOLD_NUGGET)); // TODO: Fix recipe
// register(getOre("dustNetherrack", 16), 2400, getStack(Items.REDSTONE), getMaterial("sulfur", Type.CELL), getMaterial("coal", Type.DUST), getStack(Items.GOLD_NUGGET));
register(getOre("dustEndstone", 16), 4800, getMaterial("helium3", Type.CELL), getMaterial("helium", Type.CELL), getMaterial("tungsten", Type.SMALL_DUST), getStack(Blocks.SAND, 12)); register(getOre("dustEndstone", 16), 4800, getMaterial("helium3", Type.CELL), getMaterial("helium", Type.CELL), getMaterial("tungsten", Type.SMALL_DUST), getStack(Blocks.SAND, 12));
register(getOre("dustRedGarnet", 16), 3000, getMaterial("pyrope", 3, Type.DUST), getMaterial("almandine", 5, Type.DUST), getMaterial("spessartine", 8, Type.DUST)); register(getOre("dustRedGarnet", 16), 3000, getMaterial("pyrope", 3, Type.DUST), getMaterial("almandine", 5, Type.DUST), getMaterial("spessartine", 8, Type.DUST));
register(getOre("dustYellowGarnet", 16), 3500, getMaterial("andradite", 5, Type.DUST), getMaterial("grossular", 8, Type.DUST), getMaterial("uvarovite", 3, Type.DUST)); register(getOre("dustYellowGarnet", 16), 3500, getMaterial("andradite", 5, Type.DUST), getMaterial("grossular", 8, Type.DUST), getMaterial("uvarovite", 3, Type.DUST));

View file

@ -115,8 +115,9 @@ public class IndustrialGrinderRecipes extends RecipeMethods {
register(getOre("oreTungsten"), WATER, 100, 64, getMaterial("tungsten", 2, Type.DUST), getMaterial("iron", 3, Type.SMALL_DUST), getMaterial("manganese", 3, Type.SMALL_DUST)); register(getOre("oreTungsten"), WATER, 100, 64, getMaterial("tungsten", 2, Type.DUST), getMaterial("iron", 3, Type.SMALL_DUST), getMaterial("manganese", 3, Type.SMALL_DUST));
register(getOre("oreSheldonite"), WATER, 100, 64, getMaterial("platinum", 2, Type.DUST), getMaterial("nickel", Type.DUST), getMaterial("iridium", 2, Type.NUGGET)); // TODO: Fix recipe
register(getOre("oreSheldonite"), MERCURY, 100, 64, getMaterial("platinum", 3, Type.DUST), getMaterial("nickel", Type.DUST), getMaterial("iridium", 2, Type.NUGGET)); // register(getOre("oreSheldonite"), WATER, 100, 64, getMaterial("platinum", 2, Type.DUST), getMaterial("nickel", Type.DUST), getMaterial("iridium", 2, Type.NUGGET));
// register(getOre("oreSheldonite"), MERCURY, 100, 64, getMaterial("platinum", 3, Type.DUST), getMaterial("nickel", Type.DUST), getMaterial("iridium", 2, Type.NUGGET));
register(getOre("orePeridot"), WATER, 100, 64, getMaterial("peridot", Type.GEM), getMaterial("peridot", 6, Type.SMALL_DUST), getMaterial("emerald", 2, Type.SMALL_DUST)); register(getOre("orePeridot"), WATER, 100, 64, getMaterial("peridot", Type.GEM), getMaterial("peridot", 6, Type.SMALL_DUST), getMaterial("emerald", 2, Type.SMALL_DUST));

View file

@ -50,10 +50,11 @@ public abstract class RecipeMethods {
return ItemIngots.getIngotByName(name, count); return ItemIngots.getIngotByName(name, count);
} else if (type == Type.GEM) { } else if (type == Type.GEM) {
return ItemGems.getGemByName(name, count); return ItemGems.getGemByName(name, count);
// TODO: fix recipe
// } else if (type == Type.PLATE) { // } else if (type == Type.PLATE) {
// return ItemPlates.getPlateByName(name, count); // return ItemPlates.getPlateByName(name, count);
} else if (type == Type.NUGGET) { // } else if (type == Type.NUGGET) {
return ItemNuggets.getNuggetByName(name, count); // return ItemNuggets.getNuggetByName(name, count);
} else if (type == Type.CELL) { } else if (type == Type.CELL) {
return ItemCells.getCellByName(name, count); return ItemCells.getCellByName(name, count);
} else if (type == Type.PART) { } else if (type == Type.PART) {

View file

@ -36,7 +36,6 @@ import techreborn.init.ModBlocks;
import techreborn.items.DynamicCell; import techreborn.items.DynamicCell;
import techreborn.items.ItemDusts; import techreborn.items.ItemDusts;
import techreborn.items.ItemGems; import techreborn.items.ItemGems;
import techreborn.items.ItemNuggets;
import techreborn.utils.StackWIPHandler; import techreborn.utils.StackWIPHandler;
/** /**
@ -193,10 +192,10 @@ public class ScrapboxRecipes extends RecipeMethods {
for (String i : ItemDusts.types) { for (String i : ItemDusts.types) {
register(ItemDusts.getDustByName(i)); register(ItemDusts.getDustByName(i));
} }
// TODO: fix recipe
for (String i : ItemNuggets.types) { // for (String i : ItemNuggets.types) {
register(ItemNuggets.getNuggetByName(i)); // register(ItemNuggets.getNuggetByName(i));
} // }
for (String i : ItemGems.types) { for (String i : ItemGems.types) {
register(ItemGems.getGemByName(i)); register(ItemGems.getGemByName(i));

View file

@ -24,63 +24,26 @@
package techreborn.items; package techreborn.items;
import com.google.common.base.CaseFormat;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import techreborn.events.TRRecipeHandler; import techreborn.events.TRRecipeHandler;
import techreborn.init.ModItems;
import techreborn.utils.TechRebornCreativeTab;
import java.security.InvalidParameterException;
public class ItemNuggets extends ItemTR { public class ItemNuggets extends ItemTR {
public static final String[] types = new String[] { "aluminum", "brass", "bronze", "chrome", "copper", "electrum",
"invar", "iridium", "lead", "nickel", "platinum", "silver", "steel", "tin", "titanium", "tungsten",
"hot_tungstensteel", "tungstensteel", "zinc", "refined_iron", "iron", "diamond" };
public ItemNuggets() { public ItemNuggets() {
setCreativeTab(TechRebornCreativeTab.instance);
//setHasSubtypes(true);
setTranslationKey("techreborn.nuggets");
TRRecipeHandler.hideEntry(this); TRRecipeHandler.hideEntry(this);
} }
public static ItemStack getNuggetByName(String name, int count) { // public static ItemStack getNuggetByName(String name, int count) {
name = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, name); // name = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, name);
for (int i = 0; i < types.length; i++) { // for (int i = 0; i < types.length; i++) {
if (types[i].equalsIgnoreCase(name)) { // if (types[i].equalsIgnoreCase(name)) {
return new ItemStack(ModItems.NUGGETS, count, i); // return new ItemStack(ModItems.NUGGETS, count, i);
} // }
} // }
throw new InvalidParameterException("The nugget " + name + " could not be found."); // throw new InvalidParameterException("The nugget " + name + " could not be found.");
} // }
//
public static ItemStack getNuggetByName(String name) { // public static ItemStack getNuggetByName(String name) {
return getNuggetByName(name, 1); // return getNuggetByName(name, 1);
} // }
/* @Override
// gets Unlocalized Name depending on meta data
public String getTranslationKey(ItemStack itemStack) {
int meta = itemStack.getItemDamage();
if (meta < 0 || meta >= types.length) {
meta = 0;
}
return super.getTranslationKey() + "." + types[meta];
}*/
/* // Adds Dusts SubItems To Creative Tab
@Override
public void getSubItems(CreativeTabs creativeTabs, NonNullList<ItemStack> list) {
if (!isInCreativeTab(creativeTabs)) {
return;
}
for (int meta = 0; meta < types.length; ++meta) {
list.add(new ItemStack(this, 1, meta));
}
}*/
} }

View file

@ -6,114 +6,109 @@
}, },
"variants": { "variants": {
"type": { "type": {
"aluminum": { "nuggetaluminum": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/aluminum_nugget" "layer0": "techreborn:items/nugget/aluminum_nugget"
} }
}, },
"brass": { "nuggetbrass": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/brass_nugget" "layer0": "techreborn:items/nugget/brass_nugget"
} }
}, },
"bronze": { "nuggetbronze": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/bronze_nugget" "layer0": "techreborn:items/nugget/bronze_nugget"
} }
}, },
"chrome": { "nuggetchrome": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/chrome_nugget" "layer0": "techreborn:items/nugget/chrome_nugget"
} }
}, },
"copper": { "nuggetcopper": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/copper_nugget" "layer0": "techreborn:items/nugget/copper_nugget"
} }
}, },
"electrum": { "nuggetdiamond": {
"textures": {
"layer0": "techreborn:items/nugget/diamond_nugget"
}
},
"nuggetelectrum": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/electrum_nugget" "layer0": "techreborn:items/nugget/electrum_nugget"
} }
}, },
"invar": { "nuggethottungstensteel": {
"textures": {
"layer0": "techreborn:items/nugget/invar_nugget"
}
},
"iridium": {
"textures": {
"layer0": "techreborn:items/nugget/iridium_nugget"
}
},
"lead": {
"textures": {
"layer0": "techreborn:items/nugget/lead_nugget"
}
},
"nickel": {
"textures": {
"layer0": "techreborn:items/nugget/nickel_nugget"
}
},
"platinum": {
"textures": {
"layer0": "techreborn:items/nugget/platinum_nugget"
}
},
"silver": {
"textures": {
"layer0": "techreborn:items/nugget/silver_nugget"
}
},
"steel": {
"textures": {
"layer0": "techreborn:items/nugget/steel_nugget"
}
},
"tin": {
"textures": {
"layer0": "techreborn:items/nugget/tin_nugget"
}
},
"titanium": {
"textures": {
"layer0": "techreborn:items/nugget/titanium_nugget"
}
},
"tungsten": {
"textures": {
"layer0": "techreborn:items/nugget/tungsten_nugget"
}
},
"hot_tungstensteel": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/hot_tungstensteel_nugget" "layer0": "techreborn:items/nugget/hot_tungstensteel_nugget"
} }
}, },
"tungstensteel": { "nuggetinvar": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/tungstensteel_nugget" "layer0": "techreborn:items/nugget/invar_nugget"
} }
}, },
"zinc": { "nuggetiridium": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/zinc_nugget" "layer0": "techreborn:items/nugget/iridium_nugget"
} }
}, },
"refined_iron": { "nuggetlead": {
"textures": {
"layer0": "techreborn:items/nugget/lead_nugget"
}
},
"nuggetnickel": {
"textures": {
"layer0": "techreborn:items/nugget/nickel_nugget"
}
},
"nuggetplatinum": {
"textures": {
"layer0": "techreborn:items/nugget/platinum_nugget"
}
},
"nuggetrefinediron": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/refined_iron_nugget" "layer0": "techreborn:items/nugget/refined_iron_nugget"
} }
}, },
"iron": { "nuggetsilver": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/iron_nugget" "layer0": "techreborn:items/nugget/silver_nugget"
} }
}, },
"diamond": { "nuggetsteel": {
"textures": { "textures": {
"layer0": "techreborn:items/nugget/diamond_nugget" "layer0": "techreborn:items/nugget/steel_nugget"
}
},
"nuggettin": {
"textures": {
"layer0": "techreborn:items/nugget/tin_nugget"
}
},
"nuggettitanium": {
"textures": {
"layer0": "techreborn:items/nugget/titanium_nugget"
}
},
"nuggettungsten": {
"textures": {
"layer0": "techreborn:items/nugget/tungsten_nugget"
}
},
"nuggettungstensteel": {
"textures": {
"layer0": "techreborn:items/nugget/tungstensteel_nugget"
}
},
"nuggetzinc": {
"textures": {
"layer0": "techreborn:items/nugget/zinc_nugget"
} }
} }
} }

View file

@ -396,30 +396,29 @@ item.techreborn.ingot.iridium_alloy.name=Iridium Alloy Ingot
item.techreborn.ingot.refined_iron.name=Refined Iron Ingot item.techreborn.ingot.refined_iron.name=Refined Iron Ingot
#Nuggets #Nuggets
item.techreborn.nuggets.aluminum.name=Aluminium Nugget item.techreborn.nuggetAluminum.name=Aluminium Nugget
item.techreborn.nuggets.antimony.name=Antimony Nugget item.techreborn.nuggetBrass.name=Brass Nugget
item.techreborn.nuggets.brass.name=Brass Nugget item.techreborn.nuggetBronze.name=Bronze Nugget
item.techreborn.nuggets.bronze.name=Bronze Nugget item.techreborn.nuggetChrome.name=Chrome Nugget
item.techreborn.nuggets.chrome.name=Chrome Nugget item.techreborn.nuggetCopper.name=Copper Nugget
item.techreborn.nuggets.copper.name=Copper Nugget item.techreborn.nuggetDiamond.name=Diamond Nugget
item.techreborn.nuggets.electrum.name=Electrum Nugget item.techreborn.nuggetElectrum.name=Electrum Nugget
item.techreborn.nuggets.invar.name=Invar Nugget item.techreborn.nuggetHotTungstensteel.name=Hot Tungstensteel Nugget
item.techreborn.nuggets.iridium.name=Iridium Nugget item.techreborn.nuggetInvar.name=Invar Nugget
item.techreborn.nuggets.iron.name=Iron Nugget item.techreborn.nuggetIridium.name=Iridium Nugget
item.techreborn.nuggets.lead.name=Lead Nugget item.techreborn.nuggetLead.name=Lead Nugget
item.techreborn.nuggets.nickel.name=Nickel Nugget item.techreborn.nuggetNickel.name=Nickel Nugget
item.techreborn.nuggets.osmium.name=Osmium Nugget item.techreborn.nuggetPlatinum.name=Platinum Nugget
item.techreborn.nuggets.platinum.name=Platinum Nugget item.techreborn.nuggetRefinedIron.name=Refined Iron Nugget
item.techreborn.nuggets.silver.name=Silver Nugget item.techreborn.nuggetSilver.name=Silver Nugget
item.techreborn.nuggets.steel.name=Steel Nugget item.techreborn.nuggetSteel.name=Steel Nugget
item.techreborn.nuggets.tin.name=Tin Nugget item.techreborn.nuggetTin.name=Tin Nugget
item.techreborn.nuggets.titanium.name=Titanium Nugget item.techreborn.nuggetTitanium.name=Titanium Nugget
item.techreborn.nuggets.tungsten.name=Tungsten Nugget item.techreborn.nuggetTungsten.name=Tungsten Nugget
item.techreborn.nuggets.tungstensteel.name=Tungstensteel Nugget item.techreborn.nuggetTungstensteel.name=Tungstensteel Nugget
item.techreborn.nuggets.hot_tungstensteel.name=Hot Tungstensteel Nugget item.techreborn.nuggetZinc.name=Zinc Nugget
item.techreborn.nuggets.zinc.name=Zinc Nugget
item.techreborn.nuggets.refined_iron.name=Refined Iron Nugget
item.techreborn.nuggets.diamond.name=Diamond Nugget
#Plates #Plates
item.techreborn.plateAdvancedAlloy.name=Advanced Alloy Plate item.techreborn.plateAdvancedAlloy.name=Advanced Alloy Plate

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B