aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/tileentities/machines/basic
diff options
context:
space:
mode:
authoraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
committeraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
commita1504799f44ba2debdfef06317f24e7f9c1129d6 (patch)
tree53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tileentities/machines/basic
parentb803f59de5a66fcb4ef53e117b912fbbc2841392 (diff)
downloadGT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/tileentities/machines/basic')
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java184
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java128
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java152
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java314
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java124
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java232
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java160
-rw-r--r--main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java400
8 files changed, 847 insertions, 847 deletions
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java
index cb00b8599a..a5a0e9c87f 100644
--- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java
+++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java
@@ -1,97 +1,97 @@
-/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.GT_Values;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 11: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 12: */ import gregtech.api.util.GT_Utility;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_Boxinator
-/* 16: */ extends GT_MetaTileEntity_BasicMachine
-/* 17: */ {
-/* 18: */ public GT_MetaTileEntity_Boxinator(int aID, String aName, String aNameRegional, int aTier)
-/* 19: */ {
-/* 20:18 */ super(aID, aName, aNameRegional, aTier, 1, "Puts things into Boxes", 2, 1, "Packager.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR) });
-/* 21: */ }
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_Boxinator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 24: */ {
-/* 25:22 */ super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName);
-/* 26: */ }
-/* 27: */
-/* 28: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 29: */ {
-/* 30:27 */ return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 34: */ {
-/* 35:32 */ return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int checkRecipe()
-/* 39: */ {
-/* 40:37 */ int tCheck = super.checkRecipe();
-/* 41:38 */ if (tCheck != 0) {
-/* 42:38 */ return tCheck;
-/* 43: */ }
-/* 44:39 */ if ((GT_Utility.isStackValid(getInputAt(0))) && (GT_Utility.isStackValid(getInputAt(1))) && (GT_Utility.getContainerItem(getInputAt(0), true) == null))
-/* 45: */ {
-/* 46:40 */ if ((ItemList.Schematic_1by1.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 1))
-/* 47: */ {
-/* 48:41 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0) });
-/* 49:42 */ if (this.mOutputItems[0] != null) {
-/* 50:42 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 51: */ {
-/* 52:43 */ getInputAt(0).stackSize -= 1;
-/* 53:44 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 54:45 */ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
-/* 55:46 */ return 2;
-/* 56: */ }
-/* 57: */ }
-/* 58:48 */ return 0;
-/* 59: */ }
-/* 60:50 */ if ((ItemList.Schematic_2by2.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 4))
-/* 61: */ {
-/* 62:51 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), null, getInputAt(0), getInputAt(0) });
-/* 63:52 */ if (this.mOutputItems[0] != null) {
-/* 64:52 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 65: */ {
-/* 66:53 */ getInputAt(0).stackSize -= 4;
-/* 67:54 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 68:55 */ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
-/* 69:56 */ return 2;
-/* 70: */ }
-/* 71: */ }
-/* 72:58 */ return 0;
-/* 73: */ }
-/* 74:60 */ if ((ItemList.Schematic_3by3.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 9))
-/* 75: */ {
-/* 76:61 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0) });
-/* 77:62 */ if (this.mOutputItems[0] != null) {
-/* 78:62 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 79: */ {
-/* 80:63 */ getInputAt(0).stackSize -= 9;
-/* 81:64 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 82:65 */ this.mMaxProgresstime = (64 / (1 << this.mTier - 1));
-/* 83:66 */ return 2;
-/* 84: */ }
-/* 85: */ }
-/* 86:68 */ return 0;
-/* 87: */ }
-/* 88: */ }
-/* 89:71 */ return 0;
-/* 90: */ }
-/* 91: */
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_Boxinator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Boxinator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Puts things into Boxes", 2, 1, "Packager.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR) });
+ }
+
+ public GT_MetaTileEntity_Boxinator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes;
+ }
+
+ public int checkRecipe()
+ {
+ int tCheck = super.checkRecipe();
+ if (tCheck != 0) {
+ return tCheck;
+ }
+ if ((GT_Utility.isStackValid(getInputAt(0))) && (GT_Utility.isStackValid(getInputAt(1))) && (GT_Utility.getContainerItem(getInputAt(0), true) == null))
+ {
+ if ((ItemList.Schematic_1by1.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 1))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ if ((ItemList.Schematic_2by2.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 4))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), null, getInputAt(0), getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 4;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ if ((ItemList.Schematic_3by3.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 9))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 9;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (64 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ }
+ return 0;
+ }
+
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
{
if(super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack))
@@ -103,7 +103,7 @@ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex
else
return false;
}
-/* :1: */ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java
index 4a123f4639..09389f7251 100644
--- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java
+++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java
@@ -1,68 +1,68 @@
-/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.nbt.NBTTagCompound;
-/* 12: */
-/* 13: */ public class GT_MetaTileEntity_Disassembler
-/* 14: */ extends GT_MetaTileEntity_BasicMachine
-/* 15: */ {
-/* 16: */ public GT_MetaTileEntity_Disassembler(int aID, String aName, String aNameRegional, int aTier)
-/* 17: */ {
-/* 18:15 */ super(aID, aName, aNameRegional, aTier, 1, "Disassembles Machines at " + (50 + 10 * aTier) + "% Efficiency", 1, 9, "Disassembler.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER) });
-/* 19: */ }
-/* 20: */
-/* 21: */ public GT_MetaTileEntity_Disassembler(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 22: */ {
-/* 23:19 */ super(aName, aTier, 1, aDescription, aTextures, 1, 9, aGUIName, aNEIName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 27: */ {
-/* 28:24 */ return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 29: */ }
-/* 30: */
-/* 31: */ public int checkRecipe()
-/* 32: */ {
-/* 33:29 */ if ((getInputAt(0) != null) && (isOutputEmpty()))
-/* 34: */ {
-/* 35:30 */ NBTTagCompound tNBT = getInputAt(0).getTagCompound();
-/* 36:31 */ if (tNBT != null)
-/* 37: */ {
-/* 38:32 */ tNBT = tNBT.getCompoundTag("GT.CraftingComponents");
-/* 39:33 */ if (tNBT != null)
-/* 40: */ {
-/* 41:34 */ getInputAt(0).stackSize -= 1;
-/* 42:35 */ this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 43:36 */ this.mMaxProgresstime = 160;
-/* 44:37 */ for (int i = 0; i < this.mOutputItems.length; i++) {
-/* 45:37 */ if (getBaseMetaTileEntity().getRandomNumber(100) < 50 + 10 * this.mTier)
-/* 46: */ {
-/* 47:38 */ this.mOutputItems[i] = GT_Utility.loadItem(tNBT, "Ingredient." + i);
-/* 48:39 */ if (this.mOutputItems[i] != null) {
-/* 49:39 */ this.mMaxProgresstime *= 2;
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53:41 */ return 2;
-/* 54: */ }
-/* 55: */ }
-/* 56: */ }
-/* 57:45 */ return 0;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 61: */ {
-/* 62:50 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
-/* 63: */ }
-/* 64: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class GT_MetaTileEntity_Disassembler
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Disassembler(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Disassembles Machines at " + (50 + 10 * aTier) + "% Efficiency", 1, 9, "Disassembler.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER) });
+ }
+
+ public GT_MetaTileEntity_Disassembler(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 9, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ if ((getInputAt(0) != null) && (isOutputEmpty()))
+ {
+ NBTTagCompound tNBT = getInputAt(0).getTagCompound();
+ if (tNBT != null)
+ {
+ tNBT = tNBT.getCompoundTag("GT.CraftingComponents");
+ if (tNBT != null)
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = 160;
+ for (int i = 0; i < this.mOutputItems.length; i++) {
+ if (getBaseMetaTileEntity().getRandomNumber(100) < 50 + 10 * this.mTier)
+ {
+ this.mOutputItems[i] = GT_Utility.loadItem(tNBT, "Ingredient." + i);
+ if (this.mOutputItems[i] != null) {
+ this.mMaxProgresstime *= 2;
+ }
+ }
+ }
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java
index 2a26825db4..07337cd305 100644
--- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java
+++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java
@@ -1,80 +1,80 @@
-/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ItemList;
-/* 5: */ import gregtech.api.enums.Materials;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.ConfigCategories;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 7: */ import gregtech.api.interfaces.ITexture;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 10: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 11: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 12: */ import gregtech.api.util.GT_Config;
-/* 13: */ import net.minecraftforge.fluids.FluidStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_Massfabricator
-/* 16: */ extends GT_MetaTileEntity_BasicMachine
-/* 17: */ {
-/* 18:17 */ public static int sUUAperUUM = 1;
-/* 19:17 */ public static int sUUASpeedBonus = 4;
-/* 20:17 */ public static int sDurationMultiplier = 3215;
-/* 21:18 */ public static boolean sRequiresUUA = false;
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_Massfabricator(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25:21 */ super(aID, aName, aNameRegional, aTier, 1, "UUM = Matter * Fabrication Squared", 1, 1, "Massfabricator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 29: */ {
-/* 30:25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35:30 */ return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public void onConfigLoad(GT_Config aConfig)
-/* 39: */ {
-/* 40:35 */ super.onConfigLoad(aConfig);
-/* 41:36 */ sDurationMultiplier = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier);
-/* 42:37 */ sUUAperUUM = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_per_UUM", sUUAperUUM);
-/* 43:38 */ sUUASpeedBonus = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Speed_Bonus", sUUASpeedBonus);
-/* 44:39 */ sRequiresUUA = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Requirement", sRequiresUUA);
-/* 45:40 */ Materials.UUAmplifier.mChemicalFormula = ("Mass Fabricator Eff/Speed Bonus: x" + sUUASpeedBonus);
-/* 46: */ }
-/* 47: */
-/* 48: */ public int checkRecipe()
-/* 49: */ {
-/* 50:45 */ FluidStack tFluid = getDrainableStack();
-/* 51:46 */ if ((tFluid == null) || (tFluid.amount < getCapacity()))
-/* 52: */ {
-/* 53:47 */ this.mOutputFluid = Materials.UUMatter.getFluid(1L);
-/* 54:48 */ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
-/* 55:49 */ this.mMaxProgresstime = (sDurationMultiplier / (1 << this.mTier - 1));
-/* 56:51 */ if (((tFluid = getFillableStack()) != null) && (tFluid.amount >= sUUAperUUM) && (tFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L))))
-/* 57: */ {
-/* 58:52 */ tFluid.amount -= sUUAperUUM;
-/* 59:53 */ this.mMaxProgresstime /= sUUASpeedBonus;
-/* 60:54 */ return 2;
-/* 61: */ }
-/* 62:56 */ return (sRequiresUUA) || (ItemList.Circuit_Integrated.isStackEqual(getInputAt(0), true, true)) ? 1 : 2;
-/* 63: */ }
-/* 64:58 */ return 0;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 68: */ {
-/* 69:63 */ return aFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L));
-/* 70: */ }
-/* 71: */
-/* 72: */ public int getCapacity()
-/* 73: */ {
-/* 74:68 */ return Math.max(sUUAperUUM, 1000);
-/* 75: */ }
-/* 76: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Config;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_Massfabricator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public static int sUUAperUUM = 1;
+ public static int sUUASpeedBonus = 4;
+ public static int sDurationMultiplier = 3215;
+ public static boolean sRequiresUUA = false;
+
+ public GT_MetaTileEntity_Massfabricator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "UUM = Matter * Fabrication Squared", 1, 1, "Massfabricator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
+ }
+
+ public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public void onConfigLoad(GT_Config aConfig)
+ {
+ super.onConfigLoad(aConfig);
+ sDurationMultiplier = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier);
+ sUUAperUUM = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_per_UUM", sUUAperUUM);
+ sUUASpeedBonus = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Speed_Bonus", sUUASpeedBonus);
+ sRequiresUUA = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Requirement", sRequiresUUA);
+ Materials.UUAmplifier.mChemicalFormula = ("Mass Fabricator Eff/Speed Bonus: x" + sUUASpeedBonus);
+ }
+
+ public int checkRecipe()
+ {
+ FluidStack tFluid = getDrainableStack();
+ if ((tFluid == null) || (tFluid.amount < getCapacity()))
+ {
+ this.mOutputFluid = Materials.UUMatter.getFluid(1L);
+ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
+ this.mMaxProgresstime = (sDurationMultiplier / (1 << this.mTier - 1));
+ if (((tFluid = getFillableStack()) != null) && (tFluid.amount >= sUUAperUUM) && (tFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L))))
+ {
+ tFluid.amount -= sUUAperUUM;
+ this.mMaxProgresstime /= sUUASpeedBonus;
+ return 2;
+ }
+ return (sRequiresUUA) || (ItemList.Circuit_Integrated.isStackEqual(getInputAt(0), true, true)) ? 1 : 2;
+ }
+ return 0;
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return aFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L));
+ }
+
+ public int getCapacity()
+ {
+ return Math.max(sUUAperUUM, 1000);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java
index 7bfacc6b06..5064b50cb5 100644
--- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java
+++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java
@@ -1,162 +1,162 @@
-/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
-/* 14: */ import net.minecraft.init.Items;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraftforge.fluids.Fluid;
-/* 17: */ import net.minecraftforge.fluids.FluidRegistry;
-/* 18: */ import net.minecraftforge.fluids.FluidStack;
-/* 19: */
-/* 20: */ public class GT_MetaTileEntity_PotionBrewer
-/* 21: */ extends GT_MetaTileEntity_BasicMachine
-/* 22: */ {
-/* 23: */ public GT_MetaTileEntity_PotionBrewer(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25: 21 */ super(aID, aName, aNameRegional, aTier, 1, "Brewing your Drinks", 1, 0, "PotionBrewer.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER) });
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 29: */ {
-/* 30: 25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35: 30 */ return new GT_MetaTileEntity_PotionBrewer(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 39: */ {
-/* 40: 35 */ return GT_Recipe.GT_Recipe_Map.sBrewingRecipes;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int checkRecipe()
-/* 44: */ {
-/* 45: 40 */ int tCheck = super.checkRecipe();
-/* 46: 41 */ if (tCheck != 0) {
-/* 47: 41 */ return tCheck;
-/* 48: */ }
-/* 49: 43 */ FluidStack aFluid = getFillableStack();
-/* 50: 44 */ if ((getDrainableStack() == null) && (aFluid != null) && (getInputAt(0) != null))
-/* 51: */ {
-/* 52: 45 */ String tInputName = aFluid.getFluid().getName();
-/* 53: 46 */ if (tInputName.startsWith("potion."))
-/* 54: */ {
-/* 55: 47 */ tInputName = tInputName.replaceFirst("potion.", "");
-/* 56: 48 */ int tFirstDot = tInputName.indexOf('.') + 1;
-/* 57: 49 */ String tModifier = tFirstDot <= 0 ? "" : tInputName.substring(tFirstDot);
-/* 58: 50 */ if (!tModifier.isEmpty()) {
-/* 59: 50 */ tInputName = tInputName.replaceFirst("." + tModifier, "");
-/* 60: */ }
-/* 61: 52 */ if (GT_Utility.areStacksEqual(new ItemStack(Items.fermented_spider_eye, 1, 0), getInputAt(0)))
-/* 62: */ {
-/* 63: 53 */ if (tInputName.equals("poison")) {
-/* 64: 53 */ return setOutput("potion.damage" + tModifier);
-/* 65: */ }
-/* 66: 54 */ if (tInputName.equals("health")) {
-/* 67: 54 */ return setOutput("potion.damage" + tModifier);
-/* 68: */ }
-/* 69: 55 */ if (tInputName.equals("waterbreathing")) {
-/* 70: 55 */ return setOutput("potion.damage" + tModifier);
-/* 71: */ }
-/* 72: 56 */ if (tInputName.equals("nightvision")) {
-/* 73: 56 */ return setOutput("potion.invisibility" + tModifier);
-/* 74: */ }
-/* 75: 57 */ if (tInputName.equals("fireresistance")) {
-/* 76: 57 */ return setOutput("potion.slowness" + tModifier);
-/* 77: */ }
-/* 78: 58 */ if (tInputName.equals("speed")) {
-/* 79: 58 */ return setOutput("potion.slowness" + tModifier);
-/* 80: */ }
-/* 81: 59 */ if (tInputName.equals("strength")) {
-/* 82: 59 */ return setOutput("potion.weakness" + tModifier);
-/* 83: */ }
-/* 84: 60 */ if (tInputName.equals("regen")) {
-/* 85: 60 */ return setOutput("potion.poison" + tModifier);
-/* 86: */ }
-/* 87: 61 */ return setOutput("potion.weakness");
-/* 88: */ }
-/* 89: 63 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), getInputAt(0)))
-/* 90: */ {
-/* 91: 64 */ if (!tModifier.startsWith("strong")) {
-/* 92: 64 */ return setOutput("potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
-/* 93: */ }
-/* 94: 65 */ if (tModifier.startsWith("long")) {
-/* 95: 65 */ return setOutput("potion." + tInputName + tModifier.replaceFirst("long", ""));
-/* 96: */ }
-/* 97: 66 */ return setOutput("potion.thick");
-/* 98: */ }
-/* 99: 68 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), getInputAt(0)))
-/* 100: */ {
-/* 101: 69 */ if (!tModifier.startsWith("long")) {
-/* 102: 69 */ return setOutput("potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
-/* 103: */ }
-/* 104: 70 */ if (tModifier.startsWith("strong")) {
-/* 105: 70 */ return setOutput("potion." + tInputName + tModifier.replaceFirst("strong", ""));
-/* 106: */ }
-/* 107: 71 */ return setOutput("potion.mundane");
-/* 108: */ }
-/* 109: 73 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), getInputAt(0)))
-/* 110: */ {
-/* 111: 74 */ if (!tInputName.endsWith(".splash")) {
-/* 112: 74 */ return setOutput("potion." + tInputName + ".splash");
-/* 113: */ }
-/* 114: 75 */ return setOutput("potion.mundane");
-/* 115: */ }
-/* 116: */ }
-/* 117: */ }
-/* 118: 79 */ return 0;
-/* 119: */ }
-/* 120: */
-/* 121: */ private final int setOutput(String aFluidName)
-/* 122: */ {
-/* 123: 83 */ this.mOutputFluid = FluidRegistry.getFluidStack(aFluidName, 750);
-/* 124: 84 */ if (this.mOutputFluid == null)
-/* 125: */ {
-/* 126: 85 */ this.mOutputFluid = FluidRegistry.getFluidStack("potion.mundane", getFillableStack().amount);
-/* 127: 86 */ getInputAt(0).stackSize -= 1;
-/* 128: 87 */ getFillableStack().amount = 0;
-/* 129: 88 */ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 130: 89 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 131: 90 */ return 2;
-/* 132: */ }
-/* 133: 92 */ if