diff options
| author | Draknyte1 <Draknyte1@hotmail.com> | 2016-07-30 00:39:34 +1000 |
|---|---|---|
| committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-07-30 00:39:34 +1000 |
| commit | d8c84e1d4515d956a2ab6c30e777dcdcbd96b660 (patch) | |
| tree | 475dc6265549ee21adf7a8cfc5d3eda0d52c6560 /src/Java/miscutil/core | |
| parent | a7385909239911de292261c11a33576bdf755d09 (diff) | |
| download | GT5-Unofficial-d8c84e1d4515d956a2ab6c30e777dcdcbd96b660.tar.gz GT5-Unofficial-d8c84e1d4515d956a2ab6c30e777dcdcbd96b660.tar.bz2 GT5-Unofficial-d8c84e1d4515d956a2ab6c30e777dcdcbd96b660.zip | |
+ Materials handler now generates blocks and frames from each metal.
+ Static materials added are now added dynamically with no side effects.
+ Added some new Materials.
Diffstat (limited to 'src/Java/miscutil/core')
28 files changed, 184 insertions, 373 deletions
diff --git a/src/Java/miscutil/core/block/ModBlocks.java b/src/Java/miscutil/core/block/ModBlocks.java index e4010f1c95..a59ba21bc7 100644 --- a/src/Java/miscutil/core/block/ModBlocks.java +++ b/src/Java/miscutil/core/block/ModBlocks.java @@ -1,11 +1,8 @@ package miscutil.core.block; import miscutil.core.block.base.BasicBlock; -import miscutil.core.block.base.BasicBlock.BlockTypes; -import miscutil.core.block.base.BlockBaseModular; import miscutil.core.block.general.LightGlass; import miscutil.core.block.general.fluids.FluidRegistryHandler; -import miscutil.core.item.base.itemblock.ItemBlockGtFrameBox; import miscutil.core.lib.CORE; import miscutil.core.util.Utils; import miscutil.core.xmod.gregtech.common.blocks.GregtechMetaCasingBlocks; @@ -74,9 +71,9 @@ public final class ModBlocks { //GtFrames //GameRegistry.registerBlock(blockGtFrameSet1 = new BlockGtFrameBox("blockGtFrameSet1", Material.iron ,BlockTypes.FRAME, true, Utils.rgbtoHexValue(68, 75, 66), Utils.rgbtoHexValue(68, 75, 166), Utils.rgbtoHexValue(122, 135, 196)), "blockGtFrameSet1"); - GameRegistry.registerBlock(blockGtFrameTantalloy60 = new BlockBaseModular("blockGtFrameStaballoy", "Staballoy", BlockTypes.FRAME, Utils.rgbtoHexValue(68, 75, 66)), ItemBlockGtFrameBox.class, "blockGtFrameStaballoy"); - GameRegistry.registerBlock(blockGtFrameTantalloy60 = new BlockBaseModular("blockGtFrameTantalloy60", "Tantalloy-60", BlockTypes.FRAME, Utils.rgbtoHexValue(68, 75, 166)), ItemBlockGtFrameBox.class, "blockGtFrameTantalloy60"); - GameRegistry.registerBlock(blockGtFrameTantalloy61 = new BlockBaseModular("blockGtFrameTantalloy61", "Tantalloy-61", BlockTypes.FRAME, Utils.rgbtoHexValue(122, 135, 196)), ItemBlockGtFrameBox.class, "blockGtFrameTantalloy61"); + //GameRegistry.registerBlock(blockGtFrameTantalloy60 = new BlockBaseModular("blockGtFrameStaballoy", "Staballoy", BlockTypes.FRAME, Utils.rgbtoHexValue(68, 75, 66)), ItemBlockGtFrameBox.class, "blockGtFrameStaballoy"); + //GameRegistry.registerBlock(blockGtFrameTantalloy60 = new BlockBaseModular("blockGtFrameTantalloy60", "Tantalloy-60", BlockTypes.FRAME, Utils.rgbtoHexValue(68, 75, 166)), ItemBlockGtFrameBox.class, "blockGtFrameTantalloy60"); + //GameRegistry.registerBlock(blockGtFrameTantalloy61 = new BlockBaseModular("blockGtFrameTantalloy61", "Tantalloy-61", BlockTypes.FRAME, Utils.rgbtoHexValue(122, 135, 196)), ItemBlockGtFrameBox.class, "blockGtFrameTantalloy61"); } }
\ No newline at end of file diff --git a/src/Java/miscutil/core/block/base/BasicBlock.java b/src/Java/miscutil/core/block/base/BasicBlock.java index 284342b197..9fd57b510f 100644 --- a/src/Java/miscutil/core/block/base/BasicBlock.java +++ b/src/Java/miscutil/core/block/base/BasicBlock.java @@ -21,8 +21,8 @@ public class BasicBlock extends Block { public static enum BlockTypes { - STANDARD("block", "pickaxe", soundTypeStone), - FRAME("blockGtFrame", "wrench", soundTypeMetal); + STANDARD("blockBlock", "pickaxe", soundTypeStone), + FRAME("blockFrameGt", "wrench", soundTypeMetal); private String TEXTURE_NAME; private String HARVEST_TOOL; diff --git a/src/Java/miscutil/core/block/base/BlockBaseModular.java b/src/Java/miscutil/core/block/base/BlockBaseModular.java index 613320b801..fedfc1c391 100644 --- a/src/Java/miscutil/core/block/base/BlockBaseModular.java +++ b/src/Java/miscutil/core/block/base/BlockBaseModular.java @@ -1,13 +1,13 @@ package miscutil.core.block.base; -import gregtech.api.util.GT_OreDictUnificator; +import miscutil.core.item.base.itemblock.ItemBlockGtBlock; +import miscutil.core.item.base.itemblock.ItemBlockGtFrameBox; import miscutil.core.lib.CORE; import miscutil.core.util.Utils; -import miscutil.core.util.item.UtilsItems; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.item.Item; import net.minecraft.world.IBlockAccess; +import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -19,7 +19,7 @@ public class BlockBaseModular extends BasicBlock{ protected String thisBlockMaterial; public BlockBaseModular(String unlocalizedName, String blockMaterial, BlockTypes blockType, int colour) { - super(unlocalizedName, Material.iron); + super(blockType.getTexture()+unlocalizedName, Material.iron); this.setHarvestLevel(blockType.getHarvestTool(), 2); this.setBlockTextureName(CORE.MODID+":"+blockType.getTexture()); this.blockColour = colour; @@ -27,7 +27,14 @@ public class BlockBaseModular extends BasicBlock{ this.thisBlockMaterial = blockMaterial; this.setBlockName(getLocalizedName()); LanguageRegistry.addName(this, getLocalizedName()); - setOreDict(unlocalizedName, blockType); + //setOreDict(unlocalizedName, blockType); + if (thisBlock == BlockTypes.STANDARD){ + GameRegistry.registerBlock(this, ItemBlockGtBlock.class, blockType.getTexture()+unlocalizedName); + } + else if (thisBlock == BlockTypes.FRAME){ + GameRegistry.registerBlock(this, ItemBlockGtFrameBox.class, blockType.getTexture()+unlocalizedName); + } + } @@ -44,16 +51,13 @@ public class BlockBaseModular extends BasicBlock{ return 0; } - private void setOreDict(String unlocalizedName, BlockTypes blockType){ - if (blockType == BlockTypes.FRAME){ - GT_OreDictUnificator.registerOre(unlocalizedName.replace("BlockGtFrame", "frameGt"),UtilsItems.getSimpleStack(Item.getItemFromBlock(this))); - } - } - @Override public String getLocalizedName() { - String tempIngot = getUnlocalizedName().replace("tile.blockGtFrame", ""); - if (thisBlock == BlockTypes.FRAME){ + String tempIngot; + if (thisBlock == BlockTypes.STANDARD){ + tempIngot = "Block of "+thisBlockMaterial; + } + else if (thisBlock == BlockTypes.FRAME){ tempIngot = thisBlockMaterial + " Frame Box"; } else { diff --git a/src/Java/miscutil/core/item/ModItems.java b/src/Java/miscutil/core/item/ModItems.java index 3b24a3cad2..7af35469de 100644 --- a/src/Java/miscutil/core/item/ModItems.java +++ b/src/Java/miscutil/core/item/ModItems.java @@ -186,13 +186,21 @@ public final class ModItems { //Start meta Item Generation ItemsFoods.load(); - UtilsItems.generateItemsFromMaterial("EnergyCrystal", "Energy Crystal", Utils.rgbtoHexValue(228, 175, 0), true); - UtilsItems.generateItemsFromMaterial("BloodSteel", "Blood Steel", Utils.rgbtoHexValue(142, 28, 0), false); - UtilsItems.generateItemsFromMaterial("Staballoy", "Staballoy", Utils.rgbtoHexValue(68, 75, 66), true); - UtilsItems.generateItemsFromMaterial("Tantalloy60", "Tantalloy-60", Utils.rgbtoHexValue(68, 75, 166), true); - UtilsItems.generateItemsFromMaterial("Tantalloy61", "Tantalloy-61", Utils.rgbtoHexValue(122, 135, 196), true); - UtilsItems.generateItemsFromMaterial("Bedrockium", "Bedrockium", Utils.rgbtoHexValue(32, 32, 32), false); - UtilsItems.generateItemsFromMaterial("Quantum", "Quantum", Utils.rgbtoHexValue(128, 128, 128), true); + UtilsItems.generateItemsFromMaterial("EnergyCrystal", "Energy Crystal", 8, Utils.rgbtoHexValue(228, 225, 0), true); + UtilsItems.generateItemsFromMaterial("BloodSteel", "Blood Steel", 3, Utils.rgbtoHexValue(142, 28, 0), false); + UtilsItems.generateItemsFromMaterial("Staballoy", "Staballoy", 6, Utils.rgbtoHexValue(68, 75, 66), true); + UtilsItems.generateItemsFromMaterial("Tantalloy60", "Tantalloy-60", 5, Utils.rgbtoHexValue(68, 75, 166), true); + UtilsItems.generateItemsFromMaterial("Tantalloy61", "Tantalloy-61", 6, Utils.rgbtoHexValue(122, 135, 196), true); + UtilsItems.generateItemsFromMaterial("Bedrockium", "Bedrockium", 9, Utils.rgbtoHexValue(32, 32, 32), false); + UtilsItems.generateItemsFromMaterial("Quantum", "Quantum", 10, Utils.rgbtoHexValue(128, 128, 128), true); + + + UtilsItems.generateItemsFromMaterial("Inconel625", "Inconel-625", 4, Utils.rgbtoHexValue(128, 200, 128), true); //Inconel 625: Acid resistant, good weldability. The LCF version is typically used in bellows. + UtilsItems.generateItemsFromMaterial("Inconel690", "Inconel-690", 6, Utils.rgbtoHexValue(118, 220, 138), true); //Inconel 690: Low cobalt content for nuclear applications, and low resistivity. + UtilsItems.generateItemsFromMaterial("Inconel792", "Inconel-792", 5, Utils.rgbtoHexValue(108, 240, 118), true); //Inconel 792: Increased aluminium content for improved high temperature corrosion properties, used especially in gas turbines. + + UtilsItems.generateItemsFromMaterial("Tumbaga", "Tumbaga", 2, Utils.rgbtoHexValue(255,178,15), false); //Tumbaga was the name given by Spaniards to a non-specific alloy of gold and copper + UtilsItems.generateItemsFromMaterial("Potin", "Potin", 4, Utils.rgbtoHexValue(201,151,129), false); //Potin is traditionally an alloy of bronze, tin and lead, with varying quantities of each possible //EnderIO Resources if (LoadedMods.EnderIO || LOAD_ALL_CONTENT){ @@ -319,7 +327,7 @@ public final class ModItems { //Special Item Handling Case if (configSwitches.enableAlternativeBatteryAlloy) { ModItems.itemIngotBatteryAlloy = new BaseItemIngot("itemIngotBatteryAlloy", "Battery Alloy", Utils.rgbtoHexValue(35, 228, 141)); - ModItems.itemPlateBatteryAlloy = new BaseItemPlate("itemPlateBatteryAlloy", "Battery Alloy", Utils.rgbtoHexValue(35, 228, 141)); + ModItems.itemPlateBatteryAlloy = new BaseItemPlate("itemPlateBatteryAlloy", "Battery Alloy", Utils.rgbtoHexValue(35, 228, 141), 2); } diff --git a/src/Java/miscutil/core/item/base/bolts/BaseItemBolt.java b/src/Java/miscutil/core/item/base/bolts/BaseItemBolt.java index bff3b1f3c3..e529e8329b 100644 --- a/src/Java/miscutil/core/item/base/bolts/BaseItemBolt.java +++ b/src/Java/miscutil/core/item/base/bolts/BaseItemBolt.java @@ -21,8 +21,9 @@ public class BaseItemBolt extends Item{ protected int colour; protected String materialName; protected String unlocalName; + private int mTier; - public BaseItemBolt(String unlocalizedName, String materialName, int colour) { + public BaseItemBolt(String unlocalizedName, String materialName, int colour, int tier) { setUnlocalizedName(unlocalizedName); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(unlocalizedName); @@ -30,6 +31,7 @@ public class BaseItemBolt extends Item{ this.setMaxStackSize(64); this.setTextureName(CORE.MODID + ":" + "itemBolt"); this.colour = colour; + this.mTier = tier; this.materialName = materialName; GameRegistry.registerItem(this, unlocalizedName); GT_OreDictUnificator.registerOre(unlocalName.replace("itemB", "b"), UtilsItems.getSimpleStack(this)); @@ -68,7 +70,11 @@ public class BaseItemBolt extends Item{ String tempIngot = unlocalName.replace("itemBolt", "ingot"); ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(tempIngot, 1); if (null != tempOutputStack){ - GT_Values.RA.addExtruderRecipe(tempOutputStack, ItemList.Shape_Extruder_Bolt.get(1), UtilsItems.getSimpleStack(this, 8), 10*20, 24); + GT_Values.RA.addExtruderRecipe(tempOutputStack, + ItemList.Shape_Extruder_Bolt.get(1), + UtilsItems.getSimpleStack(this, 8), + 30*mTier*20, + 24*mTier); } } diff --git a/src/Java/miscutil/core/item/base/dusts/BaseItemDust.java b/src/Java/miscutil/core/item/base/dusts/BaseItemDust.java index 993ed9636b..9e98fbb821 100644 --- a/src/Java/miscutil/core/item/base/dusts/BaseItemDust.java +++ b/src/Java/miscutil/core/item/base/dusts/BaseItemDust.java @@ -1,6 +1,7 @@ package miscutil.core.item.base.dusts; import static miscutil.core.creative.AddToCreativeTab.tabMisc; +import gregtech.api.enums.GT_Values; import gregtech.api.util.GT_ModHandler; import gregtech.api.util.GT_OreDictUnificator; @@ -21,9 +22,11 @@ public class BaseItemDust extends Item{ protected int colour; protected String materialName; protected String pileType; + protected boolean useBlastFurnace; String name = ""; + private int mTier; - public BaseItemDust(String unlocalizedName, String materialName, int colour, String pileSize) { + public BaseItemDust(String unlocalizedName, String materialName, int colour, String pileSize, boolean blastFurnaceRequired, int tier) { setUnlocalizedName(unlocalizedName); this.setUnlocalizedName(unlocalizedName); this.setMaxStackSize(64); @@ -34,7 +37,9 @@ public class BaseItemDust extends Item{ this.setMaxStackSize(64); this.setCreativeTab(tabMisc); this.colour = colour; + this.mTier = tier; this.materialName = materialName; + this.useBlastFurnace = blastFurnaceRequired; GameRegistry.registerItem(this, unlocalizedName); String temp = ""; @@ -61,6 +66,7 @@ public class BaseItemDust extends Item{ if (temp != null && temp != ""){ GT_OreDictUnificator.registerOre(temp, UtilsItems.getSimpleStack(this)); } + addFurnaceRecipe(); addMacerationRecipe(); } @@ -166,7 +172,7 @@ public class BaseItemDust extends Item{ String tempDust = getUnlocalizedName().replace("item.itemDust", "dust"); ItemStack tempInputStack; ItemStack tempOutputStack; - + if (getUnlocalizedName().contains("DustSmall") || getUnlocalizedName().contains("DustTiny")){ return; } @@ -192,4 +198,51 @@ public class BaseItemDust extends Item{ } } + private void addFurnaceRecipe(){ + + String temp = ""; + if (getUnlocalizedName().contains("item.")){ + temp = getUnlocalizedName().replace("item.", ""); + } + else { + temp = getUnlocalizedName(); + } + if (temp.contains("DustTiny") || temp.contains("DustSmall")){ + return; + } + temp = temp.replace("itemDust", "ingot"); + if (temp != null && temp != ""){ + + if (this.useBlastFurnace){ + Utils.LOG_INFO("Adding recipe for Hot "+materialName+" Ingots in a Blast furnace."); + String tempIngot = temp.replace("ingot", "ingotHot"); + ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(tempIngot, 1); + Utils.LOG_INFO("This will produce "+tempOutputStack.getDisplayName() + " Debug: "+tempIngot); + if (null != tempOutputStack){ + addBlastFurnaceRecipe(UtilsItems.getSimpleStack(this), null, tempOutputStack, null, 350*mTier); + } + return; + } + Utils.LOG_INFO("Adding recipe for "+materialName+" Ingots in a furnace."); + ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(temp, 1); + Utils.LOG_INFO("This will produce an ingot of "+tempOutputStack.getDisplayName() + " Debug: "+temp); + if (null != tempOutputStack){ + GT_ModHandler.addSmeltingAndAlloySmeltingRecipe(UtilsItems.getSimpleStack(this), tempOutputStack); + } + } + } + + private void addBlastFurnaceRecipe(ItemStack input1, ItemStack input2, ItemStack output1, ItemStack output2, int tempRequired){ + //Utils.LOG_INFO("Adding Blast Furnace recipe for a Hot Ingot of "+materialName+"."); + GT_Values.RA.addBlastRecipe( + input1, + input2, + GT_Values.NF, GT_Values.NF, + output1, + output2, + 250*mTier*20, + mTier*64, + tempRequired); + } + } diff --git a/src/Java/miscutil/core/item/base/dusts/BaseItemDustSmall.java b/src/Java/miscutil/core/item/base/dusts/BaseItemDustSmall.java deleted file mode 100644 index 2e0334887b..0000000000 --- a/src/Java/miscutil/core/item/base/dusts/BaseItemDustSmall.java +++ /dev/null @@ -1,30 +0,0 @@ -package miscutil.core.item.base.dusts; - -import java.util.List; - -import miscutil.core.lib.CORE; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; - -public class BaseItemDustSmall extends BaseItemDust{ - - protected int colour = 0; - protected String materialName; - - public BaseItemDustSmall(String unlocalizedName, String materialName, int colour, String size) { - super(unlocalizedName, materialName, colour, size); - this.setTextureName(CORE.MODID + ":" + "dustSmall"); - this.setMaxStackSize(64); - this.colour = colour; - this.materialName = materialName; - } - - @SuppressWarnings({ "unchecked", "rawtypes" }) - @Override - public void addInformation(ItemStack stack, EntityPlayer aPlayer, List list, boolean bool) { - list.add(EnumChatFormatting.GRAY+"A small pile of " + materialName + " dust."); - super.addInformation(stack, aPlayer, list, bool); - } - -} diff --git a/src/Java/miscutil/core/item/base/dusts/BaseItemDustTiny.java b/src/Java/miscutil/core/item/base/dusts/BaseItemDustTiny.java deleted file mode 100644 index 814f79ebd7..0000000000 --- a/src/Java/miscutil/core/item/base/dusts/BaseItemDustTiny.java +++ /dev/null @@ -1,30 +0,0 @@ -package miscutil.core.item.base.dusts; - -import java.util.List; - -import miscutil.core.lib.CORE; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumChatFormatting; - -public class BaseItemDustTiny extends BaseItemDust{ - - protected int colour = 0; - protected String materialName; - - public BaseItemDustTiny(String unlocalizedName, String materialName, int colour, String size) { - super(unlocalizedName, materialName, colour, size); - this.setTextureName(CORE.MODID + ":" + "dustTiny"); - this.setMaxStackSize(64); - this.colour = colour; - this.materialName = materialName; - } - - @SuppressWarnings({ "unchecked", "rawtypes" }) - @Override - public void addInformation(ItemStack stack, EntityPlayer aPlayer, List list, boolean bool) { - list.add(EnumChatFormatting.GRAY+"A tiny pile of " + materialName + " dust."); - super.addInformation(stack, aPlayer, list, bool); - } - -} diff --git a/src/Java/miscutil/core/item/base/gears/BaseItemGear.java b/src/Java/miscutil/core/item/base/gears/BaseItemGear.java index b91a17ddd3..5c427a025f 100644 --- a/src/Java/miscutil/core/item/base/gears/BaseItemGear.java +++ b/src/Java/miscutil/core/item/base/gears/BaseItemGear.java @@ -21,8 +21,9 @@ public class BaseItemGear extends Item{ protected int colour; protected String materialName; protected String unlocalName; + private int mTier; - public BaseItemGear(String unlocalizedName, String materialName, int colour) { + public BaseItemGear(String unlocalizedName, String materialName, int colour, int tier) { setUnlocalizedName(unlocalizedName); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(unlocalizedName); @@ -30,6 +31,7 @@ public class BaseItemGear extends Item{ this.setMaxStackSize(64); this.setTextureName(CORE.MODID + ":" + "itemGear"); this.colour = colour; + this.mTier = tier; this.materialName = materialName; GameRegistry.registerItem(this, unlocalizedName); GT_OreDictUnificator.registerOre(unlocalName.replace("itemG", "g"), UtilsItems.getSimpleStack(this)); @@ -68,7 +70,11 @@ public class BaseItemGear extends Item{ String tempIngot = unlocalName.replace("itemGear", "ingot"); ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(tempIngot, 8); if (null != tempOutputStack){ - GT_Values.RA.addExtruderRecipe(tempOutputStack, ItemList.Shape_Extruder_Gear.get(1), UtilsItems.getSimpleStack(this), 15*20, 24); + GT_Values.RA.addExtruderRecipe(tempOutputStack, + ItemList.Shape_Extruder_Gear.get(1), + UtilsItems.getSimpleStack(this), + 40*mTier*20, + 24*mTier); } } diff --git a/src/Java/miscutil/core/item/base/ingots/BaseItemIngot.java b/src/Java/miscutil/core/item/base/ingots/BaseItemIngot.java index 8a3e8a60b0..bd66c3a6bb 100644 --- a/src/Java/miscutil/core/item/base/ingots/BaseItemIngot.java +++ b/src/Java/miscutil/core/item/base/ingots/BaseItemIngot.java @@ -1,8 +1,6 @@ package miscutil.core.item.base.ingots; -import gregtech.api.enums.GT_Values; import gregtech.api.util.GT_OreDictUnificator; -import gregtech.api.util.GT_Utility; import java.util.List; @@ -76,12 +74,4 @@ public class BaseItemIngot extends Item{ } - private void addBendingRecipe(){ - if (!unlocalName.toLowerCase().contains("ingothot")){ - GT_Values.RA.addBenderRecipe(GT_Utility.copyAmount(1L, new Object[]{this}), - UtilsItems.getItemStackOfAmountFromOreDict("plate"+materialName, 1), - 1200, 24); - } - } - } diff --git a/src/Java/miscutil/core/item/base/ingots/BaseItemIngotHot.java b/src/Java/miscutil/core/item/base/ingots/BaseItemIngotHot.java index bcf4aa935c..e7be91bc8c 100644 --- a/src/Java/miscutil/core/item/base/ingots/BaseItemIngotHot.java +++ b/src/Java/miscutil/core/item/base/ingots/BaseItemIngotHot.java @@ -19,11 +19,13 @@ public class BaseItemIngotHot extends BaseItemIngot{ private ItemStack outputIngot; private int tickCounter = 0; private int tickCounterMax = 200; + private int mTier; - public BaseItemIngotHot(String unlocalizedName, String materialName, ItemStack coldIngot) { + public BaseItemIngotHot(String unlocalizedName, String materialName, ItemStack coldIngot, int tier) { super(unlocalizedName, materialName, Utils.rgbtoHexValue(225, 225, 225)); this.setTextureName(CORE.MODID + ":" + "itemIngotHot"); this.outputIngot = coldIngot; + this.mTier = tier; generateRecipe(); } @@ -47,9 +49,11 @@ public class BaseItemIngotHot extends BaseItemIngot{ } private void generateRecipe(){ - Utils.LOG_INFO("Adding recipe for a Hot Ingot of "+materialName+"."); - GT_Values.RA.addVacuumFreezerRecipe(UtilsItems.getSimpleStack(this), outputIngot.copy(), 500); - } + Utils.LOG_INFO("Adding Vacuum Freezer recipe for a Hot Ingot of "+materialName+"."); + GT_Values.RA.addVacuumFreezerRecipe(UtilsItems.getSimpleStack(this), outputIngot.copy(), 60*mTier); + + + } @Override public void onUpdate(ItemStack iStack, World world, Entity entityHolding, int p_77663_4_, boolean p_77663_5_) { diff --git a/src/Java/miscutil/core/item/base/itemblock/ItemBlockGtFrameBox.java b/src/Java/miscutil/core/item/base/itemblock/ItemBlockGtFrameBox.java index 80dc8864cf..93784ca78a 100644 --- a/src/Java/miscutil/core/item/base/itemblock/ItemBlockGtFrameBox.java +++ b/src/Java/miscutil/core/item/base/itemblock/ItemBlockGtFrameBox.java @@ -12,7 +12,7 @@ public class ItemBlockGtFrameBox extends ItemBlock{ public ItemBlockGtFrameBox(Block block) { super(block); this.blockColour = block.getBlockColor(); - GT_OreDictUnificator.registerOre(block.getUnlocalizedName().replace("BlockGtFrame", "frameGt"), UtilsItems.getSimpleStack(this)); + GT_OreDictUnificator.registerOre("frameGt"+block.getUnlocalizedName().replace("tile.", "").replace("tile.BlockGtFrame", "").replace("-", "").replace("_", "").replace(" ", "").replace("FrameBox", ""), UtilsItems.getSimpleStack(this)); } public int getRenderColor(int aMeta) { diff --git a/src/Java/miscutil/core/item/base/plates/BaseItemPlate.java b/src/Java/miscutil/core/item/base/plates/BaseItemPlate.java index 0e9bb37f38..689f085198 100644 --- a/src/Java/miscutil/core/item/base/plates/BaseItemPlate.java +++ b/src/Java/miscutil/core/item/base/plates/BaseItemPlate.java @@ -20,8 +20,9 @@ public class BaseItemPlate extends Item{ protected int colour; protected String materialName; protected String unlocalName; + private int mTier; - public BaseItemPlate(String unlocalizedName, String materialName, int colour) { + public BaseItemPlate(String unlocalizedName, String materialName, int colour, int tier) { setUnlocalizedName(unlocalizedName); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(unlocalizedName); @@ -30,6 +31,7 @@ public class BaseItemPlate extends Item{ this.setTextureName(CORE.MODID + ":" + "itemPlate"); this.setMaxStackSize(64); this.colour = colour; + this.mTier = tier; this.materialName = materialName; GameRegistry.registerItem(this, unlocalizedName); GT_OreDictUnificator.registerOre(unlocalName.replace("itemP", "p"), UtilsItems.getSimpleStack(this)); @@ -70,7 +72,8 @@ public class BaseItemPlate extends Item{ if (null != tempOutputStack){ GT_Values.RA.addBenderRecipe(tempOutputStack, UtilsItems.getSimpleStack(this), - 1200, 24); + 14*mTier*20, + 64*mTier); } } diff --git a/src/Java/miscutil/core/item/base/rings/BaseItemRing.java b/src/Java/miscutil/core/item/base/rings/BaseItemRing.java index d60abf2524..0938076905 100644 --- a/src/Java/miscutil/core/item/base/rings/BaseItemRing.java +++ b/src/Java/miscutil/core/item/base/rings/BaseItemRing.java @@ -21,8 +21,9 @@ public class BaseItemRing extends Item{ protected int colour; protected String materialName; protected String unlocalName; + private int mTier; - public BaseItemRing(String unlocalizedName, String materialName, int colour) { + public BaseItemRing(String unlocalizedName, String materialName, int colour, int tier) { setUnlocalizedName(unlocalizedName); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(unlocalizedName); @@ -30,6 +31,7 @@ public class BaseItemRing extends Item{ this.setMaxStackSize(64); this.setTextureName(CORE.MODID + ":" + "itemRing"); this.colour = colour; + this.mTier = tier; this.materialName = materialName; GameRegistry.registerItem(this, unlocalizedName); GT_OreDictUnificator.registerOre(unlocalName.replace("itemR", "r"), UtilsItems.getSimpleStack(this)); @@ -68,7 +70,11 @@ public class BaseItemRing extends Item{ String tempIngot = unlocalName.replace("itemRing", "ingot"); ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(tempIngot, 1); if (null != tempOutputStack){ - GT_Values.RA.addExtruderRecipe(tempOutputStack, ItemList.Shape_Extruder_Ring.get(1), UtilsItems.getSimpleStack(this, 4), 1600, 96); + GT_Values.RA.addExtruderRecipe(tempOutputStack, + ItemList.Shape_Extruder_Ring.get(1), + UtilsItems.getSimpleStack(this, 4), + 160*mTier, + 32*mTier); } } diff --git a/src/Java/miscutil/core/item/base/rods/BaseItemRod.java b/src/Java/miscutil/core/item/base/rods/BaseItemRod.java index d292733538..6d7424c96d 100644 --- a/src/Java/miscutil/core/item/base/rods/BaseItemRod.java +++ b/src/Java/miscutil/core/item/base/rods/BaseItemRod.java @@ -22,8 +22,9 @@ public class BaseItemRod extends Item{ protected int colour; protected String materialName; protected String unlocalName; + private int mTier; - public BaseItemRod(String unlocalizedName, String materialName, int colour) { + public BaseItemRod(String unlocalizedName, String materialName, int colour, int tier) { setUnlocalizedName(unlocalizedName); this.setCreativeTab(AddToCreativeTab.tabMisc); this.setUnlocalizedName(unlocalizedName); @@ -31,6 +32,7 @@ public class BaseItemRod extends Item{ this.setTextureName(CORE.MODID + ":" + "itemRod"); this.setMaxStackSize(64); this.colour = colour; + this.mTier = tier; this.materialName = materialName; GameRegistry.registerItem(this, unlocalizedName); GT_OreDictUnificator.registerOre(unlocalName.replace("itemR", "r"), UtilsItems.getSimpleStack(this)); @@ -69,14 +71,17 @@ public class BaseItemRod extends Item{ String tempIngot = unlocalName.replace("itemRod", "ingot"); ItemStack tempOutputStack = UtilsItems.getItemStackOfAmountFromOreDict(tempIngot, 1); if (null != tempOutputStack){ - GT_Values.RA.addExtruderRecipe(tempOutputStack, ItemList.Shape_Extruder_Rod.get(1), UtilsItems.getSimpleStack(this, 2), 1200, 24); + GT_Values.RA.addExtruderRecipe(tempOutputStack, + ItemList.Shape_Extruder_Rod.get(1), + UtilsItems.getSimpleStack(this, 2), + 12*mTier*20, 24*mTier); } ItemStack rods = UtilsItems.getSimpleStack(this, 1); UtilsRecipe.addShapedGregtechRecipe( rods, rods, rods, rods, "craftingToolWrench", rods, rods, rods, rods, - UtilsItems.getItemStackOfAmountFromOreDict(unlocalName.replace("itemR", "frameGt"), 1)); + UtilsItems.getItemStackOfAmountFromOreDict(unlocalName.replace("itemRod", "frameGt"), 2)); } } diff --git a/src/Java/miscutil/core/item/base/screws/BaseItemScrew.java b/src/Java/miscutil/core/item/base/screws/BaseItemScrew.java index c34530d672..37efc3e935 100644 --- a/src/Java/miscutil/core/item/base/screws/BaseItemScrew.java +++ b/src/Java/miscutil/core/item/base/screws/BaseItemScrew.java @@ -21,8 +21,9 @@ public class BaseItemScrew extends Item{ protected int colour; prot |
