diff options
Diffstat (limited to 'main/java/gregtech/common')
212 files changed, 22522 insertions, 22522 deletions
diff --git a/main/java/gregtech/common/GT_Client.java b/main/java/gregtech/common/GT_Client.java index 013dc3fa60..7607e315ac 100644 --- a/main/java/gregtech/common/GT_Client.java +++ b/main/java/gregtech/common/GT_Client.java @@ -194,14 +194,14 @@ label0: // super.onPostLoad(); -// /* */ -// /* 83 */ for (int i = 1; i < GregTech_API.METATILEENTITIES.length; i++) { -// /* */ try { -// /* 85 */ for (; i < GregTech_API.METATILEENTITIES.length; i++) if (GregTech_API.METATILEENTITIES[i] != null) GregTech_API.METATILEENTITIES[i].getStackForm(1L).getTooltip(null, true); -// /* */ } catch (Throwable e) { -// /* 87 */ e.printStackTrace(GT_Log.err); -// /* */ } -// /* */ } +// +// for (int i = 1; i < GregTech_API.METATILEENTITIES.length; i++) { +// try { +// for (; i < GregTech_API.METATILEENTITIES.length; i++) if (GregTech_API.METATILEENTITIES[i] != null) GregTech_API.METATILEENTITIES[i].getStackForm(1L).getTooltip(null, true); +// } catch (Throwable e) { +// e.printStackTrace(GT_Log.err); +// } +// } } public void run() diff --git a/main/java/gregtech/common/GT_DummyWorld.java b/main/java/gregtech/common/GT_DummyWorld.java index e8e4b3e70e..aed129e71e 100644 --- a/main/java/gregtech/common/GT_DummyWorld.java +++ b/main/java/gregtech/common/GT_DummyWorld.java @@ -1,150 +1,150 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import java.io.File;
-/* 4: */ import net.minecraft.block.Block;
-/* 5: */ import net.minecraft.entity.Entity;
-/* 6: */ import net.minecraft.init.Blocks;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */ import net.minecraft.nbt.NBTTagCompound;
-/* 9: */ import net.minecraft.profiler.Profiler;
-/* 10: */ import net.minecraft.world.World;
-/* 11: */ import net.minecraft.world.WorldProvider;
-/* 12: */ import net.minecraft.world.WorldSettings;
-/* 13: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 14: */ import net.minecraft.world.chunk.IChunkProvider;
-/* 15: */ import net.minecraft.world.chunk.storage.IChunkLoader;
-/* 16: */ import net.minecraft.world.storage.IPlayerFileData;
-/* 17: */ import net.minecraft.world.storage.ISaveHandler;
-/* 18: */ import net.minecraft.world.storage.WorldInfo;
-/* 19: */
-/* 20: */ public class GT_DummyWorld
-/* 21: */ extends World
-/* 22: */ {
-/* 23: 25 */ public GT_IteratorRandom mRandom = new GT_IteratorRandom();
-/* 24: 26 */ public ItemStack mLastSetBlock = null;
-/* 25: */
-/* 26: */ public GT_DummyWorld(ISaveHandler par1iSaveHandler, String par2Str, WorldProvider par3WorldProvider, WorldSettings par4WorldSettings, Profiler par5Profiler)
-/* 27: */ {
-/* 28: 29 */ super(par1iSaveHandler, par2Str, par4WorldSettings, par3WorldProvider, par5Profiler);
-/* 29: 30 */ this.rand = this.mRandom;
-/* 30: */ }
-/* 31: */
-/* 32: */ public GT_DummyWorld()
-/* 33: */ {
-/* 34: 34 */ this(new ISaveHandler()
-/* 35: */ {
-/* 36: */ public void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2) {}
-/* 37: */
-/* 38: */ public void saveWorldInfo(WorldInfo var1) {}
-/* 39: */
-/* 40: */ public WorldInfo loadWorldInfo()
-/* 41: */ {
-/* 42: 38 */ return null;
-/* 43: */ }
-/* 44: */
-/* 45: */ public IPlayerFileData getSaveHandler()
-/* 46: */ {
-/* 47: 39 */ return null;
-/* 48: */ }
-/* 49: */
-/* 50: */ public File getMapFileFromName(String var1)
-/* 51: */ {
-/* 52: 40 */ return null;
-/* 53: */ }
-/* 54: */
-/* 55: */ public IChunkLoader getChunkLoader(WorldProvider var1)
-/* 56: */ {
-/* 57: 41 */ return null;
-/* 58: */ }
-/* 59: */
-/* 60: */ public void flush() {}
-/* 61: */
-/* 62: */ public void checkSessionLock() {}
-/* 63: */
-/* 64: */ public String getWorldDirectoryName()
-/* 65: */ {
-/* 66: 44 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public File getWorldDirectory()
-/* 70: */ {
-/* 71: 45 */ return null;
-/* 72: */ }
-/* 73: 45 */ }, "DUMMY_DIMENSION", null,
+package gregtech.common;
+
+import java.io.File;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.profiler.Profiler;
+import net.minecraft.world.World;
+import net.minecraft.world.WorldProvider;
+import net.minecraft.world.WorldSettings;
+import net.minecraft.world.biome.BiomeGenBase;
+import net.minecraft.world.chunk.IChunkProvider;
+import net.minecraft.world.chunk.storage.IChunkLoader;
+import net.minecraft.world.storage.IPlayerFileData;
+import net.minecraft.world.storage.ISaveHandler;
+import net.minecraft.world.storage.WorldInfo;
+
+public class GT_DummyWorld
+ extends World
+{
+ public GT_IteratorRandom mRandom = new GT_IteratorRandom();
+ public ItemStack mLastSetBlock = null;
+
+ public GT_DummyWorld(ISaveHandler par1iSaveHandler, String par2Str, WorldProvider par3WorldProvider, WorldSettings par4WorldSettings, Profiler par5Profiler)
+ {
+ super(par1iSaveHandler, par2Str, par4WorldSettings, par3WorldProvider, par5Profiler);
+ this.rand = this.mRandom;
+ }
+
+ public GT_DummyWorld()
+ {
+ this(new ISaveHandler()
+ {
+ public void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2) {}
+
+ public void saveWorldInfo(WorldInfo var1) {}
+
+ public WorldInfo loadWorldInfo()
+ {
+ return null;
+ }
+
+ public IPlayerFileData getSaveHandler()
+ {
+ return null;
+ }
+
+ public File getMapFileFromName(String var1)
+ {
+ return null;
+ }
+
+ public IChunkLoader getChunkLoader(WorldProvider var1)
+ {
+ return null;
+ }
+
+ public void flush() {}
+
+ public void checkSessionLock() {}
+
+ public String getWorldDirectoryName()
+ {
+ return null;
+ }
+
+ public File getWorldDirectory()
+ {
+ return null;
+ }
+ }, "DUMMY_DIMENSION", null,
// new WorldProvider(),
-///* 74: */
-///* 75: */
-///* 76: */
-///* 77: 49 */ new WorldSettings(new WorldInfo(new NBTTagCompound()))
-///* 78: */ {
-///* 79: */ public String getDimensionName()
-///* 80: */ {
-///* 81: 49 */ return "DUMMY_DIMENSION";
-///* 82: */ }
-///* 83: 49 */ }
+//
+//
+//
+// new WorldSettings(new WorldInfo(new NBTTagCompound()))
+// {
+// public String getDimensionName()
+// {
+// return "DUMMY_DIMENSION";
+// }
+// }
new WorldSettings(new WorldInfo(new NBTTagCompound())), new Profiler());
-/* 84: */ }
-/* 85: */
-/* 86: */ protected IChunkProvider createChunkProvider()
-/* 87: */ {
-/* 88: 58 */ return null;
-/* 89: */ }
-/* 90: */
-/* 91: */ public Entity getEntityByID(int aEntityID)
-/* 92: */ {
-/* 93: 63 */ return null;
-/* 94: */ }
-/* 95: */
-/* 96: */ public boolean setBlock(int aX, int aY, int aZ, Block aBlock, int aMeta, int aFlags)
-/* 97: */ {
-/* 98: 68 */ this.mLastSetBlock = new ItemStack(aBlock, 1, aMeta);
-/* 99: 69 */ return true;
-/* 100: */ }
-/* 101: */
-/* 102: */ public float getSunBrightnessFactor(float p_72967_1_)
-/* 103: */ {
-/* 104: 74 */ return 1.0F;
-/* 105: */ }
-/* 106: */
-/* 107: */ public BiomeGenBase getBiomeGenForCoords(int aX, int aZ)
-/* 108: */ {
-/* 109: 79 */ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
-/* 110: 79 */ return BiomeGenBase.plains;
-/* 111: */ }
-/* 112: 80 */ return BiomeGenBase.ocean;
-/* 113: */ }
-/* 114: */
-/* 115: */ public int getFullBlockLightValue(int aX, int aY, int aZ)
-/* 116: */ {
-/* 117: 85 */ return 10;
-/* 118: */ }
-/* 119: */
-/* 120: */ public Block getBlock(int aX, int aY, int aZ)
-/* 121: */ {
-/* 122: 90 */ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
-/* 123: 90 */ return aY == 64 ? Blocks.grass : Blocks.air;
-/* 124: */ }
-/* 125: 91 */ return Blocks.air;
-/* 126: */ }
-/* 127: */
-/* 128: */ public int getBlockMetadata(int aX, int aY, int aZ)
-/* 129: */ {
-/* 130: 96 */ return 0;
-/* 131: */ }
-/* 132: */
-/* 133: */ public boolean canBlockSeeTheSky(int aX, int aY, int aZ)
-/* 134: */ {
-/* 135:101 */ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
-/* 136:101 */ return aY > 64;
-/* 137: */ }
-/* 138:102 */ return true;
-/* 139: */ }
-/* 140: */
-/* 141: */ protected int func_152379_p()
-/* 142: */ {
-/* 143:107 */ return 0;
-/* 144: */ }
-/* 145: */ }
+ }
+
+ protected IChunkProvider createChunkProvider()
+ {
+ return null;
+ }
+
+ public Entity getEntityByID(int aEntityID)
+ {
+ return null;
+ }
+
+ public boolean setBlock(int aX, int aY, int aZ, Block aBlock, int aMeta, int aFlags)
+ {
+ this.mLastSetBlock = new ItemStack(aBlock, 1, aMeta);
+ return true;
+ }
+
+ public float getSunBrightnessFactor(float p_72967_1_)
+ {
+ return 1.0F;
+ }
+
+ public BiomeGenBase getBiomeGenForCoords(int aX, int aZ)
+ {
+ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
+ return BiomeGenBase.plains;
+ }
+ return BiomeGenBase.ocean;
+ }
+
+ public int getFullBlockLightValue(int aX, int aY, int aZ)
+ {
+ return 10;
+ }
+
+ public Block getBlock(int aX, int aY, int aZ)
+ {
+ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
+ return aY == 64 ? Blocks.grass : Blocks.air;
+ }
+ return Blocks.air;
+ }
+
+ public int getBlockMetadata(int aX, int aY, int aZ)
+ {
+ return 0;
+ }
+
+ public boolean canBlockSeeTheSky(int aX, int aY, int aZ)
+ {
+ if ((aX >= 16) && (aZ >= 16) && (aX < 32) && (aZ < 32)) {
+ return aY > 64;
+ }
+ return true;
+ }
+
+ protected int func_152379_p()
+ {
+ return 0;
+ }
+}
/* 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/GT_IteratorRandom.java b/main/java/gregtech/common/GT_IteratorRandom.java index 7db9aa0c49..e0e33bfd42 100644 --- a/main/java/gregtech/common/GT_IteratorRandom.java +++ b/main/java/gregtech/common/GT_IteratorRandom.java @@ -1,21 +1,21 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import java.util.Random;
-/* 4: */
-/* 5: */ public class GT_IteratorRandom
-/* 6: */ extends Random
-/* 7: */ {
-/* 8: */ private static final long serialVersionUID = 1L;
-/* 9: 8 */ public int mIterationStep = 2147483647;
-/* 10: */
-/* 11: */ public int nextInt(int aParameter)
-/* 12: */ {
-/* 13:11 */ if ((this.mIterationStep == 0) || (this.mIterationStep > aParameter)) {
-/* 14:12 */ this.mIterationStep = aParameter;
-/* 15: */ }
-/* 16:14 */ return --this.mIterationStep;
-/* 17: */ }
-/* 18: */ }
+package gregtech.common;
+
+import java.util.Random;
+
+public class GT_IteratorRandom
+ extends Random
+{
+ private static final long serialVersionUID = 1L;
+ public int mIterationStep = 2147483647;
+
+ public int nextInt(int aParameter)
+ {
+ if ((this.mIterationStep == 0) || (this.mIterationStep > aParameter)) {
+ this.mIterationStep = aParameter;
+ }
+ return --this.mIterationStep;
+ }
+}
/* 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/GT_MinableOreGenerator.java b/main/java/gregtech/common/GT_MinableOreGenerator.java index 5ebd994a8f..cd0c9bfb89 100644 --- a/main/java/gregtech/common/GT_MinableOreGenerator.java +++ b/main/java/gregtech/common/GT_MinableOreGenerator.java @@ -1,82 +1,82 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import java.util.Random;
-/* 4: */ import net.minecraft.block.Block;
-/* 5: */ import net.minecraft.init.Blocks;
-/* 6: */ import net.minecraft.util.MathHelper;
-/* 7: */ import net.minecraft.world.World;
-/* 8: */ import net.minecraft.world.gen.feature.WorldGenerator;
-/* 9: */
-/* 10: */ public class GT_MinableOreGenerator
-/* 11: */ extends WorldGenerator
-/* 12: */ {
-/* 13: */ private Block minableBlockId;
-/* 14: */ private Block mBlock;
-/* 15:17 */ private int minableBlockMeta = 0;
-/* 16: */ private int numberOfBlocks;
-/* 17:21 */ private boolean allowVoid = false;
-/* 18: */
-/* 19: */ public GT_MinableOreGenerator(Block par1, int par2)
-/* 20: */ {
-/* 21:24 */ this.minableBlockId = par1;
-/* 22:25 */ this.numberOfBlocks = par2;
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MinableOreGenerator(Block id, int meta, int number, boolean aAllowVoid, Block aBlock)
-/* 26: */ {
-/* 27:29 */ this(id, number);
-/* 28:30 */ this.minableBlockMeta = meta;
-/* 29:31 */ this.allowVoid = aAllowVoid;
-/* 30:32 */ this.mBlock = aBlock;
-/* 31: */ }
-/* 32: */
-/* 33: */ public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
-/* 34: */ {
-/* 35:37 */ float var6 = par2Random.nextFloat() * 3.141593F;
-/* 36:38 */ double var7 = par3 + 8 + MathHelper.sin(var6) * this.numberOfBlocks / 8.0F;
-/* 37:39 */ double var9 = par3 + 8 - MathHelper.sin(var6) * this.numberOfBlocks / 8.0F;
-/* 38:40 */ double var11 = par5 + 8 + MathHelper.cos(var6) * this.numberOfBlocks / 8.0F;
-/* 39:41 */ double var13 = par5 + 8 - MathHelper.cos(var6) * this.numberOfBlocks / 8.0F;
-/* 40:42 */ double var15 = par4 + par2Random.nextInt(3) - 2;
-/* 41:43 */ double var17 = par4 + par2Random.nextInt(3) - 2;
-/* 42:45 */ for (int var19 = 0; var19 <= this.numberOfBlocks; var19++)
-/* 43: */ {
-/* 44:47 */ double var20 = var7 + (var9 - var7) * var19 / this.numberOfBlocks;
-/* 45:48 */ double var22 = var15 + (var17 - var15) * var19 / this.numberOfBlocks;
-/* 46:49 */ double var24 = var11 + (var13 - var11) * var19 / this.numberOfBlocks;
-/* 47:50 */ double var26 = par2Random.nextDouble() * this.numberOfBlocks / 16.0D;
-/* 48:51 */ double var28 = (MathHelper.sin(var19 * 3.141593F / this.numberOfBlocks) + 1.0F) * var26 + 1.0D;
-/* 49:52 */ double var30 = (MathHelper.sin(var19 * 3.141593F / this.numberOfBlocks) + 1.0F) * var26 + 1.0D;
-/* 50:53 */ int var32 = MathHelper.floor_double(var20 - var28 / 2.0D);
-/* 51:54 */ int var33 = MathHelper.floor_double(var22 - var30 / 2.0D);
-/* 52:55 */ int var34 = MathHelper.floor_double(var24 - var28 / 2.0D);
-/* 53:56 */ int var35 = MathHelper.floor_double(var20 + var28 / 2.0D);
-/* 54:57 */ int var36 = MathHelper.floor_double(var22 + var30 / 2.0D);
-/* 55:58 */ int var37 = MathHelper.floor_double(var24 + var28 / 2.0D);
-/* 56:60 */ for (int var38 = var32; var38 <= var35; var38++)
-/* 57: */ {
-/* 58:61 */ double var39 = (var38 + 0.5D - var20) / (var28 / 2.0D);
-/* 59:62 */ if (var39 * var39 < 1.0D) {
-/* 60:63 */ for (int var41 = var33; var41 <= var36; var41++)
-/* 61: */ {
-/* 62:64 */ double var42 = (var41 + 0.5D - var22) / (var30 / 2.0D);
-/* 63:65 */ if (var39 * var39 + var42 * var42 < 1.0D) {
-/* 64:66 */ for (int var44 = var34; var44 <= var37; var44++)
-/* 65: */ {
-/* 66:67 */ double var45 = (var44 + 0.5D - var24) / (var28 / 2.0D);
-/* 67:68 */ Block block = par1World.getBlock(var38, var41, var44);
-/* 68:69 */ if ((var39 * var39 + var42 * var42 + var45 * var45 < 1.0D) && (((this.allowVoid) && (par1World.getBlock(var38, var41, var44) == Blocks.air)) || ((block != null) && (block.isReplaceableOreGen(par1World, var38, var41, var44, this.mBlock))))) {
-/* 69:70 */ par1World.setBlock(var38, var41, var44, this.minableBlockId, this.minableBlockMeta, 0);
-/* 70: */ }
-/* 71: */ }
-/* 72: */ }
-/* 73: */ }
-/* 74: */ }
-/* 75: */ }
-/* 76: */ }
-/* 77:79 */ return true;
-/* 78: */ }
-/* 79: */ }
+package gregtech.common;
+
+import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.init.Blocks;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraft.world.gen.feature.WorldGenerator;
+
+public class GT_MinableOreGenerator
+ extends WorldGenerator
+{
+ private Block minableBlockId;
+ private Block mBlock;
+ private int minableBlockMeta = 0;
+ private int numberOfBlocks;
+ private boolean allowVoid = false;
+
+ public GT_MinableOreGenerator(Block par1, int par2)
+ {
+ this.minableBlockId = par1;
+ this.numberOfBlocks = par2;
+ }
+
+ public GT_MinableOreGenerator(Block id, int meta, int number, boolean aAllowVoid, Block aBlock)
+ {
+ this(id, number);
+ this.minableBlockMeta = meta;
+ this.allowVoid = aAllowVoid;
+ this.mBlock = aBlock;
+ }
+
+ public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
+ {
+ float var6 = par2Random.nextFloat() * 3.141593F;
+ double var7 = par3 + 8 + MathHelper.sin(var6) * this.numberOfBlocks / 8.0F;
+ double var9 = par3 + 8 - MathHelper.sin(var6) * this.numberOfBlocks / 8.0F;
+ double var11 = par5 + 8 + MathHelper.cos(var6) * this.numberOfBlocks / 8.0F;
+ double var13 = par5 + 8 - MathHelper.cos(var6) * this.numberOfBlocks / 8.0F;
+ double var15 = par4 + par2Random.nextInt(3) - 2;
+ double var17 = par4 + par2Random.nextInt(3) - 2;
+ for (int var19 = 0; var19 <= this.numberOfBlocks; var19++)
+ {
+ double var20 = var7 + (var9 - var7) * var19 / this.numberOfBlocks;
+ double var22 = var15 + (var17 - var15) * var19 / this.numberOfBlocks;
+ double var24 = var11 + (var13 - var11) * var19 / this.numberOfBlocks;
+ double var26 = par2Random.nextDouble() * this.numberOfBlocks / 16.0D;
+ double var28 = (MathHelper.sin(var19 * 3.141593F / this.numberOfBlocks) + 1.0F) * var26 + 1.0D;
+ double var30 = (MathHelper.sin(var19 * 3.141593F / this.numberOfBlocks) + 1.0F) * var26 + 1.0D;
+ int var32 = MathHelper.floor_double(var20 - var28 / 2.0D);
+ int var33 = MathHelper.floor_double(var22 - var30 / 2.0D);
+ int var34 = MathHelper.floor_double(var24 - var28 / 2.0D);
+ int var35 = MathHelper.floor_double(var20 + var28 / 2.0D);
+ int var36 = MathHelper.floor_double(var22 + var30 / 2.0D);
+ int var37 = MathHelper.floor_double(var24 + var28 / 2.0D);
+ for (int var38 = var32; var38 <= var35; var38++)
+ {
+ double var39 = (var38 + 0.5D - var20) / (var28 / 2.0D);
+ if (var39 * var39 < 1.0D) {
+ for (int var41 = var33; var41 <= var36; var41++)
+ {
+ double var42 = (var41 + 0.5D - var22) / (var30 / 2.0D);
+ if (var39 * var39 + var42 * var42 < 1.0D) {
+ for (int var44 = var34; var44 <= var37; var44++)
+ {
+ double var45 = (var44 + 0.5D - var24) / (var28 / 2.0D);
+ Block block = par1World.getBlock(var38, var41, var44);
+ if ((var39 * var39 + var42 * var42 + var45 * var45 < 1.0D) && (((this.allowVoid) && (par1World.getBlock(var38, var41, var44) == Blocks.air)) || ((block != null) && (block.isReplaceableOreGen(par1World, var38, var41, var44, this.mBlock))))) {
+ par1World.setBlock(var38, var41, var44, this.minableBlockId, this.minableBlockMeta, 0);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+}
/* 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/GT_Network.java b/main/java/gregtech/common/GT_Network.java index 6aadbf75e0..51044140a3 100644 --- a/main/java/gregtech/common/GT_Network.java +++ b/main/java/gregtech/common/GT_Network.java @@ -1,116 +1,116 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import com.google.common.io.ByteArrayDataInput;
-/* 4: */ import com.google.common.io.ByteStreams;
-/* 5: */ import cpw.mods.fml.common.network.FMLEmbeddedChannel;
-/* 6: */ import cpw.mods.fml.common.network.FMLOutboundHandler;
-/* 7: */ import cpw.mods.fml.common.network.FMLOutboundHandler.OutboundTarget;
-/* 8: */ import cpw.mods.fml.common.network.NetworkRegistry;
-/* 9: */ import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
-/* 10: */ import cpw.mods.fml.common.network.internal.FMLProxyPacket;
-/* 11: */ import cpw.mods.fml.relauncher.Side;
-/* 12: */ import gregtech.api.enums.GT_Values;
-/* 13: */ import gregtech.api.interfaces.internal.IGT_Mod;
-/* 14: */ import gregtech.api.net.GT_Packet;
-/* 15: */ import gregtech.api.net.GT_Packet_Block_Event;
-/* 16: */ import gregtech.api.net.GT_Packet_Sound;
-/* 17: */ import gregtech.api.net.GT_Packet_TileEntity;
-/* 18: */ import gregtech.api.net.IGT_NetworkHandler;
-/* 19: */ import gregtech.common.blocks.GT_Packet_Ores;
-/* 20: */ import io.netty.buffer.ByteBuf;
-/* 21: */ import io.netty.buffer.Unpooled;
-/* 22: */ import io.netty.channel.Channel;
-/* 23: */ import io.netty.channel.ChannelHandler;
-/* 24: */ import io.netty.channel.ChannelHandler.Sharable;
-/* 25: */ import io.netty.channel.ChannelHandlerContext;
-/* 26: */ import io.netty.channel.SimpleChannelInboundHandler;
-/* 27: */ import io.netty.handler.codec.MessageToMessageCodec;
-/* 28: */ import io.netty.util.Attribute;
-/* 29: */ import java.util.EnumMap;
-/* 30: */ import java.util.List;
-/* 31: */ import net.minecraft.entity.player.EntityPlayer;
-/* 32: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 33: */ import net.minecraft.server.management.PlayerManager;
-/* 34: */ import net.minecraft.world.World;
-/* 35: */ import net.minecraft.world.WorldServer;
-/* 36: */ import net.minecraft.world.chunk.Chunk;
-/* 37: */
-/* 38: */ @ChannelHandler.Sharable
-/* 39: */ public class GT_Network
-/* 40: */ extends MessageToMessageCodec<FMLProxyPacket, GT_Packet>
-/* 41: */ implements IGT_NetworkHandler
-/* 42: */ {
-/* 43: */ private final EnumMap<Side, FMLEmbeddedChannel> mChannel;
-/* 44: */ private final GT_Packet[] mSubChannels;
-/* 45: */
-/* 46: */ public GT_Network()
-/* 47: */ {
-/* 48:32 */ this.mChannel = NetworkRegistry.INSTANCE.newChannel("GregTech", new ChannelHandler[] { this, new HandlerShared() });
-/* 49:33 */ this.mSubChannels = new GT_Packet[] { new GT_Packet_TileEntity(), new GT_Packet_Sound(), new GT_Packet_Block_Event(), new GT_Packet_Ores() };
-/* 50: */ }
-/* 51: */
-/* 52: */ protected void encode(ChannelHandlerContext aContext, GT_Packet aPacket, List<Object> aOutput)
-/* 53: */ throws Exception
-/* 54: */ {
-/* 55:37 */ aOutput.add(new FMLProxyPacket(Unpooled.buffer().writeByte(aPacket.getPacketID()).writeBytes(aPacket.encode()).copy(), (String)aContext.channel().attr(NetworkRegistry.FML_CHANNEL).get()));
-/* 56: */ }
-/* 57: */
-/* 58: */ protected void decode(ChannelHandlerContext aContext, FMLProxyPacket aPacket, List<Object> aOutput)
-/* 59: */ throws Exception
-/* 60: */ {
-/* 61:42 */ ByteArrayDataInput aData = ByteStreams.newDataInput(aPacket.payload().array());
-/* 62:43 */ aOutput.add(this.mSubChannels[aData.readByte()].decode(aData));
-/* 63: */ }
-/* 64: */
-/* 65: */ public void sendToPlayer(GT_Packet aPacket, EntityPlayerMP aPlayer)
-/* 66: */ {
-/* 67:48 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.PLAYER);
-/* 68:49 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(aPlayer);
-/* 69:50 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).writeAndFlush(aPacket);
-/* 70: */ }
-/* 71: */
-/* 72: */ public void sendToAllAround(GT_Packet aPacket, NetworkRegistry.TargetPoint aPosition)
-/* 73: */ {
-/* 74:55 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
-/* 75:56 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(aPosition);
-/* 76:57 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).writeAndFlush(aPacket);
-/* 77: */ }
-/* 78: */
-/* 79: */ public void sendToServer(GT_Packet aPacket)
-/* 80: */ {
-/* 81:62 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.CLIENT)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.TOSERVER);
-/* 82:63 */ ((FMLEmbeddedChannel)this.mChannel.get(Side.CLIENT)).writeAndFlush(aPacket);
-/* 83: */ }
-/* 84: */
-/* 85: */ public void sendPacketToAllPlayersInRange(World aWorld, GT_Packet aPacket, int aX, int aZ)
-/* 86: */ {
-/* 87:68 */ if (!aWorld.isRemote) {
-/* 88:68 */ for (Object tObject : aWorld.playerEntities)
-/* 89: */ {
-/* 90:69 */ if (!(tObject instanceof EntityPlayerMP)) {
-/* 91: */ break;
-/* 92: */ }
-/* 93:70 */ EntityPlayerMP tPlayer = (EntityPlayerMP)tObject;
-/* 94:71 */ Chunk tChunk = aWorld.getChunkFromBlockCoords(aX, aZ);
-/* 95:72 */ if (tPlayer.getServerForPlayer().getPlayerManager().isPlayerWatchingChunk(tPlayer, tChunk.xPosition, tChunk.zPosition)) {
-/* 96:74 */ sendToPlayer(aPacket, tPlayer);
-/* 97: */ }
-/* 98: */ }
-/* 99: */ }
-/* :0: */ }
-/* :1: */
-/* :2: */ @ChannelHandler.Sharable
-/* :3: */ static final class HandlerShared
-/* :4: */ extends SimpleChannelInboundHandler<GT_Packet>
-/* :5: */ {
-/* :6: */ protected void channelRead0(ChannelHandlerContext ctx, GT_Packet aPacket)
-/* :7: */ throws Exception
-/* :8: */ {
-/* :9:86 */ EntityPlayer aPlayer = GT_Values.GT.getThePlayer();
-/* ;0:87 */ aPacket.process(aPlayer == null ? null : GT_Values.GT.getThePlayer().worldObj);
-/* ;1: */ }
-/* ;2: */ }
-/* ;3: */ }
+package gregtech.common;
+
+import com.google.common.io.ByteArrayDataInput;
+import com.google.common.io.ByteStreams;
+import cpw.mods.fml.common.network.FMLEmbeddedChannel;
+import cpw.mods.fml.common.network.FMLOutboundHandler;
+import cpw.mods.fml.common.network.FMLOutboundHandler.OutboundTarget;
+import cpw.mods.fml.common.network.NetworkRegistry;
+import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
+import cpw.mods.fml.common.network.internal.FMLProxyPacket;
+import cpw.mods.fml.relauncher.Side;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.interfaces.internal.IGT_Mod;
+import gregtech.api.net.GT_Packet;
+import gregtech.api.net.GT_Packet_Block_Event;
+import gregtech.api.net.GT_Packet_Sound;
+import gregtech.api.net.GT_Packet_TileEntity;
+import gregtech.api.net.IGT_NetworkHandler;
+import gregtech.common.blocks.GT_Packet_Ores;
+import io.netty.buffer.ByteBuf;
+import io.netty.buffer.Unpooled;
+import io.netty.channel.Channel;
+import io.netty.channel.ChannelHandler;
+import io.netty.channel.ChannelHandler.Sharable;
+import io.netty.channel.ChannelHandlerContext;
+import io.netty.channel.SimpleChannelInboundHandler;
+import io.netty.handler.codec.MessageToMessageCodec;
+import io.netty.util.Attribute;
+import java.util.EnumMap;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.server.management.PlayerManager;
+import net.minecraft.world.World;
+import net.minecraft.world.WorldServer;
+import net.minecraft.world.chunk.Chunk;
+
+@ChannelHandler.Sharable
+public class GT_Network
+ extends MessageToMessageCodec<FMLProxyPacket, GT_Packet>
+ implements IGT_NetworkHandler
+{
+ private final EnumMap<Side, FMLEmbeddedChannel> mChannel;
+ private final GT_Packet[] mSubChannels;
+
+ public GT_Network()
+ {
+ this.mChannel = NetworkRegistry.INSTANCE.newChannel("GregTech", new ChannelHandler[] { this, new HandlerShared() });
+ this.mSubChannels = new GT_Packet[] { new GT_Packet_TileEntity(), new GT_Packet_Sound(), new GT_Packet_Block_Event(), new GT_Packet_Ores() };
+ }
+
+ protected void encode(ChannelHandlerContext aContext, GT_Packet aPacket, List<Object> aOutput)
+ throws Exception
+ {
+ aOutput.add(new FMLProxyPacket(Unpooled.buffer().writeByte(aPacket.getPacketID()).writeBytes(aPacket.encode()).copy(), (String)aContext.channel().attr(NetworkRegistry.FML_CHANNEL).get()));
+ }
+
+ protected void decode(ChannelHandlerContext aContext, FMLProxyPacket aPacket, List<Object> aOutput)
+ throws Exception
+ {
+ ByteArrayDataInput aData = ByteStreams.newDataInput(aPacket.payload().array());
+ aOutput.add(this.mSubChannels[aData.readByte()].decode(aData));
+ }
+
+ public void sendToPlayer(GT_Packet aPacket, EntityPlayerMP aPlayer)
+ {
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.PLAYER);
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(aPlayer);
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).writeAndFlush(aPacket);
+ }
+
+ public void sendToAllAround(GT_Packet aPacket, NetworkRegistry.TargetPoint aPosition)
+ {
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(aPosition);
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.SERVER)).writeAndFlush(aPacket);
+ }
+
+ public void sendToServer(GT_Packet aPacket)
+ {
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.CLIENT)).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.TOSERVER);
+ ((FMLEmbeddedChannel)this.mChannel.get(Side.CLIENT)).writeAndFlush(aPacket);
+ }
+
+ public void sendPacketToAllPlayersInRange(World aWorld, GT_Packet aPacket, int aX, int aZ)
+ {
+ if (!aWorld.isRemote) {
+ for (Object tObject : aWorld.playerEntities)
+ {
+ if (!(tObject instanceof EntityPlayerMP)) {
+ break;
+ }
+ EntityPlayerMP tPlayer = (EntityPlayerMP)tObject;
+ Chunk tChunk = aWorld.getChunkFromBlockCoords(aX, aZ);
+ if (tPlayer.getServerForPlayer().getPlayerManager().isPlayerWatchingChunk(tPlayer, tChunk.xPosition, tChunk.zPosition)) {
+ sendToPlayer(aPacket, tPlayer);
+ }
+ }
+ }
+ }
+
+ @ChannelHandler.Sharable
+ static final class HandlerShared
+ extends SimpleChannelInboundHandler<GT_Packet>
+ {
+ protected void channelRead0(ChannelHandlerContext ctx, GT_Packet aPacket)
+ throws Exception
+ {
+ EntityPlayer aPlayer = GT_Values.GT.getThePlayer();
+ aPacket.process(aPlayer == null ? null : GT_Values.GT.getThePlayer().worldObj);
+ }
+ }
+}
/* 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/GT_PlayerActivityLogger.java b/main/java/gregtech/common/GT_PlayerActivityLogger.java index 988e6af0bb..7d5a247a40 100644 --- a/main/java/gregtech/common/GT_PlayerActivityLogger.java +++ b/main/java/gregtech/common/GT_PlayerActivityLogger.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
-/* 4: */ import gregtech.api.util.GT_Log;
-/* 5: */ import java.io.PrintStream;
-/* 6: */ import java.util.ArrayList;
-/* 7: */
-/* 8: */ public class GT_PlayerActivityLogger
-/* 9: */ implements Runnable
-/* 10: */ {
-/* 11: */ public void run()
-/* 12: */ {
-/* 13: */ try
-/* 14: */ {
-/* 15: */ for (;;)
-/* 16: */ {
-/* 17:13 */ if (GT_Log.pal == null) {
-/* 18:13 */ return;
-/* 19: */ }
-/* 20:14 */ ArrayList<String> tList = GT_Mod.gregtechproxy.mBufferedPlayerActivity;
-/* 21:15 */ GT_Mod.gregtechproxy.mBufferedPlayerActivity = new ArrayList();
-/* 22:16 */ String tLastOutput = "";
-/* 23:17 */ int i = 0;
-/* 24:17 */ for (int j = tList.size(); i < j; i++)
-/* 25: */ {
-/* 26:18 */ if (!tLastOutput.equals(tList.get(i))) {
-/* 27:18 */ GT_Log.pal.println((String)tList.get(i));
-/* 28: */ }
-/* 29:19 */ tLastOutput = (String)tList.get(i);
-/* 30: */ }
-/* 31:21 */ Thread.sleep(10000L);
-/* 32: */ }
-/* 33: */ }
-/* 34: */ catch (Throwable e) {}
-/* 35: */ }
-/* 36: */ }
+package gregtech.common;
+
+import gregtech.GT_Mod;
+import gregtech.api.util.GT_Log;
+import java.io.PrintStream;
+import java.util.ArrayList;
+
+public class GT_PlayerActivityLogger
+ implements Runnable
+{
+ public void run()
+ {
+ try
+ {
+ for (;;)
+ {
+ if (GT_Log.pal == null) {
+ return;
+ }
+ ArrayList<String> tList = GT_Mod.gregtechproxy.mBufferedPlayerActivity;
+ GT_Mod.gregtechproxy.mBufferedPlayerActivity = new ArrayList();
+ String tLastOutput = "";
+ int i = 0;
+ for (int j = tList.size(); i < j; i++)
+ {
+ if (!tLastOutput.equals(tList.get(i))) {
+ GT_Log.pal.println((String)tList.get(i));
+ }
+ tLastOutput = (String)tList.get(i);
+ }
+ Thread.sleep(10000L);
+ }
+ }
+ catch (Throwable e) {}
+ }
+}
/* 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/GT_RecipeAdder.java b/main/java/gregtech/common/GT_RecipeAdder.java index dc88c2b95d..22d66a5826 100644 --- a/main/java/gregtech/common/GT_RecipeAdder.java +++ b/main/java/gregtech/common/GT_RecipeAdder.java @@ -1,27 +1,27 @@ -/* 1: */ package gregtech.common; -/* 2: */ -/* 3: */ import gregtech.GT_Mod; -/* 4: */ import gregtech.api.GregTech_API; -/* 5: */ import gregtech.api.enums.ItemList; -/* 6: */ import gregtech.api.enums.Materials; -/* 7: */ import gregtech.api.enums.OrePrefixes; -/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 9: */ import gregtech.api.util.GT_Config; -/* 10: */ import gregtech.api.util.GT_ModHandler; -/* 11: */ import gregtech.api.util.GT_Recipe; -/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 13: */ import java.util.ArrayList; -/* 14: */ import net.minecraft.item.ItemStack; -/* 15: */ import net.minecraftforge.fluids.Fluid; -/* 16: */ import net.minecraftforge.fluids.FluidStack; -/* 17: */ -/* 18: */ public class GT_RecipeAdder -/* 19: */ implements IGT_RecipeAdder -/* 20: */ { -/* 21: */ public boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt, int aStartEU) -/* 22: */ { -/* 23: 26 */ return false; -/* 31: */ } +package gregtech.common; + +import gregtech.GT_Mod; +import gregtech.api.GregTech_API; +import gregtech.api.enums.ItemList; +import gregtech.api.enums.Materials; +import gregtech.api.enums.OrePrefixes; +import gregtech.api.interfaces.internal.IGT_RecipeAdder; +import gregtech.api.util.GT_Config; +import gregtech.api.util.GT_ModHandler; +import gregtech.api.util.GT_Recipe; +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; +import java.util.ArrayList; +import net.minecraft.item.ItemStack; +import net.minecraftforge.fluids.Fluid; +import net.minecraftforge.fluids.FluidStack; + +public class GT_RecipeAdder + implements IGT_RecipeAdder +{ + public boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt, int aStartEU) + { + return false; + } @Override public boolean addFusionReactorRecipe(FluidStack aInput1, FluidStack aInput2,FluidStack aOutput1, int aDuration, int aEUt, int aStartEU) { @@ -31,161 +31,161 @@ GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe( null, new FluidStack[] {aInput1, aInput2},new FluidStack[]{aOutput1}, aDuration, aEUt, aStartEU); return true; } -/* 32: */ -/* 33: */ public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) -/* 34: */ { -/* 35: 34 */ return addCentrifugeRecipe(aInput1, aInput2 < 0 ? ItemList.IC2_Fuel_Can_Empty.get(-aInput2, new Object[0]) : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2, new Object[0]) : null, null, null, aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, null, aDuration, 5); -/* 36: */ } -/* 37: */ -/* 38: */ public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) -/* 39: */ { -/* 40: 39 */ if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { -/* 41: 39 */ return false; -/* 42: */ } -/* 43: 40 */ if ((aInput1 != null) && ((aDuration = GregTech_API.sRecipeFile.get("centrifuge", aInput1, aDuration)) <= 0)) { -/* 44: 40 */ return false; -/* 45: */ } -/* 46: 41 */ if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get("centrifuge", aFluidInput.getFluid().getName(), aDuration)) <= 0)) { -/* 47: 41 */ return false; -/* 48: */ } -/* 49: 42 */ GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, null, aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); -/* 50: 43 */ return true; -/* 51: */ } -/* 52: */ -/* 53: */ public boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) -/* 54: */ { -/* 55: 48 */ return addElectrolyzerRecipe(aInput1, aInput2 < 0 ? ItemList.IC2_Fuel_Can_Empty.get(-aInput2, new Object[0]) : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2, new Object[0]) : null, null, null, aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, null, aDuration, aEUt); -/* 56: */ } -/* 57: */ -/* 58: */ public boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) -/* 59: */ { -/* 60: 53 */ if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { -/* 61: 53 */ return false; -/* 62: */ } -/* 63: 54 */ if ((aInput1 != null) && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) { -/* 64: 54 */ return false; -/* 65: */ } -/* 66: 55 */ if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aFluidInput.getFluid().getName(), aDuration)) <= 0)) { -/* 67: 55 */ return false; -/* 68: */ } -/* 69: 56 */ GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, null, aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); -/* 70: 57 */ return true; -/* 71: */ } -/* 72: */ -/* 73: */ public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration) -/* 74: */ { -/* 75: 62 */ return addChemicalRecipe(aInput1, aInput2, null, null, aOutput, aDuration); -/* 76: */ } -/* 77: */ -/* 78: */ public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration) -/* 79: */ { -/* 80: 67 */ if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) { -/* 81: 67 */ return false; -/* 82: */ } -/* 83: 68 */ if ((aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { -/* 84: 68 */ return false; -/* 85: */ } -/* 86: 69 */ if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { -/* 87: 69 */ return false; -/* 88: */ } -/* 89: 70 */ GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, 30, 0); -/* 90: 71 */ return true; -/* 91: */ } -/* 92: */ -/* 93: */ public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) -/* 94: */ { -/* 95: 76 */ return addBlastRecipe(aInput1, aInput2, null, null, aOutput1, aOutput2, aDuration, aEUt, aLevel); -/* 96: */ } -/* 97: */ -/* 98: */ public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) -/* 99: */ { -/* 100: 81 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 101: 81 */ return false; -/* 102: */ } -/* 103: 82 */ if ((aDuration = GregTech_API.sRecipeFile.get("blastfurnace", aInput1, aDuration)) <= 0) { -/* 104: 82 */ return false; -/* 105: */ } -/* 106: 83 */ GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2 }, null, null, new FluidStack[] { aFluidInput }, null, aDuration, aEUt, aLevel); -/* 107: 84 */ return true; -/* 108: */ } -/* 109: */ -/* 110: */ public boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) -/* 111: */ { -/* 112: 89 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 113: 89 */ return false; -/* 114: */ } -/* 115: 90 */ if ((aDuration = GregTech_API.sRecipeFile.get("canning", aInput1, aDuration)) <= 0) { -/* 116: 90 */ return false; -/* 117: */ } -/* 118: 91 */ new GT_Recipe(aInput1, aEUt, aInput2, aDuration, aOutput1, aOutput2); -/* 119: 92 */ return true; -/* 120: */ } -/* 121: */ -/* 122: */ public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt) -/* 123: */ { -/* 124: 97 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 125: 97 */ return false; -/* 126: */ } -/* 127: 98 */ if ((aInput2 == null) && ((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1)) || (OrePrefixes.gem.contains(aInput1)))) { -/* 128: 98 */ return false; -/* 129: */ } -/* 130: 99 */ if ((aDuration = GregTech_API.sRecipeFile.get("alloysmelting", aInput2 == null ? aInput1 : aOutput1, aDuration)) <= 0) { -/* 131: 99 */ return false; -/* 132: */ } -/* 133:100 */ new GT_Recipe(aInput1, aInput2, aEUt, aDuration, aOutput1); -/* 134:101 */ return true; -/* 135: */ } -/* 136: */ -/* 137: */ public boolean addCNCRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) -/* 138: */ { -/* 139:106 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 140:106 */ return false; -/* 141: */ } -/* 142:107 */ if ((aDuration = GregTech_API.sRecipeFile.get("cnc", aOutput1, aDuration)) <= 0) { -/* 143:107 */ return false; -/* 144: */ } -/* 145:109 */ return true; -/* 146: */ } -/* 147: */ -/* 148: */ public boolean addLatheRecipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) -/* 149: */ { -/* 150:114 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 151:114 */ return false; -/* 152: */ } -/* 153:115 */ if ((aDuration = GregTech_API.sRecipeFile.get("lathe", aInput1, aDuration)) <= 0) { -/* 154:115 */ return false; -/* 155: */ } -/* 156:116 */ new GT_Recipe(aInput1, aOutput1, aOutput2, aDuration, aEUt); -/* 157:117 */ return true; -/* 158: */ } -/* 159: */ -/* 160: */ public boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) -/* 161: */ { -/* 162:122 */ if ((aInput == null) || (aLubricant == null) || (aOutput1 == null)) { -/* 163:122 */ return false; -/* 164: */ } -/* 165:123 */ if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInput, aDuration)) <= 0) { -/* 166:123 */ return false; -/* 167: */ } -/* 168:124 */ GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { aLubricant }, null, aDuration, aEUt, 0); -/* 169:125 */ return true; -/* 170: */ } -/* 171: */ -/* 172: */ public boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) -/* 173: */ { -/* 174:130 */ if ((aInput == null) || (aOutput1 == null)) { -/* 175:130 */ return false; -/* 176: */ } -/* 177:131 */ if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInput, aDuration)) <= 0) { -/* 178:131 */ return false; -/* 179: */ } -/* 180:132 */ GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) }, null, aDuration * 2, aEUt, 0); -/* 181:133 */ GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) }, null, aDuration * 2, aEUt, 0); -/* 182:134 */ GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) }, null, aDuration, aEUt, 0); -/* 183:135 */ return true; -/* 184: */ } -/* 185: */ -/* 186: */ public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt) + + public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) + { + return addCentrifugeRecipe(aInput1, aInput2 < 0 ? ItemList.IC2_Fuel_Can_Empty.get(-aInput2, new Object[0]) : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2, new Object[0]) : null, null, null, aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, null, aDuration, 5); + } + + public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) + { + if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { + return false; + } + if ((aInput1 != null) && ((aDuration = GregTech_API.sRecipeFile.get("centrifuge", aInput1, aDuration)) <= 0)) { + return false; + } + if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get("centrifuge", aFluidInput.getFluid().getName(), aDuration)) <= 0)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, null, aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) + { + return addElectrolyzerRecipe(aInput1, aInput2 < 0 ? ItemList.IC2_Fuel_Can_Empty.get(-aInput2, new Object[0]) : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2, new Object[0]) : null, null, null, aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, null, aDuration, aEUt); + } + + public boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) + { + if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { + return false; + } + if ((aInput1 != null) && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) { + return false; + } + if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aFluidInput.getFluid().getName(), aDuration)) <= 0)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 }, null, aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput, int aDuration) + { + return addChemicalRecipe(aInput1, aInput2, null, null, aOutput, aDuration); + } + + public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration) + { + if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) { + return false; + } + if ((aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) { + return false; + } + if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, 30, 0); + return true; + } + + public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) + { + return addBlastRecipe(aInput1, aInput2, null, null, aOutput1, aOutput2, aDuration, aEUt, aLevel); + } + + public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("blastfurnace", aInput1, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 }, new ItemStack[] { aOutput1, aOutput2 }, null, null, new FluidStack[] { aFluidInput }, null, aDuration, aEUt, aLevel); + return true; + } + + public boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("canning", aInput1, aDuration)) <= 0) { + return false; + } + new GT_Recipe(aInput1, aEUt, aInput2, aDuration, aOutput1, aOutput2); + return true; + } + + public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aInput2 == null) && ((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1)) || (OrePrefixes.gem.contains(aInput1)))) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("alloysmelting", aInput2 == null ? aInput1 : aOutput1, aDuration)) <= 0) { + return false; + } + new GT_Recipe(aInput1, aInput2, aEUt, aDuration, aOutput1); + return true; + } + + public boolean addCNCRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("cnc", aOutput1, aDuration)) <= 0) { + return false; + } + return true; + } + + public boolean addLatheRecipe(ItemStack aInput1, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("lathe", aInput1, aDuration)) <= 0) { + return false; + } + new GT_Recipe(aInput1, aOutput1, aOutput2, aDuration, aEUt); + return true; + } + + public boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) + { + if ((aInput == null) || (aLubricant == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { aLubricant }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) }, null, aDuration * 2, aEUt, 0); + GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) }, null, aDuration * 2, aEUt, 0); + GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2 }, null, new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration, int aEUt) { if ((aInput1 == null) || (aOutput1 == null)) { return false; @@ -196,103 +196,103 @@ GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 == null ? aInput1 : aInput2 }, new ItemStack[] { aOutput1 }, null, null, null, aDuration, aEUt, 0); return true; } -/* 197: */ -/* 198: */ public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt) -/* 199: */ { -/* 200:148 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 201:148 */ return false; -/* 202: */ } -/* 203:149 */ if ((aDuration = GregTech_API.sRecipeFile.get("assembling", aOutput1, aDuration)) <= 0) { -/* 204:149 */ return false; -/* 205: */ } -/* 206:150 */ GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe(true, new ItemStack[] { aInput1, (ItemStack) (aInput2 == null ? new ItemStack[] { aInput1 } : aInput2) }, new ItemStack[] { aOutput1 }, null, new FluidStack[] { aFluidInput == null ? null : aFluidInput }, null, aDuration, aEUt, 0); -/* 207:151 */ return true; -/* 208: */ } -/* 209: */ -/* 210: */ public boolean addWiremillRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) -/* 211: */ { -/* 212:156 */ if ((aInput == null) || (aOutput == null)) { -/* 213:156 */ return false; -/* 214: */ } -/* 215:157 */ if ((aDuration = GregTech_API.sRecipeFile.get("wiremill", aInput, aDuration)) <= 0) { -/* 216:157 */ return false; -/* 217: */ } -/* 218:158 */ GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); -/* 219:159 */ return true; -/* 220: */ } -/* 221: */ -/* 222: */ public boolean addPolarizerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) -/* 223: */ { -/* 224:164 */ if ((aInput == null) || (aOutput == null)) { -/* 225:164 */ return false; -/* 226: */ } -/* 227:165 */ if ((aDuration = GregTech_API.sRecipeFile.get("polarizer", aInput, aDuration)) <= 0) { -/* 228:165 */ return false; -/* 229: */ } -/* 230:166 */ GT_Recipe.GT_Recipe_Map.sPolarizerRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); -/* 231:167 */ return true; -/* 232: */ } -/* 233: */ -/* 234: */ public boolean addBenderRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) -/* 235: */ { -/* 236:172 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 237:172 */ return false; -/* 238: */ } -/* 239:173 */ if ((aDuration = GregTech_API.sRecipeFile.get("bender", aInput1, aDuration)) <= 0) { -/* 240:173 */ return false; -/* 241: */ } -/* 242:174 */ new GT_Recipe(aEUt, aDuration, aInput1, aOutput1); -/* 243:175 */ return true; -/* 244: */ } -/* 245: */ -/* 246: */ public boolean addExtruderRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt) -/* 247: */ { -/* 248:180 */ if ((aInput == null) || (aShape == null) || (aOutput == null)) { -/* 249:180 */ return false; -/* 250: */ } -/* 251:181 */ if ((aDuration = GregTech_API.sRecipeFile.get("extruder", aOutput, aDuration)) <= 0) { -/* 252:181 */ return false; -/* 253: */ } -/* 254:182 */ GT_Recipe.GT_Recipe_Map.sExtruderRecipes.addRecipe(true, new ItemStack[] { aInput, aShape }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); -/* 255:183 */ return true; -/* 256: */ } -/* 257: */ -/* 258: */ public boolean addSlicerRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt) -/* 259: */ { -/* 260:188 */ if ((aInput == null) || (aShape == null) || (aOutput == null)) { -/* 261:188 */ return false; -/* 262: */ } -/* 263:189 */ if ((aDuration = GregTech_API.sRecipeFile.get("slicer", aOutput, aDuration)) <= 0) { -/* 264:189 */ return false; -/* 265: */ } -/* 266:190 */ GT_Recipe.GT_Recipe_Map.sSlicerRecipes.addRecipe(true, new ItemStack[] { aInput, aShape }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); -/* 267:191 */ return true; -/* 268: */ } -/* 269: */ -/* 270: */ public boolean addImplosionRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2) -/* 271: */ { -/* 272:196 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 273:196 */ return false; -/* 274: */ } -/* 275:197 */ if ((aInput2 = GregTech_API.sRecipeFile.get("implosion", aInput1, aInput2)) <= 0) { -/* 276:197 */ return false; -/* 277: */ } -/* 278:198 */ new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2); -/* 279:199 */ return true; -/* 280: */ } -/* 281: */ @Deprecated -/* 282: */ public boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) -/* 283: */ { -///* 284:204 */ if ((aInput1 == null) || (aOutput1 == null)) { -///* 285:204 */ return false; -///* 286: */ } -///* 287:205 */ if ((aDuration = GregTech_API.sRecipeFile.get("distillation", aInput1, aDuration)) <= 0) { -///* 288:205 */ return false; -///* 289: */ } -///* 290:206 */ new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2, aOutput3, aOutput4, aDuration, aEUt); -///* 291:207 */ return true; + + public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("assembling", aOutput1, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe(true, new ItemStack[] { aInput1, (ItemStack) (aInput2 == null ? new ItemStack[] { aInput1 } : aInput2) }, new ItemStack[] { aOutput1 }, null, new FluidStack[] { aFluidInput == null ? null : aFluidInput }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addWiremillRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("wiremill", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addPolarizerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("polarizer", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sPolarizerRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addBenderRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("bender", aInput1, aDuration)) <= 0) { + return false; + } + new GT_Recipe(aEUt, aDuration, aInput1, aOutput1); + return true; + } + + public boolean addExtruderRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aShape == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("extruder", aOutput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sExtruderRecipes.addRecipe(true, new ItemStack[] { aInput, aShape }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addSlicerRecipe(ItemStack aInput, ItemStack aShape, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aShape == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("slicer", aOutput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sSlicerRecipes.addRecipe(true, new ItemStack[] { aInput, aShape }, new ItemStack[] { aOutput }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addImplosionRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aInput2 = GregTech_API.sRecipeFile.get("implosion", aInput1, aInput2)) <= 0) { + return false; + } + new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2); + return true; + } + @Deprecated + public boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) + { +// if ((aInput1 == null) || (aOutput1 == null)) { +// return false; +// } +// if ((aDuration = GregTech_API.sRecipeFile.get("distillation", aInput1, aDuration)) <= 0) { +// return false; +// } +// new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2, aOutput3, aOutput4, aDuration, aEUt); +// return true; return false; -/* 292: */ } + } public boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt){ if(aInput==null||aOutputs==null||aOutputs.length<1||aOutputs.length>5){return false;} @@ -302,387 +302,387 @@ GT_Recipe.GT_Recipe_Map.sDistillationRecipes.addRecipe(false, null,new ItemStack[]{ aOutput2}, null, new FluidStack[]{ aInput}, aOutputs, Math.max(1, aDuration), Math.max(1, aEUt), 0); return false; } -/* 293: */ -/* 294: */ public boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration) -/* 295: */ { -/* 296:212 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 297:212 */ return false; -/* 298: */ } -/* 299:213 */ if ((aDuration = GregTech_API.sRecipeFile.get("vacuumfreezer", aInput1, aDuration)) <= 0) { -/* 300:213 */ return false; -/* 301: */ } -/* 302:214 */ new GT_Recipe(aInput1, aOutput1, aDuration); -/* 303:215 */ return true; -/* 304: */ } -/* 305: */ -/* 306: */ public boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4) -/* 307: */ { -/* 308:220 */ return false; -/* 309: */ } -/* 310: */ -/* 311: */ public boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType) -/* 312: */ { -/* 313:225 */ if (aInput1 == null) { -/* 314:225 */ return false; -/* 315: */ } -/* 316:226 */ new GT_Recipe(aInput1, aOutput1, GregTech_API.sRecipeFile.get("fuel_" + aType, aInput1, aEU), aType); -/* 317:227 */ return true; -/* 318: */ } -/* 319: */ -/* 320: */ public boolean addSonictronSound(ItemStack aItemStack, String aSoundName) -/* 321: */ { -/* 322:232 */ if ((aItemStack == null) || (aSoundName == null) || (aSoundName.equals(""))) { -/* 323:232 */ return false; -/* 324: */ } -/* 325:233 */ GT_Mod.gregtechproxy.mSoundItems.add(aItemStack); -/* 326:234 */ GT_Mod.gregtechproxy.mSoundNames.add(aSoundName); -/* 327:235 */ if (aSoundName.startsWith("note.")) { -/* 328:236 */ GT_Mod.gregtechproxy.mSoundCounts.add(Integer.valueOf(25)); -/* 329: */ } else { -/* 330:238 */ GT_Mod.gregtechproxy.mSoundCounts.add(Integer.valueOf(1)); -/* 331: */ } -/* 332:240 */ return true; -/* 333: */ } -/* 334: */ -/* 335: */ public boolean addForgeHammerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) -/* 336: */ { -/* 337:245 */ if ((aInput1 == null) || (aOutput1 == null)) { -/* 338:245 */ return false; -/* 339: */ } -/* 340:246 */ if (!GregTech_API.sRecipeFile.get("forgehammer", aOutput1, true)) { -/* 341:246 */ return false; -/* 342: */ } -/* 343:247 */ GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe(true, new ItemStack[] { aInput1 }, new ItemStack[] { aOutput1 }, null, null, null, aDuration, aEUt, 0); -/* 344:248 */ return true; -/* 345: */ } -/* 346: */ -/* 347: */ public boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration, int aEUt) -/* 348: */ { -/* 349:253 */ if ((aContainedItem == null) || (aFullBox == null)) { -/* 350:253 */ return false; -/* 351: */ } -/* 352:254 */ if (!GregTech_API.sRecipeFile.get("boxing", aFullBox, true)) { -/* 353:254 */ return false; -/* 354: */ } -/* 355:255 */ GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.addRecipe(true, new ItemStack[] { aContainedItem, aEmptyBox }, new ItemStack[] { aFullBox }, null, null, null, aDuration, aEUt, 0); -/* 356:256 */ return true; -/* 357: */ } -/* 358: */ -/* 359: */ public boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration, int aEUt) -/* 360: */ { -/* 361:261 */ if ((aFullBox == null) || (aContainedItem == null)) { -/* 362:261 */ return false; -/* 363: */ } -/* 364:262 */ if (!GregTech_API.sRecipeFile.get("unboxing", aFullBox, true)) { -/* 365:262 */ return false; -/* 366: */ } -/* 367:263 */ GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes.addRecipe(true, new ItemStack[] { aFullBox }, new ItemStack[] { aContainedItem, aEmptyBox }, null, null, null, aDuration, aEUt, 0); -/* 368:264 */ return true; -/* 369: */ } -/* 370: */ -/* 371: */ public boolean addAmplifier(ItemStack aAmplifierItem, int aDuration, int aAmplifierAmountOutputted) -/* 372: */ { -/* 373:269 */ if ((aAmplifierItem == null) || (aAmplifierAmountOutputted <= 0)) { -/* 374:269 */ return false; -/* 375: */ } -/* 376:270 */ if ((aDuration = GregTech_API.sRecipeFile.get("amplifier", aAmplifierItem, aDuration)) <= 0) { -/* 377:270 */ return false; -/* 378: */ } -/* 379:271 */ GT_Recipe.GT_Recipe_Map.sAmplifiers.addRecipe(true, new ItemStack[] { aAmplifierItem }, null, null, null, new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) }, aDuration, 32, 0); -/* 380:272 */ return true; -/* 381: */ } -/* 382: */ -/* 383: */ public boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden) -/* 384: */ { -/* 385:277 */ if ((aIngredient == null) || (aInput == null) || (aOutput == null)) { -/* 386:277 */ return false; -/* 387: */ } -/* 388:278 */ if (!GregTech_API.sRecipeFile.get("brewing", aOutput.getUnlocalizedName(), true)) { -/* 389:278 */ return false; -/* 390: */ } -/* 391:279 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe(false, new ItemStack[] { aIngredient }, null, null, new FluidStack[] { new FluidStack(aInput, 750) }, new FluidStack[] { new FluidStack(aOutput, 750) }, 128, 4, 0); -/* 392:280 */ if ((aHidden) && (tRecipe != null)) { -/* 393:280 */ tRecipe.mHidden = true; -/* 394: */ } -/* 395:281 */ return true; -/* 396: */ } -/* 397: */ -/* 398: */ public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, boolean aHidden) -/* 399: */ { -/* 400:286 */ if ((aInput == null) || (aOutput == null)) { -/* 401:286 */ return false; -/* 402: */ } -/* 403:287 */ if ((aDuration = GregTech_API.sRecipeFile.get("fermenting", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { -/* 404:287 */ return false; -/* 405: */ } -/* 406:288 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFermentingRecipes.addRecipe(false, null, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, 2, 0); -/* 407:289 */ if ((aHidden) && (tRecipe != null)) { -/* 408:289 */ tRecipe.mHidden = true; -/* 409: */ } -/* 410:290 */ return true; -/* 411: */ } -/* 412: */ -/* 413: */ public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, boolean aHidden) -/* 414: */ { -/* 415:295 */ if ((aInput == null) || (aOutput == null)) { -/* 416:295 */ return false; -/* 417: */ } -/* 418:296 */ if ((aDuration = GregTech_API.sRecipeFile.get("distillery", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { -/* 419:296 */ return false; -/* 420: */ } -/* 421:297 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistilleryRecipes.addRecipe(true, new ItemStack[] { aCircuit }, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, aEUt, 0); -/* 422:298 */ if ((aHidden) && (tRecipe != null)) { -/* 423:298 */ tRecipe.mHidden = true; -/* 424: */ } -/* 425:299 */ return true; -/* 426: */ } -/* 427: */ -/* 428: */ public boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration, int aEUt) -/* 429: */ { -/* 430:304 */ if ((aMold == null) || (aInput == null) || (aOutput == null)) { -/* 431:304 */ return false; -/* 432: */ } -/* 433:305 */ if ((aDuration = GregTech_API.sRecipeFile.get("fluidsolidifier", aOutput, aDuration)) <= 0) { -/* 434:305 */ return false; -/* 435: */ } -/* 436:306 */ GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe(true, new ItemStack[] { aMold }, new ItemStack[] { aOutput }, null, new FluidStack[] { aInput }, null, aDuration, aEUt, 0); -/* 437:307 */ return true; -/* 438: */ } -/* 439: */ -/* 440: */ public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt) -/* 441: */ { -/* 442:312 */ if ((aInput == null) || (aOutput == null)) { -/* 443:312 */ return false; -/* 444: */ } -/* 445:313 */ if ((aDuration = GregTech_API.sRecipeFile.get("fluidsmelter", aInput, aDuration)) <= 0) { -/* 446:313 */ return false; -/* 447: */ } -/* 448:314 */ GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aRemains }, null, new int[] { aChance }, null, new FluidStack[] { aOutput }, aDuration, aEUt, 0); -/* 449:315 */ return true; -/* 450: */ } -/* 451: */ -/* 452: */ public boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt) -/* 453: */ { -/* 454:320 */ if ((aInput == null) || (aOutput == null)) { -/* 455:320 */ return false; -/* 456: */ } -/* 457:321 */ if ((aDuration = GregTech_API.sRecipeFile.get("fluidextractor", aInput, aDuration)) <= 0) { -/* 458:321 */ return false; -/* 459: */ } -/* 460:322 */ GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aRemains }, null, new int[] { aChance }, null, new FluidStack[] { aOutput }, aDuration, aEUt, 0); -/* 461:323 */ return true; -/* 462: */ } -/* 463: */ -/* 464: */ public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput) -/* 465: */ { -/* 466:329 */ if ((aInput != null) && (aOutput != null)) -/* 467: */ { -/* 468:329 */ if ((aFluidInput == null ? 1 : 0) != (aFluidOutput == null ? 1 : 0)) {} -/* 469: */ } -/* 470: */ else { -/* 471:329 */ return false; -/* 472: */ } -/* 473:330 */ if (!GregTech_API.sRecipeFile.get("fluidcanner", aOutput, true)) { -/* 474:330 */ return false; -/* 475: */ } -/* 476:331 */ GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, new FluidStack[] { aFluidInput == null ? null : aFluidInput }, new FluidStack[] { aFluidOutput == null ? null : aFluidOutput }, aFluidOutput == null ? aFluidInput.amount / 62 : aFluidOutput.amount / 62, 1, 0); -/* 477:332 */ return true; -/* 478: */ } -/* 479: */ -/* 480: */ public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) -/* 481: */ { -/* 482:337 */ if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) { -/* 483:337 */ return false; -/* 484: */ } -/* 485:338 */ if ((aDuration = GregTech_API.sRecipeFile.get("chemicalbath", aInput, aDuration)) <= 0) { -/* 486:338 */ return false; -/* 487: */ } -/* 488:339 */ GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2, aOutput3 }, null, aChances, new FluidStack[] { aBathingFluid }, null, aDuration, aEUt, 0); -/* 489:340 */ return true; -/* 490: */ } -/* 491: */ -/* 492: */ public boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) -/* 493: */ { -/* 494:345 */ if ((aInput == null) || (aOutput1 == null)) { -/* 495:345 */ return false; -/* 496: */ } -/* 497:346 */ if ((aDuration = GregTech_API.sRecipeFile.get("electromagneticseparator", aInput, aDuration)) <= 0) { -/* 498:346 */ return false; -/* 499: */ } -/* 500:347 */ GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2, aOutput3 }, null, aChances, null, null, aDuration, aEUt, 0); -/* 501:348 */ return true; -/* 502: */ } -/* 503: */ -/* 504: */ public boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput, int aDuration, int aEUt) -/* 505: */ { -/* 506:353 */ if ((aInput == null) || (aFluid == null) || (aOutput == null)) { -/* 507:353 */ return false; -/* 508: */ } -/* 509:354 */ if ((aDuration = GregTech_API.sRecipeFile.get("printer", aInput, aDuration)) <= 0) { -/* 510:354 */ return false; -/* 511: */ } -/* 512:355 */ GT_Recipe.GT_Recipe_Map.sPrinterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, aSpecialSlot, null, new FluidStack[] { aFluid }, null, aDuration, aEUt, 0); -/* 513:356 */ return true; -/* 514: */ } -/* 515: */ -/* 516: */ public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, int aEUt) -/* 517: */ { -/* 518:361 */ if ((aInput == null) || (aFluid == null) || (aOutput == null)) { -/* 519:361 */ return false; -/* 520: */ } -/* 521:362 */ if ((aDuration = GregTech_API.sRecipeFile.get("autoclave", aInput, aDuration)) <= 0) { -/* 522:362 */ return false; -/* 523: */ } -/* 524:363 */ GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, new int[] { aChance }, new FluidStack[] { aFluid }, null, aDuration, aEUt, 0); -/* 525:364 */ return true; -/* 526: */ } -/* 527: */ -/* 528: */ public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) -/* 529: */ { -/* 530:369 */ if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) { -/* 531:369 */ return false; -/* 532: */ } -/* 533:370 */ if ((aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("mixer", aOutput, aDuration)) <= 0)) { -/* 534:370 */ return false; -/* 535: */ } -/* 536:371 */ if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("mixer", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { -/* 537:371 */ return false; -/* 538: */ } -/* 539:372 */ GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2, aInput3, aInput4 }, new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); -/* 540:373 */ return true; -/* 541: */ } -/* 542: */ -/* 543: */ public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration, int aEUt) -/* 544: */ { -/* 545:378 */ if ((aItemToEngrave == null) || (aLens == null) || (aEngravedItem == null)) { -/* 546:378 */ return false; -/* 547: */ } -/* 548:379 */ if ((aDuration = GregTech_API.sRecipeFile.get("laserengraving", aEngravedItem, aDuration)) <= 0) { -/* 549:379 */ return false; -/* 550: */ } -/* 551:380 */ GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe(true, new ItemStack[] { aItemToEngrave, aLens }, new ItemStack[] { aEngravedItem }, null, null, null, aDuration, aEUt, 0); -/* 552:381 */ return true; -/* 553: */ } -/* 554: */ -/* 555: */ public boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, int aEUt) -/* 556: */ { -/* 557:386 */ if ((aItemToImprint == null) || (aForm == null) || (aImprintedItem == null)) { -/* 558:386 */ return false; -/* 559: */ } -/* 560:387 */ if ((aDuration = GregTech_API.sRecipeFile.get("press", aImprintedItem, aDuration)) <= 0) { -/* 561:387 */ return false; -/* 562: */ } -/* 563:388 */ GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe(true, new ItemStack[] { aItemToImprint, aForm }, new ItemStack[] { aImprintedItem }, null, null, null, aDuration, aEUt, 0); -/* 564:389 */ return true; -/* 565: */ } -/* 566: */ -/* 567: */ public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt) -/* 568: */ { -/* 569:394 */ if ((aInput == null) || (aOutput == null)) { -/* 570:394 */ return false; -/* 571: */ } -/* 572:395 */ if ((aDuration = GregTech_API.sRecipeFile.get("fluidheater", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { -/* 573:395 */ return false; -/* 574: */ } -/* 575:396 */ GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe(true, new ItemStack[] { aCircuit }, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, aEUt, 0); -/* 576:397 */ return true; -/* 577: */ } -/* 578: */ -/* 579: */ public boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt) -/* 580: */ { -/* 581:402 */ if ((aItemToSift == null) || (aSiftedItems == null)) { -/* 582:402 */ return false; -/* 583: */ } -/* 584:403 */ for (ItemStack tStack : aSiftedItems) { -/* 585:403 */ if (tStack != null) -/* 586: */ { -/* 587:404 */ if ((aDuration = GregTech_API.sRecipeFile.get("sifter", aItemToSift, aDuration)) <= 0) { -/* 588:404 */ return false; -/* 589: */ } -/* 590:405 */ GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe(true, new ItemStack[] { aItemToSift }, aSiftedItems, null, aChances, null, null, aDuration, aEUt, 0); -/* 591:406 */ return true; -/* 592: */ } -/* 593: */ } -/* 594:408 */ return false; -/* 595: */ } -/* 596: */ -/* 597: */ public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) -/* 598: */ { -/* 599:413 */ if ((aInput == null) || (aOutputs == null)) { -/* 600:413 */ return false; -/* 601: */ } -/* 602:414 */ for (ItemStack tStack : aOutputs) { -/* 603:414 */ if (tStack != null) -/* 604: */ { -/* 605:415 */ if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { -/* 606:415 */ return false; -/* 607: */ } -/* 608:416 */ GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { Materials.Oxygen.getGas(aDuration) }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); -/* 609:417 */ for (Materials tMaterial : new Materials[] { Materials.Argon, Materials.Nitrogen }) { -/* 610:417 */ if (tMaterial.mPlasma != null) -/* 611: */ { -/* 612:418 */ int tPlasmaAmount = (int)Math.max(1L, aDuration / (tMaterial.getMass() * 16L)); -/* 613:419 */ GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) }, new FluidStack[] { tMaterial.getGas(tPlasmaAmount) }, Math.max(1, aDuration / 16), Math.max(1, aEUt / 3), 0); -/* 614: */ } -/* 615: */ } -/* 616:421 */ return true; -/* 617: */ } -/* 618: */ } -/* 619:423 */ return false; -/* 620: */ } + + public boolean addVacuumFreezerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("vacuumfreezer", aInput1, aDuration)) <= 0) { + return false; + } + new GT_Recipe(aInput1, aOutput1, aDuration); + return true; + } + + public boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4) + { + return false; + } + + public boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType) + { + if (aInput1 == null) { + return false; + } + new GT_Recipe(aInput1, aOutput1, GregTech_API.sRecipeFile.get("fuel_" + aType, aInput1, aEU), aType); + return true; + } + + public boolean addSonictronSound(ItemStack aItemStack, String aSoundName) + { + if ((aItemStack == null) || (aSoundName == null) || (aSoundName.equals(""))) { + return false; + } + GT_Mod.gregtechproxy.mSoundItems.add(aItemStack); + GT_Mod.gregtechproxy.mSoundNames.add(aSoundName); + if (aSoundName.startsWith("note.")) { + GT_Mod.gregtechproxy.mSoundCounts.add(Integer.valueOf(25)); + } else { + GT_Mod.gregtechproxy.mSoundCounts.add(Integer.valueOf(1)); + } + return true; + } + + public boolean addForgeHammerRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) + { + if ((aInput1 == null) || (aOutput1 == null)) { + return false; + } + if (!GregTech_API.sRecipeFile.get("forgehammer", aOutput1, true)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe(true, new ItemStack[] { aInput1 }, new ItemStack[] { aOutput1 }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration, int aEUt) + { + if ((aContainedItem == null) || (aFullBox == null)) { + return false; + } + if (!GregTech_API.sRecipeFile.get("boxing", aFullBox, true)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.addRecipe(true, new ItemStack[] { aContainedItem, aEmptyBox }, new ItemStack[] { aFullBox }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration, int aEUt) + { + if ((aFullBox == null) || (aContainedItem == null)) { + return false; + } + if (!GregTech_API.sRecipeFile.get("unboxing", aFullBox, true)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes.addRecipe(true, new ItemStack[] { aFullBox }, new ItemStack[] { aContainedItem, aEmptyBox }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addAmplifier(ItemStack aAmplifierItem, int aDuration, int aAmplifierAmountOutputted) + { + if ((aAmplifierItem == null) || (aAmplifierAmountOutputted <= 0)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("amplifier", aAmplifierItem, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sAmplifiers.addRecipe(true, new ItemStack[] { aAmplifierItem }, null, null, null, new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) }, aDuration, 32, 0); + return true; + } + + public boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, boolean aHidden) + { + if ((aIngredient == null) || (aInput == null) || (aOutput == null)) { + return false; + } + if (!GregTech_API.sRecipeFile.get("brewing", aOutput.getUnlocalizedName(), true)) { + return false; + } + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe(false, new ItemStack[] { aIngredient }, null, null, new FluidStack[] { new FluidStack(aInput, 750) }, new FluidStack[] { new FluidStack(aOutput, 750) }, 128, 4, 0); + if ((aHidden) && (tRecipe != null)) { + tRecipe.mHidden = true; + } + return true; + } + + public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, boolean aHidden) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("fermenting", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { + return false; + } + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFermentingRecipes.addRecipe(false, null, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, 2, 0); + if ((aHidden) && (tRecipe != null)) { + tRecipe.mHidden = true; + } + return true; + } + + public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt, boolean aHidden) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("distillery", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { + return false; + } + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistilleryRecipes.addRecipe(true, new ItemStack[] { aCircuit }, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, aEUt, 0); + if ((aHidden) && (tRecipe != null)) { + tRecipe.mHidden = true; + } + return true; + } + + public boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aMold == null) || (aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("fluidsolidifier", aOutput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe(true, new ItemStack[] { aMold }, new ItemStack[] { aOutput }, null, new FluidStack[] { aInput }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("fluidsmelter", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aRemains }, null, new int[] { aChance }, null, new FluidStack[] { aOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("fluidextractor", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aRemains }, null, new int[] { aChance }, null, new FluidStack[] { aOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput, FluidStack aFluidOutput) + { + if ((aInput != null) && (aOutput != null)) + { + if ((aFluidInput == null ? 1 : 0) != (aFluidOutput == null ? 1 : 0)) {} + } + else { + return false; + } + if (!GregTech_API.sRecipeFile.get("fluidcanner", aOutput, true)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, new FluidStack[] { aFluidInput == null ? null : aFluidInput }, new FluidStack[] { aFluidOutput == null ? null : aFluidOutput }, aFluidOutput == null ? aFluidInput.amount / 62 : aFluidOutput.amount / 62, 1, 0); + return true; + } + + public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("chemicalbath", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2, aOutput3 }, null, aChances, new FluidStack[] { aBathingFluid }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput1 == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("electromagneticseparator", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput1, aOutput2, aOutput3 }, null, aChances, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aFluid == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("printer", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sPrinterRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, aSpecialSlot, null, new FluidStack[] { aFluid }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance, int aDuration, int aEUt) + { + if ((aInput == null) || (aFluid == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("autoclave", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(true, new ItemStack[] { aInput }, new ItemStack[] { aOutput }, null, new int[] { aChance }, new FluidStack[] { aFluid }, null, aDuration, aEUt, 0); + return true; + } + + public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) + { + if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) { + return false; + } + if ((aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("mixer", aOutput, aDuration)) <= 0)) { + return false; + } + if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("mixer", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2, aInput3, aInput4 }, new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem, int aDuration, int aEUt) + { + if ((aItemToEngrave == null) || (aLens == null) || (aEngravedItem == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("laserengraving", aEngravedItem, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe(true, new ItemStack[] { aItemToEngrave, aLens }, new ItemStack[] { aEngravedItem }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem, int aDuration, int aEUt) + { + if ((aItemToImprint == null) || (aForm == null) || (aImprintedItem == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("press", aImprintedItem, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe(true, new ItemStack[] { aItemToImprint, aForm }, new ItemStack[] { aImprintedItem }, null, null, null, aDuration, aEUt, 0); + return true; + } + + public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("fluidheater", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe(true, new ItemStack[] { aCircuit }, null, null, new FluidStack[] { aInput }, new FluidStack[] { aOutput }, aDuration, aEUt, 0); + return true; + } + + public boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt) + { + if ((aItemToSift == null) || (aSiftedItems == null)) { + return false; + } + for (ItemStack tStack : aSiftedItems) { + if (tStack != null) + { + if ((aDuration = GregTech_API.sRecipeFile.get("sifter", aItemToSift, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe(true, new ItemStack[] { aItemToSift }, aSiftedItems, null, aChances, null, null, aDuration, aEUt, 0); + return true; + } + } + return false; + } + + public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutputs == null)) { + return false; + } + for (ItemStack tStack : aOutputs) { + if (tStack != null) + { + if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { Materials.Oxygen.getGas(aDuration) }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); + for (Materials tMaterial : new Materials[] { Materials.Argon, Materials.Nitrogen }) { + if (tMaterial.mPlasma != null) + { + int tPlasmaAmount = (int)Math.max(1L, aDuration / (tMaterial.getMass() * 16L)); + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) }, new FluidStack[] { tMaterial.getGas(tPlasmaAmount) }, Math.max(1, aDuration / 16), Math.max(1, aEUt / 3), 0); + } + } + return true; + } + } + return false; + } -/* 621: */ public boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) -/* 598: */ { -/* 599:413 */ if ((aInput == null) || (aOutputs == null)||aFluidInput==null) { -/* 600:413 */ return false; -/* 601: */ } -/* 602:414 */ for (ItemStack tStack : aOutputs) { -/* 603:414 */ if (tStack != null) -/* 604: */ { -/* 605:415 */ if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { -/* 606:415 */ return false; -/* 607: */ } -/* 608:416 */ GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { aFluidInput }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); -/* 609:417 */ return true; -/* 617: */ } -/* 618: */ } -/* 619:423 */ return false; -/* 620: */ } + public boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutputs == null)||aFluidInput==null) { + return false; + } + for (ItemStack tStack : aOutputs) { + if (tStack != null) + { + if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { aFluidInput }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); + return true; + } + } + return false; + } -/* 621: */ public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) -/* 598: */ { -/* 599:413 */ if ((aInput == null) || (aOutputs == null)||aFluidInput==null) { -/* 600:413 */ return false; -/* 601: */ } -/* 602:414 */ for (ItemStack tStack : aOutputs) { -/* 603:414 */ if (tStack != null) -/* 604: */ { -/* 605:415 */ if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { -/* 606:415 */ return false; -/* 607: */ } -/* 608:416 */ GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { aFluidInput }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); -/* 609:417 */ return true; -/* 617: */ } -/* 618: */ } -/* 619:423 */ return false; -/* 620: */ } + public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutputs == null)||aFluidInput==null) { + return false; + } + for (ItemStack tStack : aOutputs) { + if (tStack != null) + { + if ((aDuration = GregTech_API.sRecipeFile.get("arcfurnace", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, new FluidStack[] { aFluidInput }, null, Math.max(1, aDuration), Math.max(1, aEUt), 0); + return true; + } + } + return false; + } + + public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) + { + if ((aInput == null) || (aOutputs == null)) { + return false; + } + for (ItemStack tStack : aOutputs) { + if (tStack != null) + { + if ((aDuration = GregTech_API.sRecipeFile.get("pulveriser", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, null, null, aDuration, aEUt, 0); + return true; + } + } + return false; + } -/* 622: */ public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt) -/* 623: */ { -/* 624:428 */ if ((aInput == null) || (aOutputs == null)) { -/* 625:428 */ return false; -/* 626: */ } -/* 627:429 */ for (ItemStack tStack : aOutputs) { -/* 628:429 */ if (tStack != null) -/* 629: */ { -/* 630:430 */ if ((aDuration = GregTech_API.sRecipeFile.get("pulveriser", aInput, aDuration)) <= 0) { -/* 631:430 */ return false; -/* 632: */ } -/* 633:431 */ GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs, null, aChances, null, null, aDuration, aEUt, 0); -/* 634:432 */ return true; -/* 635: */ } -/* 636: */ } -/* 637:434 */ return false; -/* 638: */ } -/* 639: */ } diff --git a/main/java/gregtech/common/GT_Server.java b/main/java/gregtech/common/GT_Server.java index ff60985d77..4a56c538fe 100644 --- a/main/java/gregtech/common/GT_Server.java +++ b/main/java/gregtech/common/GT_Server.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import net.minecraft.entity.player.EntityPlayer;
-/* 4: */ import net.minecraft.item.ItemStack;
-/* 5: */ import net.minecraft.world.World;
-/* 6: */
-/* 7: */ public class GT_Server
-/* 8: */ extends GT_Proxy
-/* 9: */ {
-/* 10: */ public boolean isServerSide()
-/* 11: */ {
-/* 12:10 */ return true;
-/* 13: */ }
-/* 14: */
-/* 15: */ public boolean isClientSide()
-/* 16: */ {
-/* 17:11 */ return false;
-/* 18: */ }
-/* 19: */
-/* 20: */ public boolean isBukkitSide()
-/* 21: */ {
-/* 22:12 */ return false;
-/* 23: */ }
-/* 24: */
-/* 25: */ public void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ) {}
-/* 26: */
-/* 27: */ public int addArmor(String aPrefix)
-/* 28: */ {
-/* 29:14 */ return 0;
-/* 30: */ }
-/* 31: */
-/* 32: */ public EntityPlayer getThePlayer()
-/* 33: */ {
-/* 34:15 */ return null;
-/* 35: */ }
-/* 36: */ }
+package gregtech.common;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class GT_Server
+ extends GT_Proxy
+{
+ public boolean isServerSide()
+ {
+ return true;
+ }
+
+ public boolean isClientSide()
+ {
+ return false;
+ }
+
+ public boolean isBukkitSide()
+ {
+ return false;
+ }
+
+ public void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ) {}
+
+ public int addArmor(String aPrefix)
+ {
+ return 0;
+ }
+
+ public EntityPlayer getThePlayer()
+ {
+ return 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/GT_Worldgen_GT_Ore_Layer.java b/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java index 44d8b330c6..2d93c1d63b 100644 --- a/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java +++ b/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java @@ -1,99 +1,99 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.util.GT_Config;
-/* 6: */ import gregtech.api.world.GT_Worldgen;
-/* 7: */ import gregtech.common.blocks.GT_TileEntity_Ores;
+import gregtech.api.enums.Materials;
+import gregtech.api.util.GT_Config;
+import gregtech.api.world.GT_Worldgen;
+import gregtech.common.blocks.GT_TileEntity_Ores;
import gregtech.loaders.misc.GT_Achievements;
-/* 8: */ import java.util.ArrayList;
-/* 9: */ import java.util.Random;
+import java.util.ArrayList;
+import java.util.Random;
+
+import net.minecraft.world.World;
+import net.minecraft.world.chunk.IChunkProvider;
-/* 10: */ import net.minecraft.world.World;
-/* 11: */ import net.minecraft.world.chunk.IChunkProvider;
-/* 12: */
-/* 13: */ public class GT_Worldgen_GT_Ore_Layer
-/* 14: */ extends GT_Worldgen
-/* 15: */ {
-/* 16:15 */ public static ArrayList<GT_Worldgen_GT_Ore_Layer> sList = new ArrayList();
-/* 17:16 */ public static int sWeight = 0;
-/* 18: */ public final short mMinY;
-/* 19: */ public final short mMaxY;
-/* 20: */ public final short mWeight;
-/* 21: */ public final short mDensity;
-/* 22: */ public final short mSize;
-/* 23: */ public final short mPrimaryMeta;
-/* 24: */ public final short mSecondaryMeta;
-/* 25: */ public final short mBetweenMeta;
-/* 26: */ public final short mSporadicMeta;
-/* 27: */ public final boolean mOverworld;
-/* 28: */ public final boolean mNether;
-/* 29: */ public final boolean mEnd;
-/* 30: */
-/* 31: */ public GT_Worldgen_GT_Ore_Layer(String aName, boolean aDefault, int aMinY, int aMaxY, int aWeight, int aDensity, int aSize, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary, Materials aSecondary, Materials aBetween, Materials aSporadic)
-/* 32: */ {
-/* 33:21 */ super(aName, sList, aDefault);
-/* 34:22 */ this.mOverworld = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Overworld", aOverworld);
-/* 35:23 */ this.mNether = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Nether", aNether);
-/* 36:24 */ this.mEnd = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "TheEnd", aEnd);
-/* 37:25 */ this.mMinY = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MinHeight", aMinY));
-/* 38:26 */ this.mMaxY = ((short)Math.max(this.mMinY + 5, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MaxHeight", aMaxY)));
-/* 39:27 */ this.mWeight = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "RandomWeight", aWeight));
-/* 40:28 */ this.mDensity = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Density", aDensity));
-/* 41:29 */ this.mSize = ((short)Math.max(1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Size", aSize)));
-/* 42:30 */ this.mPrimaryMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OrePrimaryLayer", aPrimary.mMetaItemSubID));
-/* 43:31 */ this.mSecondaryMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSecondaryLayer", aSecondary.mMetaItemSubID));
-/* 44:32 */ this.mBetweenMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSporadiclyInbetween", aBetween.mMetaItemSubID));
-/* 45:33 */ this.mSporadicMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSporaticlyAround", aSporadic.mMetaItemSubID));
-/* 46:34 */ if (this.mEnabled) {
+public class GT_Worldgen_GT_Ore_Layer
+ extends GT_Worldgen
+{
+ public static ArrayList<GT_Worldgen_GT_Ore_Layer> sList = new ArrayList();
+ public static int sWeight = 0;
+ public final short mMinY;
+ public final short mMaxY;
+ public final short mWeight;
+ public final short mDensity;
+ public final short mSize;
+ public final short mPrimaryMeta;
+ public final short mSecondaryMeta;
+ public final short mBetweenMeta;
+ public final short mSporadicMeta;
+ public final boolean mOverworld;
+ public final boolean mNether;
+ public final boolean mEnd;
+
+ public GT_Worldgen_GT_Ore_Layer(String aName, boolean aDefault, int aMinY, int aMaxY, int aWeight, int aDensity, int aSize, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary, Materials aSecondary, Materials aBetween, Materials aSporadic)
+ {
+ super(aName, sList, aDefault);
+ this.mOverworld = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Overworld", aOverworld);
+ this.mNether = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Nether", aNether);
+ this.mEnd = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "TheEnd", aEnd);
+ this.mMinY = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MinHeight", aMinY));
+ this.mMaxY = ((short)Math.max(this.mMinY + 5, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MaxHeight", aMaxY)));
+ this.mWeight = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "RandomWeight", aWeight));
+ this.mDensity = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Density", aDensity));
+ this.mSize = ((short)Math.max(1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Size", aSize)));
+ this.mPrimaryMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OrePrimaryLayer", aPrimary.mMetaItemSubID));
+ this.mSecondaryMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSecondaryLayer", aSecondary.mMetaItemSubID));
+ this.mBetweenMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSporadiclyInbetween", aBetween.mMetaItemSubID));
+ this.mSporadicMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "OreSporaticlyAround", aSporadic.mMetaItemSubID));
+ if (this.mEnabled) {
GT_Achievements.registerOre(aPrimary,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
-/* 46:34 */ GT_Achievements.registerOre(aSecondary,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
-/* 46:34 */ GT_Achievements.registerOre(aBetween,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
-/* 46:34 */ GT_Achievements.registerOre(aSporadic,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
-/* 47:34 */ sWeight += this.mWeight;
-/* 48: */ }
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
-/* 52: */ {
-/* 53:39 */ if (!isGenerationAllowed(aWorld, aDimensionType, ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) {
-/* 54:39 */ return false;
-/* 55: */ }
-/* 56:41 */ int tMinY = this.mMinY + aRandom.nextInt(this.mMaxY - this.mMinY - 5);
-/* 57: */
-/* 58:43 */ int cX = aChunkX - aRandom.nextInt(this.mSize);int eX = aChunkX + 16 + aRandom.nextInt(this.mSize);
-/* 59:43 */ for (int tX = cX; tX <= eX; tX++)
-/* 60: */ {
-/* 61:44 */ int cZ = aChunkZ - aRandom.nextInt(this.mSize);int eZ = aChunkZ + 16 + aRandom.nextInt(this.mSize);
-/* 62:44 */ for (int tZ = cZ; tZ <= eZ; tZ++)
-/* 63: */ {
-/* 64:45 */ if (this.mSecondaryMeta > 0) {
-/* 65:45 */ for (int i = tMinY - 1; i < tMinY + 2; i++) {
-/* 66:46 */ if ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0)) {
-/* 67:47 */ GT_TileEntity_Ores.setOreBlock(aWorld, tX, i, tZ, this.mSecondaryMeta);
-/* 68: */ }
-/* 69: */ }
-/* 70: */ }
-/* 71:50 */ if ((this.mBetweenMeta > 0) && ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0))) {
-/* 72:51 */ GT_TileEntity_Ores.setOreBlock(aWorld, tX, tMinY + 2 + aRandom.nextInt(2), tZ, this.mBetweenMeta);
-/* 73: */ }
-/* 74:53 */ if (this.mPrimaryMeta > 0) {
-/* 75:53 */ for (int i = tMinY + 3; i < tMinY + 6; i++) {
-/* 76:54 */ if ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0)) {
-/* 77:55 */ GT_TileEntity_Ores.setOreBlock(aWorld, tX, i, tZ, this.mPrimaryMeta);
-/* 78: */ }
-/* 79: */ }
-/* 80: */ }
-/* 81:58 */ if ((this.mSporadicMeta > 0) && ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0))) {
-/* 82:59 */ GT_TileEntity_Ores.setOreBlock(aWorld, tX, tMinY - 1 + aRandom.nextInt(7), tZ, this.mSporadicMeta);
-/* 83: */ }
-/* 84: */ }
-/* 85: */ }
-/* 86:63 */ return true;
-/* 87: */ }
-/* 88: */ }
+ GT_Achievements.registerOre(aSecondary,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
+ GT_Achievements.registerOre(aBetween,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
+ GT_Achievements.registerOre(aSporadic,aMinY,aMaxY,aWeight,aOverworld,aNether,aEnd);
+ sWeight += this.mWeight;
+ }
+ }
+
+ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
+ {
+ if (!isGenerationAllowed(aWorld, aDimensionType, ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) {
+ return false;
+ }
+ int tMinY = this.mMinY + aRandom.nextInt(this.mMaxY - this.mMinY - 5);
+
+ int cX = aChunkX - aRandom.nextInt(this.mSize);int eX = aChunkX + 16 + aRandom.nextInt(this.mSize);
+ for (int tX = cX; tX <= eX; tX++)
+ {
+ int cZ = aChunkZ - aRandom.nextInt(this.mSize);int eZ = aChunkZ + 16 + aRandom.nextInt(this.mSize);
+ for (int tZ = cZ; tZ <= eZ; tZ++)
+ {
+ if (this.mSecondaryMeta > 0) {
+ for (int i = tMinY - 1; i < tMinY + 2; i++) {
+ if ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0)) {
+ GT_TileEntity_Ores.setOreBlock(aWorld, tX, i, tZ, this.mSecondaryMeta);
+ }
+ }
+ }
+ if ((this.mBetweenMeta > 0) && ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0))) {
+ GT_TileEntity_Ores.setOreBlock(aWorld, tX, tMinY + 2 + aRandom.nextInt(2), tZ, this.mBetweenMeta);
+ }
+ if (this.mPrimaryMeta > 0) {
+ for (int i = tMinY + 3; i < tMinY + 6; i++) {
+ if ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0)) {
+ GT_TileEntity_Ores.setOreBlock(aWorld, tX, i, tZ, this.mPrimaryMeta);
+ }
+ }
+ }
+ if ((this.mSporadicMeta > 0) && ((aRandom.nextInt(Math.max(1, Math.max(Math.abs(cZ - tZ), Math.abs(eZ - tZ)) / this.mDensity)) == 0) || (aRandom.nextInt(Math.max(1, Math.max(Math.abs(cX - tX), Math.abs(eX - tX)) / this.mDensity)) == 0))) {
+ GT_TileEntity_Ores.setOreBlock(aWorld, tX, tMinY - 1 + aRandom.nextInt(7), tZ, this.mSporadicMeta);
+ }
+ }
+ }
+ return true;
+ }
+}
/* 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/GT_Worldgen_GT_Ore_SmallPieces.java b/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java index 9fd3a6bcd8..6fe2bfbb08 100644 --- a/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java +++ b/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java @@ -1,52 +1,52 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.util.GT_Config;
-/* 6: */ import gregtech.api.world.GT_Worldgen;
-/* 7: */ import gregtech.common.blocks.GT_TileEntity_Ores;
-/* 8: */ import java.util.Random;
-/* 9: */ import net.minecraft.world.World;
-/* 10: */ import net.minecraft.world.chunk.IChunkProvider;
-/* 11: */
-/* 12: */ public class GT_Worldgen_GT_Ore_SmallPieces
-/* 13: */ extends GT_Worldgen
-/* 14: */ {
-/* 15: */ public final short mMinY;
-/* 16: */ public final short mMaxY;
-/* 17: */ public final short mAmount;
-/* 18: */ public final short mMeta;
-/* 19: */ public final boolean mOverworld;
-/* 20: */ public final boolean mNether;
-/* 21: */ public final boolean mEnd;
-/* 22: */
-/* 23: */ public GT_Worldgen_GT_Ore_SmallPieces(String aName, boolean aDefault, int aMinY, int aMaxY, int aAmount, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary)
-/* 24: */ {
-/* 25:18 */ super(aName, GregTech_API.sWorldgenList, aDefault);
-/* 26:19 */ this.mOverworld = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Overworld", aOverworld);
-/* 27:20 */ this.mNether = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Nether", aNether);
-/* 28:21 */ this.mEnd = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "TheEnd", aEnd);
-/* 29:22 */ this.mMinY = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MinHeight", aMinY));
-/* 30:23 */ this.mMaxY = ((short)Math.max(this.mMinY + 1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MaxHeight", aMaxY)));
-/* 31:24 */ this.mAmount = ((short)Math.max(1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Amount", aAmount)));
-/* 32:25 */ this.mMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Ore", aPrimary.mMetaItemSubID));
-/* 33: */ }
-/* 34: */
-/* 35: */ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
-/* 36: */ {
-/* 37:30 */ if (!isGenerationAllowed(aWorld, aDimensionType, ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) {
-/* 38:30 */ return false;
-/* 39: */ }
-/* 40:31 */ if (this.mMeta > 0)
-/* 41: */ {
-/* 42:31 */ int i = 0;
-/* 43:31 */ for (int j = Math.max(1, this.mAmount / 2 + aRandom.nextInt(this.mAmount) / 2); i < j; i++) {
-/* 44:31 */ GT_TileEntity_Ores.setOreBlock(aWorld, aChunkX + aRandom.nextInt(16), this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), aChunkZ + aRandom.nextInt(16), this.mMeta + 16000);
-/* 45: */ }
-/* 46: */ }
-/* 47:32 */ return true;
-/* 48: */ }
-/* 49: */ }
+package gregtech.common;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.util.GT_Config;
+import gregtech.api.world.GT_Worldgen;
+import gregtech.common.blocks.GT_TileEntity_Ores;
+import java.util.Random;
+import net.minecraft.world.World;
+import net.minecraft.world.chunk.IChunkProvider;
+
+public class GT_Worldgen_GT_Ore_SmallPieces
+ extends GT_Worldgen
+{
+ public final short mMinY;
+ public final short mMaxY;
+ public final short mAmount;
+ public final short mMeta;
+ public final boolean mOverworld;
+ public final boolean mNether;
+ public final boolean mEnd;
+
+ public GT_Worldgen_GT_Ore_SmallPieces(String aName, boolean aDefault, int aMinY, int aMaxY, int aAmount, boolean aOverworld, boolean aNether, boolean aEnd, Materials aPrimary)
+ {
+ super(aName, GregTech_API.sWorldgenList, aDefault);
+ this.mOverworld = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Overworld", aOverworld);
+ this.mNether = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Nether", aNether);
+ this.mEnd = GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "TheEnd", aEnd);
+ this.mMinY = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MinHeight", aMinY));
+ this.mMaxY = ((short)Math.max(this.mMinY + 1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "MaxHeight", aMaxY)));
+ this.mAmount = ((short)Math.max(1, GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Amount", aAmount)));
+ this.mMeta = ((short)GregTech_API.sWorldgenFile.get("worldgen." + this.mWorldGenName, "Ore", aPrimary.mMetaItemSubID));
+ }
+
+ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
+ {
+ if (!isGenerationAllowed(aWorld, aDimensionType, ((aDimensionType == -1) && (this.mNether)) || ((aDimensionType == 0) && (this.mOverworld)) || ((aDimensionType == 1) && (this.mEnd)) ? aDimensionType : aDimensionType ^ 0xFFFFFFFF)) {
+ return false;
+ }
+ if (this.mMeta > 0)
+ {
+ int i = 0;
+ for (int j = Math.max(1, this.mAmount / 2 + aRandom.nextInt(this.mAmount) / 2); i < j; i++) {
+ GT_TileEntity_Ores.setOreBlock(aWorld, aChunkX + aRandom.nextInt(16), this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), aChunkZ + aRandom.nextInt(16), this.mMeta + 16000);
+ }
+ }
+ return true;
+ }
+}
/* 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/GT_Worldgen_Stone.java b/main/java/gregtech/common/GT_Worldgen_Stone.java index bbd5d72a0c..f24dc9afad 100644 --- a/main/java/gregtech/common/GT_Worldgen_Stone.java +++ b/main/java/gregtech/common/GT_Worldgen_Stone.java @@ -1,94 +1,94 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.world.GT_Worldgen_Ore;
-/* 5: */ import gregtech.common.blocks.GT_TileEntity_Ores;
-/* 6: */ import java.util.Collection;
-/* 7: */ import java.util.Random;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.init.Blocks;
-/* 10: */ import net.minecraft.tileentity.TileEntity;
-/* 11: */ import net.minecraft.util.MathHelper;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */ import net.minecraft.world.chunk.IChunkProvider;
-/* 14: */
-/* 15: */ public class GT_Worldgen_Stone
-/* 16: */ extends GT_Worldgen_Ore
-/* 17: */ {
-/* 18: */ public GT_Worldgen_Stone(String aName, boolean aDefault, Block aBlock, int aBlockMeta, int aDimensionType, int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection<String> aBiomeList, boolean aAllowToGenerateinVoid)
-/* 19: */ {
-/* 20:19 */ super(aName, aDefault, aBlock, aBlockMeta, aDimensionType, aAmount, aSize, aProbability, aMinY, aMaxY, aBiomeList, aAllowToGenerateinVoid);
-/* 21: */ }
-/* 22: */
-/* 23: */ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
-/* 24: */ {
-/* 25:24 */ if ((isGenerationAllowed(aWorld, aDimensionType, this.mDimensionType)) && ((this.mBiomeList.isEmpty()) || (this.mBiomeList.contains(aBiome))) && ((this.mProbability <= 1) || (aRandom.nextInt(this.mProbability) == 0)))
-/* 26: */ {
-/* 27:25 */ for (int i = 0; i < this.mAmount; i++)
-/* 28: */ {
-/* 29:26 */ int tX = aChunkX + aRandom.nextInt(16);int tY = this.mMinY + aRandom.nextInt(this.mMaxY - this.mMinY);int tZ = aChunkZ + aRandom.nextInt(16);
-/* 30:27 */ if ((this.mAllowToGenerateinVoid) || (!aWorld.getBlock(tX, tY, tZ).isAir(aWorld, tX, tY, tZ)))
-/* 31: */ {
-/* 32:28 */ float var6 = aRandom.nextFloat() * 3.141593F;
-/* 33:29 */ double var7 = tX + 8 + MathHelper.sin(var6) * this.mSize / 8.0F;
-/* 34:30 */ double var9 = tX + 8 - MathHelper.sin(var6) * this.mSize / 8.0F;
-/* 35:31 */ double var11 = tZ + 8 + MathHelper.cos(var6) * this.mSize / 8.0F;
-/* 36:32 */ double var13 = tZ + 8 - MathHelper.cos(var6) * this.mSize / 8.0F;
-/* 37:33 */ double var15 = tY + aRandom.nextInt(3) - 2;
-/* 38:34 */ double var17 = tY + aRandom.nextInt(3) - 2;
-/* 39:36 */ for (int var19 = 0; var19 <= this.mSize; var19++)
-/* 40: */ {
-/* 41:37 */ double var20 = var7 + (var9 - var7) * var19 / this.mSize;
-/* 42:38 */ double var22 = var15 + (var17 - var15) * var19 / this.mSize;
-/* 43:39 */ double var24 = var11 + (var13 - var11) * var19 / this.mSize;
-/* 44:40 */ double var26 = aRandom.nextDouble() * this.mSize / 16.0D;
-/* 45:41 */ double var28 = (MathHelper.sin(var19 * 3.141593F / this.mSize) + 1.0F) * var26 + 1.0D;
-/* 46:42 */ double var30 = (MathHelper.sin(var19 * 3.141593F / this.mSize) + 1.0F) * var26 + 1.0D;
-/* 47:43 */ int tMinX = MathHelper.floor_double(var20 - var28 / 2.0D);
-/* 48:44 */ int tMinY = MathHelper.floor_double(var22 - var30 / 2.0D);
-/* 49:45 */ int tMinZ = MathHelper.floor_double(var24 - var28 / 2.0D);
-/* 50:46 */ int tMaxX = MathHelper.floor_double(var20 + var28 / 2.0D);
-/* 51:47 */ int tMaxY = MathHelper.floor_double(var22 + var30 / 2.0D);
-/* 52:48 */ int tMaxZ = MathHelper.floor_double(var24 + var28 / 2.0D);
-/* 53:50 */ for (int eX = tMinX; eX <= tMaxX; eX++)
-/* 54: */ {
-/* 55:51 */ double var39 = (eX + 0.5D - var20) / (var28 / 2.0D);
-/* 56:52 */ if (var39 * var39 < 1.0D) {
-/* 57:53 */ for (int eY = tMinY; eY <= tMaxY; eY++)
-/* 58: */ {
-/* 59:54 */ double var42 = (eY + 0.5D - var22) / (var30 / 2.0D);
-/* 60:55 */ if (var39 * var39 + var42 * var42 < 1.0D) {
-/* 61:56 */ for (int eZ = tMinZ; eZ <= tMaxZ; eZ++)
-/* 62: */ {
-/* 63:57 */ double var45 = (eZ + 0.5D - var24) / (var28 / 2.0D);
-/* 64:58 */ if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0D)
-/* 65: */ {
-/* 66:59 */ Block tTargetedBlock = aWorld.getBlock(eX, eY, eZ);
-/* 67:60 */ if (tTargetedBlock == GregTech_API.sBlockOres1)
-/* 68: */ {
-/* 69:61 */ TileEntity tTileEntity = aWorld.getTileEntity(eX, eY, eZ);
-/* 70:62 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 71:62 */ ((GT_TileEntity_Ores)tTileEntity).overrideOreBlockMaterial(this.mBlock, (byte)this.mBlockMeta);
-/* 72: */ }
-/* 73: */ }
-/* 74:64 */ else if (((this.mAllowToGenerateinVoid) && (aWorld.getBlock(eX, eY, eZ).isAir(aWorld, eX, eY, eZ))) || ((tTargetedBlock != null) && ((tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.stone)) || (tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.end_stone)) || (tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.netherrack)))))
-/* 75: */ {
-/* 76:65 */ aWorld.setBlock(eX, eY, eZ, this.mBlock, this.mBlockMeta, 0);
-/* 77: */ }
-/* 78: */ }
-/* 79: */ }
-/* 80: */ }
-/* 81: */ }
-/* 82: */ }
-/* 83: */ }
-/* 84: */ }
-/* 85: */ }
-/* 86: */ }
-/* 87:77 */ return true;
-/* 88: */ }
-/* 89:79 */ return false;
-/* 90: */ }
-/* 91: */ }
+package gregtech.common;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.world.GT_Worldgen_Ore;
+import gregtech.common.blocks.GT_TileEntity_Ores;
+import java.util.Collection;
+import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.init.Blocks;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
+import net.minecraft.world.chunk.IChunkProvider;
+
+public class GT_Worldgen_Stone
+ extends GT_Worldgen_Ore
+{
+ public GT_Worldgen_Stone(String aName, boolean aDefault, Block aBlock, int aBlockMeta, int aDimensionType, int aAmount, int aSize, int aProbability, int aMinY, int aMaxY, Collection<String> aBiomeList, boolean aAllowToGenerateinVoid)
+ {
+ super(aName, aDefault, aBlock, aBlockMeta, aDimensionType, aAmount, aSize, aProbability, aMinY, aMaxY, aBiomeList, aAllowToGenerateinVoid);
+ }
+
+ public boolean executeWorldgen(World aWorld, Random aRandom, String aBiome, int aDimensionType, int aChunkX, int aChunkZ, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
+ {
+ if ((isGenerationAllowed(aWorld, aDimensionType, this.mDimensionType)) && ((this.mBiomeList.isEmpty()) || (this.mBiomeList.contains(aBiome))) && ((this.mProbability <= 1) || (aRandom.nextInt(this.mProbability) == 0)))
+ {
+ for (int i = 0; i < this.mAmount; i++)
+ {
+ int tX = aChunkX + aRandom.nextInt(16);int tY = this.mMinY + aRandom.nextInt(this.mMaxY - this.mMinY);int tZ = aChunkZ + aRandom.nextInt(16);
+ if ((this.mAllowToGenerateinVoid) || (!aWorld.getBlock(tX, tY, tZ).isAir(aWorld, tX, tY, tZ)))
+ {
+ float var6 = aRandom.nextFloat() * 3.141593F;
+ double var7 = tX + 8 + MathHelper.sin(var6) * this.mSize / 8.0F;
+ double var9 = tX + 8 - MathHelper.sin(var6) * this.mSize / 8.0F;
+ double var11 = tZ + 8 + MathHelper.cos(var6) * this.mSize / 8.0F;
+ double var13 = tZ + 8 - MathHelper.cos(var6) * this.mSize / 8.0F;
+ double var15 = tY + aRandom.nextInt(3) - 2;
+ double var17 = tY + aRandom.nextInt(3) - 2;
+ for (int var19 = 0; var19 <= this.mSize; var19++)
+ {
+ double var20 = var7 + (var9 - var7) * var19 / this.mSize;
+ double var22 = var15 + (var17 - var15) * var19 / this.mSize;
+ double var24 = var11 + (var13 - var11) * var19 / this.mSize;
+ double var26 = aRandom.nextDouble() * this.mSize / 16.0D;
+ double var28 = (MathHelper.sin(var19 * 3.141593F / this.mSize) + 1.0F) * var26 + 1.0D;
+ double var30 = (MathHelper.sin(var19 * 3.141593F / this.mSize) + 1.0F) * var26 + 1.0D;
+ int tMinX = MathHelper.floor_double(var20 - var28 / 2.0D);
+ int tMinY = MathHelper.floor_double(var22 - var30 / 2.0D);
+ int tMinZ = MathHelper.floor_double(var24 - var28 / 2.0D);
+ int tMaxX = MathHelper.floor_double(var20 + var28 / 2.0D);
+ int tMaxY = MathHelper.floor_double(var22 + var30 / 2.0D);
+ int tMaxZ = MathHelper.floor_double(var24 + var28 / 2.0D);
+ for (int eX = tMinX; eX <= tMaxX; eX++)
+ {
+ double var39 = (eX + 0.5D - var20) / (var28 / 2.0D);
+ if (var39 * var39 < 1.0D) {
+ for (int eY = tMinY; eY <= tMaxY; eY++)
+ {
+ double var42 = (eY + 0.5D - var22) / (var30 / 2.0D);
+ if (var39 * var39 + var42 * var42 < 1.0D) {
+ for (int eZ = tMinZ; eZ <= tMaxZ; eZ++)
+ {
+ double var45 = (eZ + 0.5D - var24) / (var28 / 2.0D);
+ if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0D)
+ {
+ Block tTargetedBlock = aWorld.getBlock(eX, eY, eZ);
+ if (tTargetedBlock == GregTech_API.sBlockOres1)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(eX, eY, eZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ ((GT_TileEntity_Ores)tTileEntity).overrideOreBlockMaterial(this.mBlock, (byte)this.mBlockMeta);
+ }
+ }
+ else if (((this.mAllowToGenerateinVoid) && (aWorld.getBlock(eX, eY, eZ).isAir(aWorld, eX, eY, eZ))) || ((tTargetedBlock != null) && ((tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.stone)) || (tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.end_stone)) || (tTargetedBlock.isReplaceableOreGen(aWorld, eX, eY, eZ, Blocks.netherrack)))))
+ {
+ aWorld.setBlock(eX, eY, eZ, this.mBlock, this.mBlockMeta, 0);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+ return false;
+ }
+}
/* 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/GT_Worldgenerator.java b/main/java/gregtech/common/GT_Worldgenerator.java index 438eaa0c2f..8dada2088b 100644 --- a/main/java/gregtech/common/GT_Worldgenerator.java +++ b/main/java/gregtech/common/GT_Worldgenerator.java @@ -1,133 +1,133 @@ -/* 1: */ package gregtech.common;
-/* 2: */
-/* 3: */ import cpw.mods.fml.common.IWorldGenerator;
-/* 4: */ import cpw.mods.fml.common.registry.GameRegistry;
-/* 5: */ import gregtech.api.GregTech_API;
-/* 6: */ import gregtech.api.util.GT_Log;
-/* 7: */ import gregtech.api.world.GT_Worldgen;
-/* 8: */ import java.util.ArrayList;
-/* 9: */ import java.util.List;
-/* 10: */ import java.util.Random;
-/* 11: */ import net.minecraft.world.World;
-/* 12: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 13: */ import net.minecraft.world.chunk.Chunk;
-/* 14: */ import net.minecraft.world.chunk.IChunkProvider;
-/* 15: */ import net.minecraft.world.gen.ChunkProviderEnd;
-/* 16: */ import net.minecraft.world.gen.ChunkProviderHell;
-/* 17: */
-/* 18: */ public class GT_Worldgenerator
-/* 19: */ implements IWorldGenerator
-/* 20: */ {
-/* 21:21 */ public static boolean sAsteroids = true;
-/* 22:23 */ public List<Runnable> mList = new ArrayList();
-/* 23:24 */ public boolean mIsGenerating = false;
-/* 24: */
-/* 25: */ public GT_Worldgenerator()
-/* 26: */ {
-/* 27:27 */ GameRegistry.registerWorldGenerator(this, 1073741823);
-/* 28: */ }
-/* 29: */
-/* 30: */ public void generate(Random aRandom, int aX, int aZ, World aWorld, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
-/* 31: */ {
-/* 32:32 */ this.mList.add(new WorldGenContainer(new Random(aRandom.nextInt()), aX * 16, aZ * 16, ((aChunkGenerator instanceof ChunkProviderEnd)) || (aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8) == BiomeGenBase.sky) ? 1 : ((aChunkGenerator instanceof ChunkProviderHell)) || (aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8) == BiomeGenBase.hell) ? -1 : 0, aWorld, aChunkGenerator, aChunkProvider, aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName));
-/* 33:33 */ if (!this.mIsGenerating)
-/* 34: */ {
-/* 35:34 */ this.mIsGenerating = true;
-/* 36:35 */ for (int i = 0; i < this.mList.size(); i++) {
-/* 37:35 */ ((Runnable)this.mList.get(i)).run();
-/* 38: */ }
-/* 39:36 */ this.mList.clear();
-/* 40:37 */ this.mIsGenerating = false;
-/* 41: */ }
-/* 42: */ }
-/* 43: */
-/* 44: */ public static class WorldGenContainer
-/* 45: */ implements Runnable
-/* 46: */ {
-/* 47: */ public final Random mRandom;
-/* 48: */ public final int mX;
-/* 49: */ public final int mZ;
-/* 50: */ public final int mDimensionType;
-/* 51: */ public final World mWorld;
-/* 52: */ public final IChunkProvider mChunkGenerator;
-/* 53: */ public final IChunkProvider mChunkProvider;
-/* 54: */ public final String mBiome;
-/* 55: */
-/* 56: */ public WorldGenContainer(Random aRandom, int aX, int aZ, int aDimensionType, World aWorld, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider, String aBiome)
-/* 57: */ {
-/* 58:49 */ this.mRandom = aRandom;
-/* 59:50 */ this.mX = aX;
-/* 60:51 */ this.mZ = aZ;
-/* 61:52 */ this.mDimensionType = aDimensionType;
-/* 62:53 */ this.mWorld = aWorld;
-/* 63:54 */ this.mChunkGenerator = aChunkGenerator;
-/* 64:55 */ this.mChunkProvider = aChunkProvider;
-/* 65:56 */ this.mBiome = aBiome;
-/* 66: */ }
-/* 67: */
-/* 68: */ public void run()
-/* 69: */ {
-/* 70:61 */ if ((Math.abs(this.mX / 16) % 3 == 1) && (Math.abs(this.mZ / 16) % 3 == 1))
-/* 71: */ {
-/* 72:62 */ if ((GT_Worldgen_GT_Ore_Layer.sWeight > 0) && (GT_Worldgen_GT_Ore_Layer.sList.size() > 0))
-/* 73: */ {
-/* 74:63 */ boolean temp = true;
-/* 75: */ int tRandomWeight;
-/* 76:64 */ for (int i = 0; (i < 256) && (temp); i++)
-/* 77: */ {
-/* 78:65 */ tRandomWeight = this.mRandom.nextInt(GT_Worldgen_GT_Ore_Layer.sWeight);
-/* 79:66 */ for (GT_Worldgen tWorldGen : GT_Worldgen_GT_Ore_Layer.sList)
-/* 80: */ {
-/* 81:67 */ tRandomWeight -= ((GT_Worldgen_GT_Ore_Layer)tWorldGen).mWeight;
-/* 82:68 */ if (tRandomWeight <= 0) {
-/* 83: */ try
-/* 84: */ {
-/* 85:70 */ if (tWorldGen.executeWorldgen(this.mWorld, this.mRandom, this.mBiome, this.mDimensionType, this.mX, this.mZ, this.mChunkGenerator, this.mChunkProvider))
-/* 86: */ {
-/* 87:71 */ temp = false;
-/* 88:72 */ break;
-/* 89: */ }
-/* 90: */ }
-/* 91: */ catch (Throwable e)
-/* 92: */ {
-/* 93:75 */ e.printStackTrace(GT_Log.err);
-/* 94: */ }
-/* 95: */ }
-/* 96: */ }
-/* 97: */ }
-/* 98: */ }
-/* 99:82 */ int i = 0;
-/* :0:82 */ for (int tX = this.mX - 16; i < 3; tX += 16)
-/* :1: */ {
-/* :2:82 */ int j = 0;
-/* :3:82 */ for (int tZ = this.mZ - 16; j < 3; tZ += 16)
-/* :4: */ {
-/* :5:83 */ String tBiome = this.mWorld.getBiomeGenForCoords(tX + 8, tZ + 8).biomeName;
-/* :6:84 */ if (tBiome == null) {
-/* :7:84 */ tBiome = BiomeGenBase.plains.biomeName;
-/* :8: */ }
-/* :9:85 */ for (GT_Worldgen tWorldGen : GregTech_API.sWorldgenList) {
-/* ;0: */ try
-/* ;1: */ {
-/* ;2:87 */ tWorldGen.executeWorldgen(this.mWorld, this.mRandom, this.mBiome, this.mDimensionType, tX, tZ, this.mChunkGenerator, this.mChunkProvider);
-/* ;3: */ }
-/* ;4: */ catch (Throwable e)
-/* ;5: */ {
-/* ;6:89 */ e.printStackTrace(GT_Log.err);
-/* ;7: */ }
-/* ;8: */ }
-/* ;9:82 */ j++;
-/* <0: */ }
-/* <1:82 */ i++;
-/* <2: */ }
-/* <3: */ }
-/* <4:95 */ Chunk tChunk = this.mWorld.getChunkFromBlockCoords(this.mX, this.mZ);
-/* <5:96 */ if (tChunk != null) {
-/* <6:96 */ tChunk.isModified = true;
-/* <7: */ }
-/* <8: */ }
-/* <9: */ }
-/* =0: */ }
+package gregtech.common;
+
+import cpw.mods.fml.common.IWorldGenerator;
+import cpw.mods.fml.common.registry.GameRegistry;
+import gregtech.api.GregTech_API;
+import gregtech.api.util.GT_Log;
+import gregtech.api.world.GT_Worldgen;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+import net.minecraft.world.chunk.Chunk;
+import net.minecraft.world.chunk.IChunkProvider;
+import net.minecraft.world.gen.ChunkProviderEnd;
+import net.minecraft.world.gen.ChunkProviderHell;
+
+public class GT_Worldgenerator
+ implements IWorldGenerator
+{
+ public static boolean sAsteroids = true;
+ public List<Runnable> mList = new ArrayList();
+ public boolean mIsGenerating = false;
+
+ public GT_Worldgenerator()
+ {
+ GameRegistry.registerWorldGenerator(this, 1073741823);
+ }
+
+ public void generate(Random aRandom, int aX, int aZ, World aWorld, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider)
+ {
+ this.mList.add(new WorldGenContainer(new Random(aRandom.nextInt()), aX * 16, aZ * 16, ((aChunkGenerator instanceof ChunkProviderEnd)) || (aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8) == BiomeGenBase.sky) ? 1 : ((aChunkGenerator instanceof ChunkProviderHell)) || (aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8) == BiomeGenBase.hell) ? -1 : 0, aWorld, aChunkGenerator, aChunkProvider, aWorld.getBiomeGenForCoords(aX * 16 + 8, aZ * 16 + 8).biomeName));
+ if (!this.mIsGenerating)
+ {
+ this.mIsGenerating = true;
+ for (int i = 0; i < this.mList.size(); i++) {
+ ((Runnable)this.mList.get(i)).run();
+ }
+ this.mList.clear();
+ this.mIsGenerating = false;
+ }
+ }
+
+ public static class WorldGenContainer
+ implements Runnable
+ {
+ public final Random mRandom;
+ public final int mX;
+ public final int mZ;
+ public final int mDimensionType;
+ public final World mWorld;
+ public final IChunkProvider mChunkGenerator;
+ public final IChunkProvider mChunkProvider;
+ public final String mBiome;
+
+ public WorldGenContainer(Random aRandom, int aX, int aZ, int aDimensionType, World aWorld, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider, String aBiome)
+ {
+ this.mRandom = aRandom;
+ this.mX = aX;
+ this.mZ = aZ;
+ this.mDimensionType = aDimensionType;
+ this.mWorld = aWorld;
+ this.mChunkGenerator = aChunkGenerator;
+ this.mChunkProvider = aChunkProvider;
+ this.mBiome = aBiome;
+ }
+
+ public void run()
+ {
+ if ((Math.abs(this.mX / 16) % 3 == 1) && (Math.abs(this.mZ / 16) % 3 == 1))
+ {
+ if ((GT_Worldgen_GT_Ore_Layer.sWeight > 0) && (GT_Worldgen_GT_Ore_Layer.sList.size() > 0))
+ {
+ boolean temp = true;
+ int tRandomWeight;
+ for (int i = 0; (i < 256) && (temp); i++)
+ {
+ tRandomWeight = this.mRandom.nextInt(GT_Worldgen_GT_Ore_Layer.sWeight);
+ for (GT_Worldgen tWorldGen : GT_Worldgen_GT_Ore_Layer.sList)
+ {
+ tRandomWeight -= ((GT_Worldgen_GT_Ore_Layer)tWorldGen).mWeight;
+ if (tRandomWeight <= 0) {
+ try
+ {
+ if (tWorldGen.executeWorldgen(this.mWorld, this.mRandom, this.mBiome, this.mDimensionType, this.mX, this.mZ, this.mChunkGenerator, this.mChunkProvider))
+ {
+ temp = false;
+ break;
+ }
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ }
+ }
+ }
+ int i = 0;
+ for (int tX = this.mX - 16; i < 3; tX += 16)
+ {
+ int j = 0;
+ for (int tZ = this.mZ - 16; j < 3; tZ += 16)
+ {
+ String tBiome = this.mWorld.getBiomeGenForCoords(tX + 8, tZ + 8).biomeName;
+ if (tBiome == null) {
+ tBiome = BiomeGenBase.plains.biomeName;
+ }
+ for (GT_Worldgen tWorldGen : GregTech_API.sWorldgenList) {
+ try
+ {
+ tWorldGen.executeWorldgen(this.mWorld, this.mRandom, this.mBiome, this.mDimensionType, tX, tZ, this.mChunkGenerator, this.mChunkProvider);
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ j++;
+ }
+ i++;
+ }
+ }
+ Chunk tChunk = this.mWorld.getChunkFromBlockCoords(this.mX, this.mZ);
+ if (tChunk != null) {
+ tChunk.isModified = true;
+ }
+ }
+ }
+}
/* 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/blocks/GT_Block_Casings1.java b/main/java/gregtech/common/blocks/GT_Block_Casings1.java index eea1784635..a24aee847f 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Casings1.java +++ b/main/java/gregtech/common/blocks/GT_Block_Casings1.java @@ -1,93 +1,93 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ItemList;
+package gregtech.common.blocks;
+
+import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.objects.GT_CopiedBlockTexture;
-/* 7: */ import gregtech.api.util.GT_LanguageManager;
-/* 8: */ import net.minecraft.item.ItemStack;
-/* 9: */ import net.minecraft.util.IIcon;
-/* 10: */ import net.minecraft.world.IBlockAccess;
-/* 11: */
-/* 12: */ public class GT_Block_Casings1
-/* 13: */ extends GT_Block_Casings_Abstract
-/* 14: */ {
-/* 15: */ public GT_Block_Casings1()
-/* 16: */ {
-/* 17:14 */ super(GT_Item_Casings1.class, "gt.blockcasings", GT_Material_Casings.INSTANCE);
-/* 18:15 */ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
-/* 19:15 */ Textures.BlockIcons.CASING_BLOCKS[i] = new GT_CopiedBlockTexture(this, 6, i);
-/* 20: */ }
-/* 21:16 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "ULV Machine Casing");
-/* 22:17 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "LV Machine Casing");
-/* 23:18 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "MV Machine Casing");
-/* 24:19 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "HV Machine Casing");
-/* 25:20 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "EV Machine Casing");
-/* 26:21 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "IV Machine Casing");
-/* 27:22 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "LuV Machine Casing");
-/* 28:23 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "ZPM Machine Casing");
-/* 29:24 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "UV Machine Casing");
-/* 30:25 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "MAX Machine Casing");
-/* 31:26 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Bronze Plated Bricks");
-/* 32:27 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Heat Proof Machine Casing");
-/* 33:28 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cupronickel Coil Block");
-/* 34:29 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Kanthal Coil Block");
-/* 35:30 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Nichrome Coil Block");
-/* 36:31 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Superconducting Coil Block");
-/* 37:32 */ ItemList.Casing_ULV.set(new ItemStack(this, 1, 0));
-/* 38:33 */ ItemList.Casing_LV.set(new ItemStack(this, 1, 1));
-/* 39:34 */ ItemList.Casing_MV.set(new ItemStack(this, 1, 2));
-/* 40:35 */ ItemList.Casing_HV.set(new ItemStack(this, 1, 3));
-/* 41:36 */ ItemList.Casing_EV.set(new ItemStack(this, 1, 4));
-/* 42:37 */ ItemList.Casing_IV.set(new ItemStack(this, 1, 5));
-/* 43:38 */ ItemList.Casing_LuV.set(new ItemStack(this, 1, 6));
-/* 44:39 */ ItemList.Casing_ZPM.set(new ItemStack(this, 1, 7));
-/* 45:40 */ ItemList.Casing_UV.set(new ItemStack(this, 1, 8));
-/* 46:41 */ ItemList.Casing_MAX.set(new ItemStack(this, 1, 9));
-/* 47:42 */ ItemList.Casing_BronzePlatedBricks.set(new ItemStack(this, 1, 10));
-/* 48:43 */ ItemList.Casing_HeatProof.set(new ItemStack(this, 1, 11));
-/* 49:44 */ ItemList.Casing_Coil_Cupronickel.set(new ItemStack(this, 1, 12));
-/* 50:45 */ ItemList.Casing_Coil_Kanthal.set(new ItemStack(this, 1, 13));
-/* 51:46 */ ItemList.Casing_Coil_Nichrome.set(new ItemStack(this, 1, 14));
-/* 52:47 */ ItemList.Casing_Coil_Superconductor.set(new ItemStack(this, 1, 15));
-/* 53: */ }
-/* 54: */
-/* 55: */ public IIcon getIcon(int aSide, int aMeta)
-/* 56: */ {
-/* 57:52 */ if ((aMeta >= 0) && (aMeta < 16))
-/* 58: */ {
-/* 59:53 */ switch (aMeta)
-/* 60: */ {
-/* 61: */ case 10:
-/* 62:54 */ return Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon();
-/* 63: */ case 11:
-/* 64:55 */ return Textures.BlockIcons.MACHINE_HEATPROOFCASING.getIcon();
-/* 65: */ case 12:
-/* 66:56 */ return Textures.BlockIcons.MACHINE_COIL_CUPRONICKEL.getIcon();
-/* 67: */ case 13:
-/* 68:57 */ return Textures.BlockIcons.MACHINE_COIL_KANTHAL.getIcon();
-/* 69: */ case 14:
-/* 70:58 */ return Textures.BlockIcons.MACHINE_COIL_NICHROME.getIcon();
-/* 71: */ case 15:
-/* 72:59 */ return Textures.BlockIcons.MACHINE_COIL_SUPERCONDUCTOR.getIcon();
-/* 73: */ }
-/* 74:61 */ if (aSide == 0) {
-/* 75:61 */ return Textures.BlockIcons.MACHINECASINGS_BOTTOM[aMeta].getIcon();
-/* 76: */ }
-/* 77:62 */ if (aSide == 1) {
-/* 78:62 */ return Textures.BlockIcons.MACHINECASINGS_TOP[aMeta].getIcon();
-/* 79: */ }
-/* 80:63 */ return Textures.BlockIcons.MACHINECASINGS_SIDE[aMeta].getIcon();
-/* 81: */ }
-/* 82:66 */ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
-/* 83: */ }
-/* 84: */
-/* 85: */ public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 86: */ {
-/* 87:71 */ return aWorld.getBlockMetadata(aX, aY, aZ) > 9 ? super.colorMultiplier(aWorld, aX, aY, aZ) : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2];
-/* 88: */ }
-/* 89: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.objects.GT_CopiedBlockTexture;
+import gregtech.api.util.GT_LanguageManager;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.IBlockAccess;
+
+public class GT_Block_Casings1
+ extends GT_Block_Casings_Abstract
+{
+ public GT_Block_Casings1()
+ {
+ super(GT_Item_Casings1.class, "gt.blockcasings", GT_Material_Casings.INSTANCE);
+ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
+ Textures.BlockIcons.CASING_BLOCKS[i] = new GT_CopiedBlockTexture(this, 6, i);
+ }
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "ULV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "LV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "MV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "HV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "EV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "IV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "LuV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "ZPM Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "UV Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "MAX Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Bronze Plated Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Heat Proof Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cupronickel Coil Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Kanthal Coil Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Nichrome Coil Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Superconducting Coil Block");
+ ItemList.Casing_ULV.set(new ItemStack(this, 1, 0));
+ ItemList.Casing_LV.set(new ItemStack(this, 1, 1));
+ ItemList.Casing_MV.set(new ItemStack(this, 1, 2));
+ ItemList.Casing_HV.set(new ItemStack(this, 1, 3));
+ ItemList.Casing_EV.set(new ItemStack(this, 1, 4));
+ ItemList.Casing_IV.set(new ItemStack(this, 1, 5));
+ ItemList.Casing_LuV.set(new ItemStack(this, 1, 6));
+ ItemList.Casing_ZPM.set(new ItemStack(this, 1, 7));
+ ItemList.Casing_UV.set(new ItemStack(this, 1, 8));
+ ItemList.Casing_MAX.set(new ItemStack(this, 1, 9));
+ ItemList.Casing_BronzePlatedBricks.set(new ItemStack(this, 1, 10));
+ ItemList.Casing_HeatProof.set(new ItemStack(this, 1, 11));
+ ItemList.Casing_Coil_Cupronickel.set(new ItemStack(this, 1, 12));
+ ItemList.Casing_Coil_Kanthal.set(new ItemStack(this, 1, 13));
+ ItemList.Casing_Coil_Nichrome.set(new ItemStack(this, 1, 14));
+ ItemList.Casing_Coil_Superconductor.set(new ItemStack(this, 1, 15));
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ if ((aMeta >= 0) && (aMeta < 16))
+ {
+ switch (aMeta)
+ {
+ case 10:
+ return Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon();
+ case 11:
+ return Textures.BlockIcons.MACHINE_HEATPROOFCASING.getIcon();
+ case 12:
+ return Textures.BlockIcons.MACHINE_COIL_CUPRONICKEL.getIcon();
+ case 13:
+ return Textures.BlockIcons.MACHINE_COIL_KANTHAL.getIcon();
+ case 14:
+ return Textures.BlockIcons.MACHINE_COIL_NICHROME.getIcon();
+ case 15:
+ return Textures.BlockIcons.MACHINE_COIL_SUPERCONDUCTOR.getIcon();
+ }
+ if (aSide == 0) {
+ return Textures.BlockIcons.MACHINECASINGS_BOTTOM[aMeta].getIcon();
+ }
+ if (aSide == 1) {
+ return Textures.BlockIcons.MACHINECASINGS_TOP[aMeta].getIcon();
+ }
+ return Textures.BlockIcons.MACHINECASINGS_SIDE[aMeta].getIcon();
+ }
+ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ }
+
+ public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return aWorld.getBlockMetadata(aX, aY, aZ) > 9 ? super.colorMultiplier(aWorld, aX, aY, aZ) : gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2];
+ }
+}
/* 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/blocks/GT_Block_Casings2.java b/main/java/gregtech/common/blocks/GT_Block_Casings2.java index 88adea04b2..73d049be37 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Casings2.java +++ b/main/java/gregtech/common/blocks/GT_Block_Casings2.java @@ -1,105 +1,105 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ItemList;
+package gregtech.common.blocks;
+
+import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.objects.GT_CopiedBlockTexture;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import net.minecraft.block.Block;
-/* 8: */ import net.minecraft.entity.Entity;
-/* 9: */ import net.minecraft.init.Blocks;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.util.IIcon;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */
-/* 14: */ public class GT_Block_Casings2
-/* 15: */ extends GT_Block_Casings_Abstract
-/* 16: */ {
-/* 17: */ public GT_Block_Casings2()
-/* 18: */ {
-/* 19:15 */ super(GT_Item_Casings2.class, "gt.blockcasings2", GT_Material_Casings.INSTANCE);
-/* 20:16 */ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
-/* 21:16 */ Textures.BlockIcons.CASING_BLOCKS[(i + 16)] = new GT_CopiedBlockTexture(this, 6, i);
-/* 22: */ }
-/* 23:17 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Solid Steel Machine Casing");
-/* 24:18 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Frost Proof Machine Casing");
-/* 25:19 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Bronze Gear Box Casing");
-/* 26:20 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Steel Gear Box Casing");
-/* 27:21 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Titanium Gear Box Casing");
-/* 28:22 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Tungstensteel Gear Box Casing");
-/* 29:23 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Processor Machine Casing");
-/* 30:24 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Data Drive Machine Casing");
-/* 31:25 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Containment Field Machine Casing");
-/* 32:26 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Assembler Machine Casing");
-/* 33:27 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Pump Machine Casing");
-/* 34:28 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Motor Machine Casing");
-/* 35:29 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Bronze Pipe Machine Casing");
-/* 36:30 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Steel Pipe Machine Casing");
-/* 37:31 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Titanium Pipe Machine Casing");
-/* 38:32 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Tungstensteel Pipe Machine Casing");
-/* 39:33 */ ItemList.Casing_SolidSteel.set(new ItemStack(this, 1, 0));
-/* 40:34 */ ItemList.Casing_FrostProof.set(new ItemStack(this, 1, 1));
-/* 41:35 */ ItemList.Casing_Gearbox_Bronze.set(new ItemStack(this, 1, 2));
-/* 42:36 */ ItemList.Casing_Gearbox_Steel.set(new ItemStack(this, 1, 3));
-/* 43:37 */ ItemList.Casing_Gearbox_Titanium.set(new ItemStack(this, 1, 4));
-/* 44:38 */ ItemList.Casing_Gearbox_TungstenSteel.set(new ItemStack(this, 1, 5));
-/* 45:39 */ ItemList.Casing_Processor.set(new ItemStack(this, 1, 6));
-/* 46:40 */ ItemList.Casing_DataDrive.set(new ItemStack(this, 1, 7));
-/* 47:41 */ ItemList.Casing_ContainmentField.set(new ItemStack(this, 1, 8));
-/* 48:42 */ ItemList.Casing_Assembler.set(new ItemStack(this, 1, 9));
-/* 49:43 */ ItemList.Casing_Pump.set(new ItemStack(this, 1, 10));
-/* 50:44 */ ItemList.Casing_Motor.set(new ItemStack(this, 1, 11));
-/* 51:45 */ ItemList.Casing_Pipe_Bronze.set(new ItemStack(this, 1, 12));
-/* 52:46 */ ItemList.Casing_Pipe_Steel.set(new ItemStack(this, 1, 13));
-/* 53:47 */ ItemList.Casing_Pipe_Titanium.set(new ItemStack(this, 1, 14));
-/* 54:48 */ ItemList.Casing_Pipe_TungstenSteel.set(new ItemStack(this, 1, 15));
-/* 55: */ }
-/* 56: */
-/* 57: */ public IIcon getIcon(int aSide, int aMeta)
-/* 58: */ {
-/* 59:53 */ switch (aMeta)
-/* 60: */ {
-/* 61: */ case 0:
-/* 62:54 */ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
-/* 63: */ case 1:
-/* 64:55 */ return Textures.BlockIcons.MACHINE_CASING_FROST_PROOF.getIcon();
-/* 65: */ case 2:
-/* 66:56 */ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_BRONZE.getIcon();
-/* 67: */ case 3:
-/* 68:57 */ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_STEEL.getIcon();
-/* 69: */ case 4:
-/* 70:58 */ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_TITANIUM.getIcon();
-/* 71: */ case 5:
-/* 72:59 */ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_TUNGSTENSTEEL.getIcon();
-/* 73: */ case 6:
-/* 74:60 */ return Textures.BlockIcons.MACHINE_CASING_PROCESSOR.getIcon();
-/* 75: */ case 7:
-/* 76:61 */ return Textures.BlockIcons.MACHINE_CASING_DATA_DRIVE.getIcon();
-/* 77: */ case 8:
-/* 78:62 */ return Textures.BlockIcons.MACHINE_CASING_CONTAINMENT_FIELD.getIcon();
-/* 79: */ case 9:
-/* 80:63 */ return Textures.BlockIcons.MACHINE_CASING_ASSEMBLER.getIcon();
-/* 81: */ case 10:
-/* 82:64 */ return Textures.BlockIcons.MACHINE_CASING_PUMP.getIcon();
-/* 83: */ case 11:
-/* 84:65 */ return Textures.BlockIcons.MACHINE_CASING_MOTOR.getIcon();
-/* 85: */ case 12:
-/* 86:66 */ return Textures.BlockIcons.MACHINE_CASING_PIPE_BRONZE.getIcon();
-/* 87: */ case 13:
-/* 88:67 */ return Textures.BlockIcons.MACHINE_CASING_PIPE_STEEL.getIcon();
-/* 89: */ case 14:
-/* 90:68 */ return Textures.BlockIcons.MACHINE_CASING_PIPE_TITANIUM.getIcon();
-/* 91: */ case 15:
-/* 92:69 */ return Textures.BlockIcons.MACHINE_CASING_PIPE_TUNGSTENSTEEL.getIcon();
-/* 93: */ }
-/* 94:71 */ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
-/* 95: */ }
-/* 96: */
-/* 97: */ public float getExplosionResistance(Entity aTNT, World aWorld, int aX, int aY, int aZ, double eX, double eY, double eZ)
-/* 98: */ {
-/* 99:76 */ return aWorld.getBlockMetadata(aX, aY, aZ) == 8 ? Blocks.bedrock.getExplosionResistance(aTNT) : super.getExplosionResistance(aTNT, aWorld, aX, aY, aZ, eX, eY, eZ);
-/* :0: */ }
-/* :1: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.objects.GT_CopiedBlockTexture;
+import gregtech.api.util.GT_LanguageManager;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.World;
+
+public class GT_Block_Casings2
+ extends GT_Block_Casings_Abstract
+{
+ public GT_Block_Casings2()
+ {
+ super(GT_Item_Casings2.class, "gt.blockcasings2", GT_Material_Casings.INSTANCE);
+ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
+ Textures.BlockIcons.CASING_BLOCKS[(i + 16)] = new GT_CopiedBlockTexture(this, 6, i);
+ }
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Solid Steel Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Frost Proof Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Bronze Gear Box Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Steel Gear Box Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Titanium Gear Box Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Tungstensteel Gear Box Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Processor Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Data Drive Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Containment Field Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Assembler Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Pump Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Motor Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Bronze Pipe Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Steel Pipe Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Titanium Pipe Machine Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Tungstensteel Pipe Machine Casing");
+ ItemList.Casing_SolidSteel.set(new ItemStack(this, 1, 0));
+ ItemList.Casing_FrostProof.set(new ItemStack(this, 1, 1));
+ ItemList.Casing_Gearbox_Bronze.set(new ItemStack(this, 1, 2));
+ ItemList.Casing_Gearbox_Steel.set(new ItemStack(this, 1, 3));
+ ItemList.Casing_Gearbox_Titanium.set(new ItemStack(this, 1, 4));
+ ItemList.Casing_Gearbox_TungstenSteel.set(new ItemStack(this, 1, 5));
+ ItemList.Casing_Processor.set(new ItemStack(this, 1, 6));
+ ItemList.Casing_DataDrive.set(new ItemStack(this, 1, 7));
+ ItemList.Casing_ContainmentField.set(new ItemStack(this, 1, 8));
+ ItemList.Casing_Assembler.set(new ItemStack(this, 1, 9));
+ ItemList.Casing_Pump.set(new ItemStack(this, 1, 10));
+ ItemList.Casing_Motor.set(new ItemStack(this, 1, 11));
+ ItemList.Casing_Pipe_Bronze.set(new ItemStack(this, 1, 12));
+ ItemList.Casing_Pipe_Steel.set(new ItemStack(this, 1, 13));
+ ItemList.Casing_Pipe_Titanium.set(new ItemStack(this, 1, 14));
+ ItemList.Casing_Pipe_TungstenSteel.set(new ItemStack(this, 1, 15));
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ switch (aMeta)
+ {
+ case 0:
+ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ case 1:
+ return Textures.BlockIcons.MACHINE_CASING_FROST_PROOF.getIcon();
+ case 2:
+ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_BRONZE.getIcon();
+ case 3:
+ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_STEEL.getIcon();
+ case 4:
+ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_TITANIUM.getIcon();
+ case 5:
+ return Textures.BlockIcons.MACHINE_CASING_GEARBOX_TUNGSTENSTEEL.getIcon();
+ case 6:
+ return Textures.BlockIcons.MACHINE_CASING_PROCESSOR.getIcon();
+ case 7:
+ return Textures.BlockIcons.MACHINE_CASING_DATA_DRIVE.getIcon();
+ case 8:
+ return Textures.BlockIcons.MACHINE_CASING_CONTAINMENT_FIELD.getIcon();
+ case 9:
+ return Textures.BlockIcons.MACHINE_CASING_ASSEMBLER.getIcon();
+ case 10:
+ return Textures.BlockIcons.MACHINE_CASING_PUMP.getIcon();
+ case 11:
+ return Textures.BlockIcons.MACHINE_CASING_MOTOR.getIcon();
+ case 12:
+ return Textures.BlockIcons.MACHINE_CASING_PIPE_BRONZE.getIcon();
+ case 13:
+ return Textures.BlockIcons.MACHINE_CASING_PIPE_STEEL.getIcon();
+ case 14:
+ return Textures.BlockIcons.MACHINE_CASING_PIPE_TITANIUM.getIcon();
+ case 15:
+ return Textures.BlockIcons.MACHINE_CASING_PIPE_TUNGSTENSTEEL.getIcon();
+ }
+ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ }
+
+ public float getExplosionResistance(Entity aTNT, World aWorld, int aX, int aY, int aZ, double eX, double eY, double eZ)
+ {
+ return aWorld.getBlockMetadata(aX, aY, aZ) == 8 ? Blocks.bedrock.getExplosionResistance(aTNT) : super.getExplosionResistance(aTNT, aWorld, aX, aY, aZ, eX, eY, eZ);
+ }
+}
/* 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/blocks/GT_Block_Casings3.java b/main/java/gregtech/common/blocks/GT_Block_Casings3.java index 8e1a9b0342..30e46a8c45 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Casings3.java +++ b/main/java/gregtech/common/blocks/GT_Block_Casings3.java @@ -1,96 +1,96 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ItemList;
+package gregtech.common.blocks;
+
+import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.objects.GT_CopiedBlockTexture;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */ import net.minecraft.util.IIcon;
-/* 9: */
-/* 10: */ public class GT_Block_Casings3
-/* 11: */ extends GT_Block_Casings_Abstract
-/* 12: */ {
-/* 13: */ public GT_Block_Casings3()
-/* 14: */ {
-/* 15:12 */ super(GT_Item_Casings3.class, "gt.blockcasings3", GT_Material_Casings.INSTANCE);
-/* 16:13 */ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
-/* 17:13 */ Textures.BlockIcons.CASING_BLOCKS[(i + 32)] = new GT_CopiedBlockTexture(this, 6, i);
-/* 18: */ }
-/* 19:14 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Yellow Stripes Block");
-/* 20:15 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Yellow Stripes Block");
-/* 21:16 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Radioactive Hazard Sign Block");
-/* 22:17 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Bio Hazard Sign Block");
-/* 23:18 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Explosion Hazard Sign Block");
-/* 24:19 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Fire Hazard Sign Block");
-/* 25:20 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Acid Hazard Sign Block");
-/* 26:21 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Magic Hazard Sign Block");
-/* 27:22 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Frost Hazard Sign Block");
-/* 28:23 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Noise Hazard Sign Block");
-/* 29:24 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Grate Casing");
-/* 30:25 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Vent Casing");
-/* 31:26 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Radiation Proof Casing");
-/* 32:27 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Bronze Firebox Casing");
-/* 33:28 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Steel Firebox Casing");
-/* 34:29 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Tungstensteel Firebox Casing");
-/* 35:30 */ ItemList.Casing_Stripes_A.set(new ItemStack(this, 1, 0));
-/* 36:31 */ ItemList.Casing_Stripes_B.set(new ItemStack(this, 1, 1));
-/* 37:32 */ ItemList.Casing_RadioactiveHazard.set(new ItemStack(this, 1, 2));
-/* 38:33 */ ItemList.Casing_BioHazard.set(new ItemStack(this, 1, 3));
-/* 39:34 */ ItemList.Casing_ExplosionHazard.set(new ItemStack(this, 1, 4));
-/* 40:35 */ ItemList.Casing_FireHazard.set(new ItemStack(this, 1, 5));
-/* 41:36 */ ItemList.Casing_AcidHazard.set(new ItemStack(this, 1, 6));
-/* 42:37 */ ItemList.Casing_MagicHazard.set(new ItemStack(this, 1, 7));
-/* 43:38 */ ItemList.Casing_FrostHazard.set(new ItemStack(this, 1, 8));
-/* 44:39 */ ItemList.Casing_NoiseHazard.set(new ItemStack(this, 1, 9));
-/* 45:40 */ ItemList.Casing_Grate.set(new ItemStack(this, 1, 10));
-/* 46:41 */ ItemList.Casing_Vent.set(new ItemStack(this, 1, 11));
-/* 47:42 */ ItemList.Casing_RadiationProof.set(new ItemStack(this, 1, 12));
-/* 48:43 */ ItemList.Casing_Firebox_Bronze.set(new ItemStack(this, 1, 13));
-/* 49:44 */ ItemList.Casing_Firebox_Steel.set(new ItemStack(this, 1, 14));
-/* 50:45 */ ItemList.Casing_Firebox_TungstenSteel.set(new ItemStack(this, 1, 15));
-/* 51: */ }
-/* 52: */
-/* 53: */ public IIcon getIcon(int aSide, int aMeta)
-/* 54: */ {
-/* 55:50 */ switch (aMeta)
-/* 56: */ {
-/* 57: */ case 0:
-/* 58:51 */ return Textures.BlockIcons.MACHINE_CASING_STRIPES_A.getIcon();
-/* 59: */ case 1:
-/* 60:52 */ return Textures.BlockIcons.MACHINE_CASING_STRIPES_B.getIcon();
-/* 61: */ case 2:
-/* 62:53 */ return Textures.BlockIcons.MACHINE_CASING_RADIOACTIVEHAZARD.getIcon();
-/* 63: */ case 3:
-/* 64:54 */ return Textures.BlockIcons.MACHINE_CASING_BIOHAZARD.getIcon();
-/* 65: */ case 4:
-/* 66:55 */ return Textures.BlockIcons.MACHINE_CASING_EXPLOSIONHAZARD.getIcon();
-/* 67: */ case 5:
-/* 68:56 */ return Textures.BlockIcons.MACHINE_CASING_FIREHAZARD.getIcon();
-/* 69: */ case 6:
-/* 70:57 */ return Textures.BlockIcons.MACHINE_CASING_ACIDHAZARD.getIcon();
-/* 71: */ case 7:
-/* 72:58 */ return Textures.BlockIcons.MACHINE_CASING_MAGICHAZARD.getIcon();
-/* 73: */ case 8:
-/* 74:59 */ return Textures.BlockIcons.MACHINE_CASING_FROSTHAZARD.getIcon();
-/* 75: */ case 9:
-/* 76:60 */ return Textures.BlockIcons.MACHINE_CASING_NOISEHAZARD.getIcon();
-/* 77: */ case 10:
-/* 78:61 */ return Textures.BlockIcons.MACHINE_CASING_GRATE.getIcon();
-/* 79: */ case 11:
-/* 80:62 */ return Textures.BlockIcons.MACHINE_CASING_VENT.getIcon();
-/* 81: */ case 12:
-/* 82:63 */ return Textures.BlockIcons.MACHINE_CASING_RADIATIONPROOF.getIcon();
-/* 83: */ case 13:
-/* 84:64 */ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_BRONZE.getIcon() : Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon();
-/* 85: */ case 14:
-/* 86:65 */ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_STEEL.getIcon() : Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
-/* 87: */ case 15:
-/* 88:66 */ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TUNGSTENSTEEL.getIcon() : Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon();
-/* 89: */ }
-/* 90:68 */ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
-/* 91: */ }
-/* 92: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.objects.GT_CopiedBlockTexture;
+import gregtech.api.util.GT_LanguageManager;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+
+public class GT_Block_Casings3
+ extends GT_Block_Casings_Abstract
+{
+ public GT_Block_Casings3()
+ {
+ super(GT_Item_Casings3.class, "gt.blockcasings3", GT_Material_Casings.INSTANCE);
+ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
+ Textures.BlockIcons.CASING_BLOCKS[(i + 32)] = new GT_CopiedBlockTexture(this, 6, i);
+ }
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Yellow Stripes Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Yellow Stripes Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Radioactive Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Bio Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Explosion Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Fire Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Acid Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Magic Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Frost Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Noise Hazard Sign Block");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Grate Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Vent Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Radiation Proof Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Bronze Firebox Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Steel Firebox Casing");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Tungstensteel Firebox Casing");
+ ItemList.Casing_Stripes_A.set(new ItemStack(this, 1, 0));
+ ItemList.Casing_Stripes_B.set(new ItemStack(this, 1, 1));
+ ItemList.Casing_RadioactiveHazard.set(new ItemStack(this, 1, 2));
+ ItemList.Casing_BioHazard.set(new ItemStack(this, 1, 3));
+ ItemList.Casing_ExplosionHazard.set(new ItemStack(this, 1, 4));
+ ItemList.Casing_FireHazard.set(new ItemStack(this, 1, 5));
+ ItemList.Casing_AcidHazard.set(new ItemStack(this, 1, 6));
+ ItemList.Casing_MagicHazard.set(new ItemStack(this, 1, 7));
+ ItemList.Casing_FrostHazard.set(new ItemStack(this, 1, 8));
+ ItemList.Casing_NoiseHazard.set(new ItemStack(this, 1, 9));
+ ItemList.Casing_Grate.set(new ItemStack(this, 1, 10));
+ ItemList.Casing_Vent.set(new ItemStack(this, 1, 11));
+ ItemList.Casing_RadiationProof.set(new ItemStack(this, 1, 12));
+ ItemList.Casing_Firebox_Bronze.set(new ItemStack(this, 1, 13));
+ ItemList.Casing_Firebox_Steel.set(new ItemStack(this, 1, 14));
+ ItemList.Casing_Firebox_TungstenSteel.set(new ItemStack(this, 1, 15));
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ switch (aMeta)
+ {
+ case 0:
+ return Textures.BlockIcons.MACHINE_CASING_STRIPES_A.getIcon();
+ case 1:
+ return Textures.BlockIcons.MACHINE_CASING_STRIPES_B.getIcon();
+ case 2:
+ return Textures.BlockIcons.MACHINE_CASING_RADIOACTIVEHAZARD.getIcon();
+ case 3:
+ return Textures.BlockIcons.MACHINE_CASING_BIOHAZARD.getIcon();
+ case 4:
+ return Textures.BlockIcons.MACHINE_CASING_EXPLOSIONHAZARD.getIcon();
+ case 5:
+ return Textures.BlockIcons.MACHINE_CASING_FIREHAZARD.getIcon();
+ case 6:
+ return Textures.BlockIcons.MACHINE_CASING_ACIDHAZARD.getIcon();
+ case 7:
+ return Textures.BlockIcons.MACHINE_CASING_MAGICHAZARD.getIcon();
+ case 8:
+ return Textures.BlockIcons.MACHINE_CASING_FROSTHAZARD.getIcon();
+ case 9:
+ return Textures.BlockIcons.MACHINE_CASING_NOISEHAZARD.getIcon();
+ case 10:
+ return Textures.BlockIcons.MACHINE_CASING_GRATE.getIcon();
+ case 11:
+ return Textures.BlockIcons.MACHINE_CASING_VENT.getIcon();
+ case 12:
+ return Textures.BlockIcons.MACHINE_CASING_RADIATIONPROOF.getIcon();
+ case 13:
+ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_BRONZE.getIcon() : Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS.getIcon();
+ case 14:
+ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_STEEL.getIcon() : Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ case 15:
+ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TUNGSTENSTEEL.getIcon() : Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon();
+ }
+ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
+ }
+}
/* 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/blocks/GT_Block_Casings4.java b/main/java/gregtech/common/blocks/GT_Block_Casings4.java index 12a470dc50..a0a3221d28 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Casings4.java +++ b/main/java/gregtech/common/blocks/GT_Block_Casings4.java @@ -1,91 +1,91 @@ -/* 1: */ package gregtech.common.blocks; -/* 2: */ -/* 3: */ import cpw.mods.fml.relauncher.Side; +package gregtech.common.blocks; + +import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import gregtech.api.enums.ItemList; import gregtech.api.enums.Textures; -/* 4: */ import gregtech.api.enums.Textures.BlockIcons; +import gregtech.api.enums.Textures.BlockIcons; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 5: */ import gregtech.api.objects.GT_CopiedBlockTexture; -/* 6: */ import gregtech.api.util.GT_LanguageManager; +import gregtech.api.objects.GT_CopiedBlockTexture; +import gregtech.api.util.GT_LanguageManager; import gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeTurbine; -/* 7: */ import net.minecraft.item.ItemStack; +import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; -/* 8: */ import net.minecraft.util.IIcon; +import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; -/* 9: */ -/* 10: */ public class GT_Block_Casings4 -/* 11: */ extends GT_Block_Casings_Abstract -/* 12: */ { + +public class GT_Block_Casings4 + extends GT_Block_Casings_Abstract +{ public static boolean mConnectedMachineTextures = true; -/* 13: */ public GT_Block_Casings4() -/* 14: */ { -/* 15:12 */ super(GT_Item_Casings4.class, "gt.blockcasings4", GT_Material_Casings.INSTANCE); -/* 16:13 */ for (byte i = 0; i < 16; i = (byte)(i + 1)) { -/* 17:13 */ Textures.BlockIcons.CASING_BLOCKS[(i + 48)] = new GT_CopiedBlockTexture(this, 6, i); -/* 18: */ } -/* 19:14 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Robust Tungstensteel Casing"); -/* 20:15 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Clean Stainless Steel Casing"); -/* 21:16 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Stable Titanium Casing"); -/* 22:17 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Titanium Firebox Casing"); -///* 23: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Fusion Casing"); -///* 23: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Fusion Casing"); -/* 23: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Fusion Casing"); -/* 23: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Fusion Coil"); -/* 24: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Fusion Casing MK II"); -/* 25: */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Turbine Casing"); -/* 25: */ -/* 35:30 */ ItemList.Casing_RobustTungstenSteel.set(new ItemStack(this, 1, 0)); -/* 36:31 */ ItemList.Casing_CleanStainlessSteel.set(new ItemStack(this, 1, 1)); -/* 37:32 */ ItemList.Casing_StableTitanium.set(new ItemStack(this, 1, 2)); -/* 38:33 */ ItemList.Casing_Firebox_Titanium.set(new ItemStack(this, 1, 3)); + public GT_Block_Casings4() + { + super(GT_Item_Casings4.class, "gt.blockcasings4", GT_Material_Casings.INSTANCE); + for (byte i = 0; i < 16; i = (byte)(i + 1)) { + Textures.BlockIcons.CASING_BLOCKS[(i + 48)] = new GT_CopiedBlockTexture(this, 6, i); + } + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Robust Tungstensteel Casing"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Clean Stainless Steel Casing"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Stable Titanium Casing"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Titanium Firebox Casing"); +// GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Fusion Casing"); +// GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Fusion Casing"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Fusion Casing"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Fusion Coil"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Fusion Casing MK II"); + GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Turbine Casing"); + + ItemList.Casing_RobustTungstenSteel.set(new ItemStack(this, 1, 0)); + ItemList.Casing_CleanStainlessSteel.set(new ItemStack(this, 1, 1)); + ItemList.Casing_StableTitanium.set(new ItemStack(this, 1, 2)); + ItemList.Casing_Firebox_Titanium.set(new ItemStack(this, 1, 3)); ItemList.Casing_Fusion.set(new ItemStack(this,1,6)); ItemList.Casing_Fusion_Coil.set(new ItemStack(this,1,7)); ItemList.Casing_Fusion2.set(new ItemStack(this,1,8)); ItemList.Casing_Turbine.set(new ItemStack(this,1,9)); -/* 39: */ } -/* 40: */ -/* 41: */ public IIcon getIcon(int aSide, int aMeta) -/* 42: */ { -/* 43:50 */ switch (aMeta) -/* 44: */ { -/* 45: */ case 0: -/* 46:51 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 47: */ case 1: -/* 48:52 */ return Textures.BlockIcons.MACHINE_CASING_CLEAN_STAINLESSSTEEL.getIcon(); -/* 49: */ case 2: -/* 50:53 */ return Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); -/* 51: */ case 3: -/* 52:54 */ return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TITANIUM.getIcon() : Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); -/* 53: */ case 4: -/* 54:55 */ return Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW.getIcon(); -/* 55: */ case 5: -/* 56:56 */ return Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS.getIcon(); -/* 57: */ case 6: -/* 58:57 */ return Textures.BlockIcons.MACHINE_CASING_FUSION.getIcon(); -/* 59: */ case 7: -/* 60:58 */ return Textures.BlockIcons.MACHINE_CASING_FUSION_COIL.getIcon(); -/* 61: */ case 8: -/* 62:59 */ return Textures.BlockIcons.MACHINE_CASING_FUSION_2.getIcon(); -/* 63: */ case 9: -/* 64:60 */ return Textures.BlockIcons.MACHINE_CASING_TURBINE.getIcon(); -/* 65: */ case 10: -/* 66:61 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 67: */ case 11: -/* 68:62 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 69: */ case 12: -/* 70:63 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 71: */ case 13: -/* 72:64 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 73: */ case 14: -/* 74:65 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 75: */ case 15: -/* 76:66 */ return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); -/* 77: */ } -/* 78:68 */ return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon(); -/* 79: */ } + } + + public IIcon getIcon(int aSide, int aMeta) + { + switch (aMeta) + { + case 0: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 1: + return Textures.BlockIcons.MACHINE_CASING_CLEAN_STAINLESSSTEEL.getIcon(); + case 2: + return Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); + case 3: + return aSide > 1 ? Textures.BlockIcons.MACHINE_CASING_FIREBOX_TITANIUM.getIcon() : Textures.BlockIcons.MACHINE_CASING_STABLE_TITANIUM.getIcon(); + case 4: + return Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW.getIcon(); + case 5: + return Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS.getIcon(); + case 6: + return Textures.BlockIcons.MACHINE_CASING_FUSION.getIcon(); + case 7: + return Textures.BlockIcons.MACHINE_CASING_FUSION_COIL.getIcon(); + case 8: + return Textures.BlockIcons.MACHINE_CASING_FUSION_2.getIcon(); + case 9: + return Textures.BlockIcons.MACHINE_CASING_TURBINE.getIcon(); + case 10: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 11: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 12: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 13: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 14: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + case 15: + return Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL.getIcon(); + } + return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon(); + } @SideOnly(Side.CLIENT) public IIcon getIcon(IBlockAccess aWorld, int xCoord, int yCoord, int zCoord, int aSide) diff --git a/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java b/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java index e34cd45d50..fa04e49024 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java +++ b/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java @@ -1,143 +1,143 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.GregTech_API;
-/* 6: */ import gregtech.api.items.GT_Generic_Block;
-/* 7: */ import gregtech.api.util.GT_LanguageManager;
-/* 8: */ import java.util.List;
-/* 9: */ import java.util.Random;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.block.material.Material;
-/* 12: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 13: */ import net.minecraft.creativetab.CreativeTabs;
-/* 14: */ import net.minecraft.entity.Entity;
-/* 15: */ import net.minecraft.entity.EnumCreatureType;
-/* 16: */ import net.minecraft.init.Blocks;
-/* 17: */ import net.minecraft.item.Item;
-/* 18: */ import net.minecraft.item.ItemBlock;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.util.StatCollector;
-/* 21: */ import net.minecraft.world.IBlockAccess;
-/* 22: */ import net.minecraft.world.World;
-/* 23: */
-/* 24: */ public abstract class GT_Block_Casings_Abstract
-/* 25: */ extends GT_Generic_Block
-/* 26: */ {
-/* 27: */ public GT_Block_Casings_Abstract(Class<? extends ItemBlock> aItemClass, String aName, Material aMaterial)
-/* 28: */ {
-/* 29: 29 */ super(aItemClass, aName, aMaterial);
-/* 30: 30 */ setStepSound(soundTypeMetal);
-/* 31: 31 */ setCreativeTab(GregTech_API.TAB_GREGTECH);
-/* 32: 32 */ GregTech_API.registerMachineBlock(this, -1);
-/* 33: 33 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + 32767 + ".name", "Any Sub Block of this");
-/* 34: */ }
-/* 35: */
-/* 36: */ public String getHarvestTool(int aMeta)
-/* 37: */ {
-/* 38: 38 */ return "wrench";
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getHarvestLevel(int aMeta)
-/* 42: */ {
-/* 43: 43 */ return 2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 47: */ {
-/* 48: 48 */ return Blocks.iron_block.getBlockHardness(aWorld, aX, aY, aZ);
-/* 49: */ }
-/* 50: */
-/* 51: */ public float getExplosionResistance(Entity aTNT)
-/* 52: */ {
-/* 53: 53 */ return Blocks.iron_block.getExplosionResistance(aTNT);
-/* 54: */ }
-/* 55: */
-/* 56: */ protected boolean canSilkHarvest()
-/* 57: */ {
-/* 58: 58 */ return false;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void onBlockAdded(World aWorld, int aX, int aY, int aZ)
-/* 62: */ {
-/* 63: 61 */ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
-/* 64: 61 */ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
-/* 65: */ }
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getUnlocalizedName()
-/* 69: */ {
-/* 70: 62 */ return this.mUnlocalizedName;
-/* 71: */ }
-/* 72: */
-/* 73: */ public String getLocalizedName()
-/* 74: */ {
-/* 75: 63 */ return StatCollector.translateToLocal(this.mUnlocalizedName + ".name");
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 79: */ {
-/* 80: 64 */ return false;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 84: */ {
-/* 85: 65 */ return true;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean renderAsNormalBlock()
-/* 89: */ {
-/* 90: 66 */ return true;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean isOpaqueCube()
-/* 94: */ {
-/* 95: 67 */ return true;
-/* 96: */ }
-/* 97: */
-/* 98: */ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData)
-/* 99: */ {
-/* 100: 71 */ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
-/* 101: 71 */ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
-/* 102: */ }
-/* 103: */ }
-/* 104: */
-/* 105: */ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z)
-/* 106: */ {
-/* 107: 76 */ return false;
-/* 108: */ }
-/* 109: */
-/* 110: */ public int damageDropped(int par1)
-/* 111: */ {
-/* 112: 81 */ return par1;
-/* 113: */ }
-/* 114: */
-/* 115: */ public int getDamageValue(World par1World, int par2, int par3, int par4)
-/* 116: */ {
-/* 117: 86 */ return par1World.getBlockMetadata(par2, par3, par4);
-/* 118: */ }
-/* 119: */
-/* 120: */ public int quantityDropped(Random par1Random)
-/* 121: */ {
-/* 122: 91 */ return 1;
-/* 123: */ }
-/* 124: */
-/* 125: */ public Item getItemDropped(int par1, Random par2Random, int par3)
-/* 126: */ {
-/* 127: 96 */ return Item.getItemFromBlock(this);
-/* 128: */ }
-/* 129: */
-/* 130: */ @SideOnly(Side.CLIENT)
-/* 131: */ public void registerBlockIcons(IIconRegister aIconRegister) {}
-/* 132: */
-/* 133: */ @SideOnly(Side.CLIENT)
-/* 134: */ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList)
-/* 135: */ {
-/* 136:107 */ for (int i = 0; i < 16; i++) {
-/* 137:107 */ aList.add(new ItemStack(aItem, 1, i));
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
+package gregtech.common.blocks;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_Generic_Block;
+import gregtech.api.util.GT_LanguageManager;
+import java.util.List;
+import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EnumCreatureType;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public abstract class GT_Block_Casings_Abstract
+ extends GT_Generic_Block
+{
+ public GT_Block_Casings_Abstract(Class<? extends ItemBlock> aItemClass, String aName, Material aMaterial)
+ {
+ super(aItemClass, aName, aMaterial);
+ setStepSound(soundTypeMetal);
+ setCreativeTab(GregTech_API.TAB_GREGTECH);
+ GregTech_API.registerMachineBlock(this, -1);
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + 32767 + ".name", "Any Sub Block of this");
+ }
+
+ public String getHarvestTool(int aMeta)
+ {
+ return "wrench";
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return 2;
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return Blocks.iron_block.getBlockHardness(aWorld, aX, aY, aZ);
+ }
+
+ public float getExplosionResistance(Entity aTNT)
+ {
+ return Blocks.iron_block.getExplosionResistance(aTNT);
+ }
+
+ protected boolean canSilkHarvest()
+ {
+ return false;
+ }
+
+ public void onBlockAdded(World aWorld, int aX, int aY, int aZ)
+ {
+ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ }
+ }
+
+ public String getUnlocalizedName()
+ {
+ return this.mUnlocalizedName;
+ }
+
+ public String getLocalizedName()
+ {
+ return StatCollector.translateToLocal(this.mUnlocalizedName + ".name");
+ }
+
+ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return true;
+ }
+
+ public boolean renderAsNormalBlock()
+ {
+ return true;
+ }
+
+ public boolean isOpaqueCube()
+ {
+ return true;
+ }
+
+ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData)
+ {
+ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ }
+ }
+
+ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z)
+ {
+ return false;
+ }
+
+ public int damageDropped(int par1)
+ {
+ return par1;
+ }
+
+ public int getDamageValue(World par1World, int par2, int par3, int par4)
+ {
+ return par1World.getBlockMetadata(par2, par3, par4);
+ }
+
+ public int quantityDropped(Random par1Random)
+ {
+ return 1;
+ }
+
+ public Item getItemDropped(int par1, Random par2Random, int par3)
+ {
+ return Item.getItemFromBlock(this);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerBlockIcons(IIconRegister aIconRegister) {}
+
+ @SideOnly(Side.CLIENT)
+ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList)
+ {
+ for (int i = 0; i < 16; i++) {
+ aList.add(new ItemStack(aItem, 1, i));
+ }
+ }
+}
/* 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/blocks/GT_Block_Concretes.java b/main/java/gregtech/common/blocks/GT_Block_Concretes.java index 54c762f49a..d312719bc3 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Concretes.java +++ b/main/java/gregtech/common/blocks/GT_Block_Concretes.java @@ -1,107 +1,107 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.block.BlockLiquid;
-/* 10: */ import net.minecraft.entity.Entity;
-/* 11: */ import net.minecraft.entity.EntityLivingBase;
-/* 12: */ import net.minecraft.init.Blocks;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.util.AxisAlignedBB;
-/* 15: */ import net.minecraft.util.IIcon;
-/* 16: */ import net.minecraft.world.World;
-/* 17: */ import net.minecraftforge.fluids.IFluidBlock;
-/* 18: */
-/* 19: */ public class GT_Block_Concretes
-/* 20: */ extends GT_Block_Stones_Abstract
-/* 21: */ {
-/* 22: */ public GT_Block_Concretes()
-/* 23: */ {
-/* 24:21 */ super(GT_Item_Concretes.class, "gt.blockconcretes");
-/* 25:22 */ setResistance(20.0F);
-/* 26:23 */ this.slipperiness = 0.9F;
-/* 27:24 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Dark Concrete");
-/* 28:25 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Dark Concrete Cobblestone");
-/* 29:26 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Mossy Dark Concrete Cobblestone");
-/* 30:27 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Dark Concrete Bricks");
-/* 31:28 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Cracked Dark Concrete Bricks");
-/* 32:29 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Mossy Dark Concrete Bricks");
-/* 33:30 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Chiseled Dark Concrete");
-/* 34:31 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Smooth Dark Concrete");
-/* 35:32 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Light Concrete");
-/* 36:33 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Light Concrete Cobblestone");
-/* 37:34 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Mossy Light Concrete Cobblestone");
-/* 38:35 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Light Concrete Bricks");
-/* 39:36 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cracked Light Concrete Bricks");
-/* 40:37 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Mossy Light Concrete Bricks");
-/* 41:38 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Light Concrete");
-/* 42:39 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Light Concrete");
-/* 43:40 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 0));
-/* 44:41 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 1));
-/* 45:42 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 2));
-/* 46:43 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 3));
-/* 47:44 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 4));
-/* 48:45 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 5));
-/* 49:46 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 6));
-/* 50:47 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 7));
-/* 51:48 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 8));
-/* 52:49 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 9));
-/* 53:50 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 10));
-/* 54:51 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 11));
-/* 55:52 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 12));
-/* 56:53 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 13));
-/* 57:54 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 14));
-/* 58:55 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 15));
-/* 59: */ }
-/* 60: */
-/* 61: */ public int getHarvestLevel(int aMeta)
-/* 62: */ {
-/* 63:60 */ return 1;
-/* 64: */ }
-/* 65: */
-/* 66: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 67: */ {
-/* 68:65 */ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ);
-/* 69: */ }
-/* 70: */
-/* 71: */ public IIcon getIcon(int aSide, int aMeta)
-/* 72: */ {
-/* 73:68 */ if ((aMeta >= 0) && (aMeta < 16)) {
-/* 74:68 */ return gregtech.api.enums.Textures.BlockIcons.CONCRETES[aMeta].getIcon();
-/* 75: */ }
-/* 76:68 */ return gregtech.api.enums.Textures.BlockIcons.CONCRETES[0].getIcon();
-/* 77: */ }
-/* 78: */
-/* 79: */ public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity aEntity)
-/* 80: */ {
-/* 81:72 */ Block tBlock = aWorld.getBlock(aX, aY + 1, aZ);
-/* 82:73 */ if (((aEntity instanceof EntityLivingBase)) && (!(tBlock instanceof IFluidBlock)) && (!(tBlock instanceof BlockLiquid)) && (aEntity.onGround) && (!aEntity.isInWater()) && (!aEntity.isWet())) {
-/* 83:74 */ if (aEntity.isSneaking())
-/* 84: */ {
-/* 85:75 */ aEntity.motionX *= 0.8999999761581421D;
-/* 86:76 */ aEntity.motionZ *= 0.8999999761581421D;
-/* 87: */ }
-/* 88: */ else
-/* 89: */ {
-/* 90:78 */ aEntity.motionX *= 1.100000023841858D;
-/* 91:79 */ aEntity.motionZ *= 1.100000023841858D;
-/* 92: */ }
-/* 93: */ }
-/* 94: */ }
-/* 95: */
-/* 96: */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ)
-/* 97: */ {
-/* 98:86 */ Block tBlock = aWorld.getBlock(aX, aY + 1, aZ);
-/* 99:87 */ if (((tBlock instanceof IFluidBlock)) || ((tBlock instanceof BlockLiquid))) {
-/* :0:87 */ return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
-/* :1: */ }
-/* :2:88 */ return AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + 1, aY + 0.875D, aZ + 1);
-/* :3: */ }
-/* :4: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_OreDictUnificator;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockLiquid;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.World;
+import net.minecraftforge.fluids.IFluidBlock;
+
+public class GT_Block_Concretes
+ extends GT_Block_Stones_Abstract
+{
+ public GT_Block_Concretes()
+ {
+ super(GT_Item_Concretes.class, "gt.blockconcretes");
+ setResistance(20.0F);
+ this.slipperiness = 0.9F;
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Dark Concrete");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Dark Concrete Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Mossy Dark Concrete Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Dark Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Cracked Dark Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Mossy Dark Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Chiseled Dark Concrete");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Smooth Dark Concrete");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Light Concrete");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Light Concrete Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Mossy Light Concrete Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Light Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cracked Light Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Mossy Light Concrete Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Light Concrete");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Light Concrete");
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 0));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 1));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 2));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 3));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 4));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 5));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 6));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 7));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 8));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 9));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 10));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 11));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 12));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 13));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 14));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.Concrete, new ItemStack(this, 1, 15));
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return 1;
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ);
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ if ((aMeta >= 0) && (aMeta < 16)) {
+ return gregtech.api.enums.Textures.BlockIcons.CONCRETES[aMeta].getIcon();
+ }
+ return gregtech.api.enums.Textures.BlockIcons.CONCRETES[0].getIcon();
+ }
+
+ public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity aEntity)
+ {
+ Block tBlock = aWorld.getBlock(aX, aY + 1, aZ);
+ if (((aEntity instanceof EntityLivingBase)) && (!(tBlock instanceof IFluidBlock)) && (!(tBlock instanceof BlockLiquid)) && (aEntity.onGround) && (!aEntity.isInWater()) && (!aEntity.isWet())) {
+ if (aEntity.isSneaking())
+ {
+ aEntity.motionX *= 0.8999999761581421D;
+ aEntity.motionZ *= 0.8999999761581421D;
+ }
+ else
+ {
+ aEntity.motionX *= 1.100000023841858D;
+ aEntity.motionZ *= 1.100000023841858D;
+ }
+ }
+ }
+
+ public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ)
+ {
+ Block tBlock = aWorld.getBlock(aX, aY + 1, aZ);
+ if (((tBlock instanceof IFluidBlock)) || ((tBlock instanceof BlockLiquid))) {
+ return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
+ }
+ return AxisAlignedBB.getBoundingBox(aX, aY, aZ, aX + 1, aY + 0.875D, aZ + 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/blocks/GT_Block_Granites.java b/main/java/gregtech/common/blocks/GT_Block_Granites.java index a952e3631a..379fb0003b 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Granites.java +++ b/main/java/gregtech/common/blocks/GT_Block_Granites.java @@ -1,83 +1,83 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.entity.Entity;
-/* 10: */ import net.minecraft.entity.boss.EntityWither;
-/* 11: */ import net.minecraft.init.Blocks;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.util.IIcon;
-/* 14: */ import net.minecraft.world.IBlockAccess;
-/* 15: */ import net.minecraft.world.World;
-/* 16: */
-/* 17: */ public class GT_Block_Granites
-/* 18: */ extends GT_Block_Stones_Abstract
-/* 19: */ {
-/* 20: */ public GT_Block_Granites()
-/* 21: */ {
-/* 22:18 */ super(GT_Item_Granites.class, "gt.blockgranites");
-/* 23:19 */ setResistance(60.0F);
-/* 24:20 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Black Granite");
-/* 25:21 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Black Granite Cobblestone");
-/* 26:22 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Mossy Black Granite Cobblestone");
-/* 27:23 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Black Granite Bricks");
-/* 28:24 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Cracked Black Granite Bricks");
-/* 29:25 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Mossy Black Granite Bricks");
-/* 30:26 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Chiseled Black Granite");
-/* 31:27 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Smooth Black Granite");
-/* 32:28 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Red Granite");
-/* 33:29 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Red Granite Cobblestone");
-/* 34:30 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Mossy Red Granite Cobblestone");
-/* 35:31 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Red Granite Bricks");
-/* 36:32 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cracked Red Granite Bricks");
-/* 37:33 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Mossy Red Granite Bricks");
-/* 38:34 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Red Granite");
-/* 39:35 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Red Granite");
-/* 40:36 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 0));
-/* 41:37 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 1));
-/* 42:38 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 2));
-/* 43:39 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 3));
-/* 44:40 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 4));
-/* 45:41 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 5));
-/* 46:42 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 6));
-/* 47:43 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 7));
-/* 48:44 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 8));
-/* 49:45 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 9));
-/* 50:46 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 10));
-/* 51:47 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 11));
-/* 52:48 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 12));
-/* 53:49 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 13));
-/* 54:50 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 14));
-/* 55:51 */ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 15));
-/* 56: */ }
-/* 57: */
-/* 58: */ public int getHarvestLevel(int aMeta)
-/* 59: */ {
-/* 60:56 */ return 3;
-/* 61: */ }
-/* 62: */
-/* 63: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 64: */ {
-/* 65:61 */ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ) * 3.0F;
-/* 66: */ }
-/* 67: */
-/* 68: */ public IIcon getIcon(int aSide, int aMeta)
-/* 69: */ {
-/* 70:64 */ if ((aMeta >= 0) && (aMeta < 16)) {
-/* 71:64 */ return gregtech.api.enums.Textures.BlockIcons.GRANITES[aMeta].getIcon();
-/* 72: */ }
-/* 73:64 */ return gregtech.api.enums.Textures.BlockIcons.GRANITES[0].getIcon();
-/* 74: */ }
-/* 75: */
-/* 76: */ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
-/* 77: */ {
-/* 78:68 */ return !(entity instanceof EntityWither);
-/* 79: */ }
-/* 80: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_OreDictUnificator;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.boss.EntityWither;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class GT_Block_Granites
+ extends GT_Block_Stones_Abstract
+{
+ public GT_Block_Granites()
+ {
+ super(GT_Item_Granites.class, "gt.blockgranites");
+ setResistance(60.0F);
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Black Granite");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Black Granite Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Mossy Black Granite Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Black Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "Cracked Black Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Mossy Black Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Chiseled Black Granite");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".7.name", "Smooth Black Granite");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".8.name", "Red Granite");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".9.name", "Red Granite Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".10.name", "Mossy Red Granite Cobblestone");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".11.name", "Red Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".12.name", "Cracked Red Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".13.name", "Mossy Red Granite Bricks");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".14.name", "Chiseled Red Granite");
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".15.name", "Smooth Red Granite");
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 0));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 1));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 2));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 3));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 4));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 5));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 6));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteBlack, new ItemStack(this, 1, 7));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 8));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 9));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 10));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 11));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 12));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 13));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 14));
+ GT_OreDictUnificator.registerOre(OrePrefixes.stone, Materials.GraniteRed, new ItemStack(this, 1, 15));
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return 3;
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ) * 3.0F;
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ if ((aMeta >= 0) && (aMeta < 16)) {
+ return gregtech.api.enums.Textures.BlockIcons.GRANITES[aMeta].getIcon();
+ }
+ return gregtech.api.enums.Textures.BlockIcons.GRANITES[0].getIcon();
+ }
+
+ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
+ {
+ return !(entity instanceof EntityWither);
+ }
+}
/* 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/blocks/GT_Block_Machines.java b/main/java/gregtech/common/blocks/GT_Block_Machines.java index d4bf198851..3943331295 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Machines.java +++ b/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -1,577 +1,577 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.GregTech_API;
+package gregtech.common.blocks;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 7: */ import gregtech.api.interfaces.IDebugableBlock;
-/* 8: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 9: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 10: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 11: */ import gregtech.api.items.GT_Generic_Block;
-/* 12: */ import gregtech.api.metatileentity.BaseMetaPipeEntity;
-/* 13: */ import gregtech.api.metatileentity.BaseMetaTileEntity;
-/* 14: */ import gregtech.api.metatileentity.BaseTileEntity;
-/* 15: */ import gregtech.api.util.GT_BaseCrop;
-/* 16: */ import gregtech.api.util.GT_Log;
-/* 17: */ import gregtech.api.util.GT_Utility;
-/* 18: */ import gregtech.common.render.GT_Renderer_Block;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.IDebugableBlock;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.items.GT_Generic_Block;
+import gregtech.api.metatileentity.BaseMetaPipeEntity;
+import gregtech.api.metatileentity.BaseMetaTileEntity;
+import gregtech.api.metatileentity.BaseTileEntity;
+import gregtech.api.util.GT_BaseCrop;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.render.GT_Renderer_Block;
+
+import java.io.PrintStream;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
-/* 19: */ import java.io.PrintStream;
-/* 20: */ import java.util.ArrayList;
-/* 21: */ import java.util.List;
-/* 22: */ import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.block.ITileEntityProvider;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.EnumCreatureType;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.Explosion;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 23: */ import net.minecraft.block.Block;
-/* 24: */ import net.minecraft.block.ITileEntityProvider;
-/* 25: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 26: */ import net.minecraft.creativetab.CreativeTabs;
-/* 27: */ import net.minecraft.entity.Entity;
-/* 28: */ import net.minecraft.entity.EntityLivingBase;
-/* 29: */ import net.minecraft.entity.EnumCreatureType;
-/* 30: */ import net.minecraft.entity.item.EntityItem;
-/* 31: */ import net.minecraft.entity.player.EntityPlayer;
-/* 32: */ import net.minecraft.item.Item;
-/* 33: */ import net.minecraft.item.ItemStack;
-/* 34: */ import net.minecraft.nbt.NBTTagCompound;
-/* 35: */ import net.minecraft.tileentity.TileEntity;
-/* 36: */ import net.minecraft.util.AxisAlignedBB;
-/* 37: */ import net.minecraft.util.IIcon;
-/* 38: */ import net.minecraft.util.MathHelper;
-/* 39: */ import net.minecraft.util.StatCollector;
-/* 40: */ import net.minecraft.world.Explosion;
-/* 41: */ import net.minecraft.world.IBlockAccess;
-/* 42: */ import net.minecraft.world.World;
-/* 43: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 44: */
-/* 45: */ public class GT_Block_Machines
-/* 46: */ extends GT_Generic_Block
-/* 47: */ implements IDebugableBlock, ITileEntityProvider
-/* 48: */ {
-/* 49: 47 */ public static ThreadLocal<IGregTechTileEntity> mTemporaryTileEntity = new ThreadLocal();
-/* 50: */
-/* 51: */ public GT_Block_Machines()
-/* 52: */ {
-/* 53: 50 */ super(GT_Item_Machines.class, "gt.blockmachines", new GT_Material_Machines());
-/* 54: 51 */ GregTech_API.registerMachineBlock(this, -1);
-/* 55: 52 */ setHardness(1.0F);
-/* 56: 53 */ setResistance(10.0F);
-/* 57: 54 */ setStepSound(soundTypeMetal);
-/* 58: 55 */ setCreativeTab(GregTech_API.TAB_GREGTECH);
-/* 59: 56 */ this.isBlockContainer = true;
-/* 60: */ }
-/* 61: */
-/* 62: */ public String getHarvestTool(int aMeta)
-/* 63: */ {
-/* 64: 61 */ switch (aMeta / 4)
-/* 65: */ {
-/* 66: */ case 0:
-/* 67: 62 */ return "wrench";
-/* 68: */ case 1:
-/* 69: 63 */ return "wrench";
-/* 70: */ case 2:
-/* 71: 64 */ return "cutter";
-/* 72: */ case 3:
-/* 73: 65 */ return "axe";
-/* 74: */ }
-/* 75: 66 */ return "wrench";
-/* 76: */ }
-/* 77: */
-/* 78: */ public int getHarvestLevel(int aMeta)
-/* 79: */ {
-/* 80: 72 */ return aMeta % 4;
-/* 81: */ }
-/* 82: */
-/* 83: */ protected boolean canSilkHarvest()
-/* 84: */ {
-/* 85: 77 */ return false;
-/* 86: */ }
-/* 87: */
-/* 88: */ public void onNeighborChange(IBlockAccess aWorld, int aX, int aY, int aZ, int aTileX, int aTileY, int aTileZ)
-/* 89: */ {
-/* 90: 80 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 91: 80 */ if ((tTileEntity instanceof BaseTileEntity)) {
-/* 92: 80 */ ((BaseTileEntity)tTileEntity).onAdjacentBlockChange(aTileX, aTileY, aTileZ);
-/* 93: */ }
-/* 94: */ }
-/* 95: */
-/* 96: */ public void onBlockAdded(World aWorld, int aX, int aY, int aZ)
-/* 97: */ {
-/* 98: 81 */ super.onBlockAdded(aWorld, aX, aY, aZ);
-/* 99: 81 */ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
-/* 100: 81 */ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
-/* 101: */ }
-/* 102: */ }
-/* 103: */
-/* 104: */ public String getUnlocalizedName()
-/* 105: */ {
-/* 106: 82 */ return "gt.blockmachines";
-/* 107: */ }
-/* 108: */
-/* 109: */ public String getLocalizedName()
-/* 110: */ {
-/* 111: 83 */ return StatCollector.translateToLocal(getUnlocalizedName() + ".name");
-/* 112: */ }
-/* 113: */
-/* 114: */ public int getFlammability(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
-/* 115: */ {
-/* 116: 84 */ return 0;
-/* 117: */ }
-/* 118: */
-/* 119: */ public int getFireSpreadSpeed(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
-/* 120: */ {
-/* 121: 85 */ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0) ? 100 : 0;
-/* 122: */ }
-/* 123: */
-/* 124: */ public int getRenderType()
-/* 125: */ {
-/* 126: 86 */ if (GT_Renderer_Block.INSTANCE == null) {
-/* 127: 86 */ return super.getRenderType();
-/* 128: */ }
-/* 129: 86 */ return GT_Renderer_Block.INSTANCE.mRenderID;
-/* 130: */ }
-/* 131: */
-/* 132: */ public boolean isFireSource(World aWorld, int aX, int aY, int aZ, ForgeDirection side)
-/* 133: */ {
-/* 134: 87 */ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0);
-/* 135: */ }
-/* 136: */
-/* 137: */ public boolean isFlammable(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
-/* 138: */ {
-/* 139: 88 */ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0);
-/* 140: */ }
-/* 141: */
-/* 142: */ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 143: */ {
-/* 144: 89 */ return false;
-/* 145: */ }
-/* 146: */
-/* 147: */ public boolean canConnectRedstone(IBlockAccess var1, int var2, int var3, int var4, int var5)
-/* 148: */ {
-/* 149: 90 */ return true;
-/* 150: */ }
-/* 151: */
-/* 152: */ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 153: */ {
-/* 154: 91 */ return false;
-/* 155: */ }
-/* 156: */
-/* 157: */ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 158: */ {
-/* 159: 92 */ return false;
-/* 160: */ }
-/* 161: */
-/* 162: */ public boolean hasTileEntity(int aMeta)
-/* 163: */ {
-/* 164: 93 */ return true;
-/* 165: */ }
-/* 166: */
-/* 167: */ public boolean hasComparatorInputOverride()
-/* 168: */ {
-/* 169: 94 */ return true;
-/* 170: */ }
-/* 171: */
-/* 172: */ public boolean renderAsNormalBlock()
-/* 173: */ {
-/* 174: 95 */ return false;
-/* 175: */ }
-/* 176: */
-/* 177: */ public boolean canProvidePower()
-/* 178: */ {
-/* 179: 96 */ return true;
-/* 180: */ }
-/* 181: */
-/* 182: */ public boolean isOpaqueCube()
-/* 183: */ {
-/* 184: 97 */ return false;
-/* 185: */ }
-/* 186: */
-/* 187: */ public TileEntity createNewTileEntity(World aWorld, int aMeta)
-/* 188: */ {
-/* 189: 98 */ return createTileEntity(aWorld, aMeta);
-/* 190: */ }
-/* 191: */
-/* 192: */ public IIcon getIcon(IBlockAccess aIBlockAccess, int aX, int aY, int aZ, int aSide)
-/* 193: */ {
-/* 194: 99 */ return Textures.BlockIcons.MACHINE_LV_SIDE.getIcon();
-/* 195: */ }
-/* 196: */
-/* 197: */ public IIcon getIcon(int aSide, int aMeta)
-/* 198: */ {
-/* 199:100 */ return Textures.BlockIcons.MACHINE_LV_SIDE.getIcon();
-/* 200: */ }
-/* 201: */
-/* 202: */ public boolean onBlockEventReceived(World aWorld, int aX, int aY, int aZ, int aData1, int aData2)
-/* 203: */ {
-/* 204:104 */ super.onBlockEventReceived(aWorld, aX, aY, aZ, aData1, aData2);
-/* 205:105 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 206:106 */ return tTileEntity != null ? tTileEntity.receiveClientEvent(aData1, aData2) : false;
-/* 207: */ }
-/* 208: */
-/* 209: */ public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, List outputAABB, Entity collider)
-/* 210: */ {
-/* 211:111 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 212:112 */ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null))
-/* 213: */ {
-/* 214:113 */ ((IGregTechTileEntity)tTileEntity).addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider);
-/* 215:114 */ return;
-/* 216: */ }
-/* 217:116 */ super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider);
-/* 218: */ }
-/* 219: */
-/* 220: */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ)
-/* 221: */ {
-/* 222:121 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 223:122 */ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null)) {
-/* 224:123 */ return ((IGregTechTileEntity)tTileEntity).getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
-/* 225: */ }
-/* 226:125 */ return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
-/* 227: */ }
-/* 228: */
-/* 229: */ public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider)
-/* 230: */ {
-/* 231:130 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 232:131 */ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null))
-/* 233: */ {
-/* 234:132 */ ((IGregTechTileEntity)tTileEntity).onEntityCollidedWithBlock(aWorld, aX, aY, aZ, collider);
-/* 235:133 */ return;
-/* 236: */ }
-/* 237:135 */ super.onEntityCollidedWithBlock(aWorld, aX, aY, aZ, collider);
-/* 238: */ }
-/* 239: */
-/* 240: */ @SideOnly(Side.CLIENT)
-/* 241: */ public void registerBlockIcons(IIconRegister aIconRegister)
-/* 242: */ {
-/* 243:141 */ if (GregTech_API.sPostloadFinished)
-/* 244: */ {
-/* 245:142 */ GT_Log.out.println("GT_Mod: Setting up Icon Register for Blocks");
-/* 246:143 */ GregTech_API.sBlockIcons = aIconRegister;
-/* 247: */
-/* 248:145 */ GT_Log.out.println("GT_Mod: Registering MetaTileEntity specific Textures");
-/* 249:146 */ for (IMetaTileEntity tMetaTileEntity : GregTech_API.METATILEENTITIES) {
-/* 250: */ try
-/* 251: */ {
-/* 252:148 */ if (tMetaTileEntity != null) {
-/* 253:148 */ tMetaTileEntity.registerIcons(aIconRegister);
-/* 254: */ }
-/* 255: */ }
-/* 256: */ catch (Throwable e)
-/* 257: */ {
-/* 258:150 */ e.printStackTrace(GT_Log.err);
-/* 259: */ }
-/* 260: */ }
-/* 261:154 */ GT_Log.out.println("GT_Mod: Registering Crop specific Textures");
-/* 262: */ try
-/* 263: */ {
-/* 264:156 */ for (GT_BaseCrop tCrop : GT_BaseCrop.sCropList) {
-/* 265:157 */ tCrop.registerSprites(aIconRegister);
-/* 266: */ }
-/* 267: */ }
-/* 268: */ catch (Throwable e)
-/* 269: */ {
-/* 270:160 */ e.printStackTrace(GT_Log.err);
-/* 271: */ }
-/* 272:163 */ GT_Log.out.println("GT_Mod: Starting Block Icon Load Phase");
-/* 273:164 */ System.out.println("GT_Mod: Starting Block Icon Load Phase");
-/* 274:165 */ for (Runnable tRunnable : GregTech_API.sGTBlockIconload) {
-/* 275: */ try
-/* 276: */ {
-/* 277:167 */ tRunnable.run();
-/* 278: */ }
-/* 279: */ catch (Throwable e)
-/* 280: */ {
-/* 281:169 */ e.printStackTrace(GT_Log.err);
-/* 282: */ }
-/* 283: */ }
-/* 284:172 */ GT_Log.out.println("GT_Mod: Finished Block Icon Load Phase");
-/* 285:173 */ System.out.println("GT_Mod: Finished Block Icon Load Phase");
-/* 286: */ }
-/* 287: */ }
-/* 288: */
-/* 289: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 290: */ {
-/* 291:180 */ return super.getBlockHardness(aWorld, aX, aY, aZ);
-/* 292: */ }
-/* 293: */
-/* 294: */ public float getPlayerRelativeBlockHardness(EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ)
-/* 295: */ {
-/* 296:185 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 297:186 */ if (((tTileEntity instanceof BaseMetaTileEntity)) && (((BaseMetaTileEntity)tTileEntity).privateAccess()) && (!((BaseMetaTileEntity)tTileEntity).playerOwnsThis(aPlayer, true))) {
-/* 298:186 */ return -1.0F;
-/* 299: */ }
-/* 300:187 */ return super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ);
-/* 301: */ }
-/* 302: */
-/* 303: */ public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, float par1, float par2, float par3)
-/* 304: */ {
-/* 305:192 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 306:194 */ if ((tTileEntity == null) || (aPlayer.isSneaking())) {
-/* 307:194 */ return false;
-/* 308: */ }
-/* 309:196 */ if ((tTileEntity instanceof IGregTechTileEntity))
-/* 310: */ {
-/* 311:197 */ if (((IGregTechTileEntity)tTileEntity).getTimer() < 50L) {
-/* 312:197 */ return false;
-/* 313: */ }
-/* 314:198 */ if ((!aWorld.isRemote) && (!((IGregTechTileEntity)tTileEntity).isUseableByPlayer(aPlayer))) {
-/* 315:198 */ return true;
-/* 316: */ }
-/* 317:199 */ return ((IGregTechTileEntity)tTileEntity).onRightclick(aPlayer, (byte)aSide, par1, par2, par3);
-/* 318: */ }
-/* 319:202 */ return false;
-/* 320: */ }
-/* 321: */
-/* 322: */ public void onBlockClicked(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer)
-/* 323: */ {
-/* 324:207 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 325:208 */ if ((tTileEntity != null) &&
-/* 326:209 */ ((tTileEntity instanceof IGregTechTileEntity))) {
-/* 327:210 */ ((IGregTechTileEntity)tTileEntity).onLeftclick(aPlayer);
-/* 328: */ }
-/* 329: */ }
-/* 330: */
-/* 331: */ public int getDamageValue(World aWorld, int aX, int aY, int aZ)
-/* 332: */ {
-/* 333:217 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 334:218 */ if ((tTileEntity instanceof IGregTechTileEntity)) {
-/* 335:219 */ return ((IGregTechTileEntity)tTileEntity).getMetaTileID();
-/* 336: */ }
-/* 337:221 */ return 0;
-/* 338: */ }
-/* 339: */
-/* 340: */ public void onBlockExploded(World aWorld, int aX, int aY, int aZ, Explosion aExplosion)
-/* 341: */ {
-/* 342:226 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 343:227 */ if ((tTileEntity instanceof BaseMetaTileEntity)) {
-/* 344:227 */ ((BaseMetaTileEntity)tTileEntity).doEnergyExplosion();
-/* 345: */ }
-/* 346:228 */ super.onBlockExploded(aWorld, aX, aY, aZ, aExplosion);
-/* 347: */ }
-/* 348: */
-/* 349: */ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block par5, int par6)
-/* 350: */ {
-/* 351:233 */ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
-/* 352:234 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 353:235 */ if ((tTileEntity instanceof IGregTechTileEntity))
-/* 354: */ {
-/* 355:236 */ IGregTechTileEntity tGregTechTileEntity = (IGregTechTileEntity)tTileEntity;
-/* 356:237 */ Random tRandom = new Random();
-/* 357:238 */ mTemporaryTileEntity.set(tGregTechTileEntity);
-/* 358:239 */ for (int i = 0; i < tGregTechTileEntity.getSizeInventory(); i++)
-/* 359: */ {
-/* 360:240 */ ItemStack tItem = tGregTechTileEntity.getStackInSlot(i);
-/* 361:241 */ if ((tItem != null) && (tItem.stackSize > 0) && (tGregTechTileEntity.isValidSlot(i)))
-/* 362: */ {
-/* 363:242 */ EntityItem tItemEntity = new EntityItem(aWorld, aX + tRandom.nextFloat() * 0.8F + 0.1F, aY + tRandom.nextFloat() * 0.8F + 0.1F, aZ + tRandom.nextFloat() * 0.8F + 0.1F, new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage()));
-/* 364:243 */ if (tItem.hasTagCompound()) {
-/* 365:243 */ tItemEntity.getEntityItem().setTagCompound((NBTTagCompound)tItem.getTagCompound().copy());
-/* 366: */ }
-/* 367:244 */ tItemEntity.motionX = (tRandom.nextGaussian() * 0.0500000007450581D);
-/* 368:245 */ tItemEntity.motionY = (tRandom.nextGaussian() * 0.0500000007450581D + 0.2000000029802322D);
-/* 369:246 */ tItemEntity.motionZ = (tRandom.nextGaussian() * 0.0500000007450581D);
-/* 370:247 */ aWorld.spawnEntityInWorld(tItemEntity);
-/* 371:248 */ tItem.stackSize = 0;
-/* 372:249 */ tGregTechTileEntity.setInventorySlotContents(i, null);
-/* 373: */ }
-/* 374: */ }
-/* 375: */ }
-/* 376:253 */ super.breakBlock(aWorld, aX, aY, aZ, par5, par6);
-/* 377:254 */ aWorld.removeTileEntity(aX, aY, aZ);
-/* 378: */ }
-/* 379: */
-/* 380: */ public ArrayList<ItemStack> getDrops(World aWorld, int aX, int aY, int aZ, int aMeta, int aFortune)
-/* 381: */ {
-/* 382:259 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 383:260 */ if ((tTileEntity instanceof IGregTechTileEntity)) {
-/* 384:260 */ return ((IGregTechTileEntity)tTileEntity).getDrops();
-/* 385: */ }
-/* 386:261 */ return mTemporaryTileEntity.get() == null ? new ArrayList() : ((IGregTechTileEntity)mTemporaryTileEntity.get()).getDrops();
-/* 387: */ }
-/* 388: */
-/* 389: */ public int getComparatorInputOverride(World aWorld, int aX, int aY, int aZ, int aSide)
-/* 390: */ {
-/* 391:266 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 392:267 */ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
-/* 393:267 */ return ((IGregTechTileEntity)tTileEntity).getComparatorValue((byte)aSide);
-/* 394: */ }
-/* 395:268 */ return 0;
-/* 396: */ }
-/* 397: */
-/* 398: */ public int isProvidingWeakPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide)
-/* 399: */ {
-/* 400:273 */ if ((aSide < 0) || (aSide > 5)) {
-/* 401:273 */ return 0;
-/* 402: */ }
-/* 403:275 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 404:277 */ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
-/* 405:277 */ return ((IGregTechTileEntity)tTileEntity).getOutputRedstoneSignal(GT_Utility.getOppositeSide(aSide));
-/* 406: */ }
-/* 407:279 */ return 0;
-/* 408: */ }
-/* 409: */
-/* 410: */ public int isProvidingStrongPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide)
-/* 411: */ {
-/* 412:284 */ if ((aSide < 0) || (aSide > 5)) {
-/* 413:284 */ return 0;
-/* 414: */ }
-/* 415:286 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 416:288 */ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
-/* 417:288 */ return ((IGregTechTileEntity)tTileEntity).getStrongOutputRedstoneSignal(GT_Utility.getOppositeSide(aSide));
-/* 418: */ }
-/* 419:290 */ return 0;
-/* 420: */ }
-/* 421: */
-/* 422: */ public void dropBlockAsItemWithChance(World aWorld, int aX, int aY, int aZ, int par5, float chance, int par7)
-/* 423: */ {
-/* 424:295 */ if (!aWorld.isRemote)
-/* 425: */ {
-/* 426:296 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 427:298 */ if ((tTileEntity != null) && (chance < 1.0F))
-/* 428: */ {
-/* 429:299 */ if (((tTileEntity instanceof BaseMetaTileEntity)) && (GregTech_API.sMachineNonWrenchExplosions)) {
-/* 430:299 */ ((BaseMetaTileEntity)tTileEntity).doEnergyExplosion();
-/* 431: */ }
-/* 432: */ }
-/* 433: */ else {
-/* 434:301 */ super.dropBlockAsItemWithChance(aWorld, aX, aY, aZ, par5, chance, par7);
-/* 435: */ }
-/* 436: */ }
-/* 437: */ }
-/* 438: */
-/* 439: */ public boolean isSideSolid(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection aSide)
-/* 440: */ {
-/* 441:313 */ if (aWorld.getBlockMetadata(aX, aY, aZ) == 0) {
-/* 442:313 */ return true;
-/* 443: */ }
-/* 444:314 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 445:315 */ if (tTileEntity != null)
-/* 446: */ {
-/* 447:316 */ if ((tTileEntity instanceof BaseMetaTileEntity)) {
-/* 448:316 */ return true;
-/* 449: */ }
-/* 450:317 */ if (((tTileEntity instanceof BaseMetaPipeEntity)) && ((((BaseMetaPipeEntity)tTileEntity).mConnections & 0xFFFFFFC0) != 0)) {
-/* 451:317 */ return true;
-/* 452: */ }
-/* 453:318 */ if (((tTileEntity instanceof ICoverable)) && (((ICoverable)tTileEntity).getCoverIDAtSide((byte)aSide.ordinal()) != 0)) {
-/* 454:318 */ return true;
-/* 455: */ }
-/* 456: */ }
-/* 457:320 */ return false;
-/* 458: */ }
-/* 459: */
-/* 460: */ public int getLightOpacity(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 461: */ {
-/* 462:325 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 463:326 */ if (tTileEntity == null) {
-/* 464:326 */ return 0;
-/* 465: */ }
-/* 466:327 */ if ((tTileEntity instanceof IGregTechTileEntity)) {
-/* 467:327 */ return ((IGregTechTileEntity)tTileEntity).getLightOpacity();
-/* 468: */ }
-/* 469:328 */ return aWorld.getBlockMetadata(aX, aY, aZ) == 0 ? 255 : 0;
-/* 470: */ }
-/* 471: */
-/* 472: */ public int getLightValue(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 473: */ {
-/* 474:333 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 475:334 */ if ((tTileEntity instanceof BaseMetaTileEntity)) {
-/* 476:334 */ return ((BaseMetaTileEntity)tTileEntity).getLightValue();
-/* 477: */ }
-/* 478:335 */ return 0;
-/* 479: */ }
-/* 480: */
-/* 481: */ public TileEntity createTileEntity(World aWorld, int aMeta)
-/* 482: */ {
-/* 483:340 */ if (aMeta < 4) {
-/* 484:340 */ return GregTech_API.constructBaseMetaTileEntity();
-/* 485: */ }
-/* 486:341 */ return new BaseMetaPipeEntity();
-/* 487: */ }
-/* 488: */
-/* 489: */ public float getExplosionResistance(Entity par1Entity, World aWorld, int aX, int aY, int aZ, double explosionX, double explosionY, double explosionZ)
-/* 490: */ {
-/* 491:346 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 492:347 */ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
-/* 493:347 */ return ((IGregTechTileEntity)tTileEntity).getBlastResistance((byte)6);
-/* 494: */ }
-/* 495:348 */ return 10.0F;
-/* 496: */ }
-/* 497: */
-/* 498: */ @SideOnly(Side.CLIENT)
-/* 499: */ public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)
-/* 500: */ {
-/* 501:353 */ for (int i = 1; i < GregTech_API.METATILEENTITIES.length; i++) {
-/* 502:353 */ if (GregTech_API.METATILEENTITIES[i] != null) {
-/* 503:353 */ par3List.add(new ItemStack(par1, 1, i));
-/* 504: */ }
-/* 505: */ }
-/* 506: */ }
-/* 507: */
-/* 508: */ public void onBlockPlacedBy(World aWorld, int aX, int aY, int aZ, EntityLivingBase aPlayer, ItemStack aStack)
-/* 509: */ {
-/* 510:358 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 511:359 */ if (tTileEntity == null) {
-/* 512:359 */ return;
-/* 513: */ }
-/* 514:360 */ if ((tTileEntity instanceof IGregTechTileEntity))
-/* 515: */ {
-/* 516:361 */ IGregTechTileEntity var6 = (IGregTechTileEntity)tTileEntity;
-/* 517:362 */ if (aPlayer == null)
-/* 518: */ {
-/* 519:363 */ var6.setFrontFacing((byte)1);
-/* 520: */ }
-/* 521: */ else
-/* 522: */ {
-/* 523:365 */ int var7 = MathHelper.floor_double(aPlayer.rotationYaw * 4.0F / 360.0F + 0.5D) & 0x3;
-/* 524:366 */ int var8 = Math.round(aPlayer.rotationPitch);
-/* 525:367 */ if ((var8 >= 65) && (var6.isValidFacing((byte)1))) {
-/* 526:368 */ var6.setFrontFacing((byte)1);
-/* 527:369 */ } else if ((var8 <= -65) && (var6.isValidFacing((byte)0))) {
-/* 528:370 */ var6.setFrontFacing((byte)0);
-/* 529: */ } else {
-/* 530:372 */ switch (var7)
-/* 531: */ {
-/* 532: */ case 0:
-/* 533:373 */ var6.setFrontFacing((byte)2); break;
-/* 534: */ case 1:
-/* 535:374 */ var6.setFrontFacing((byte)5); break;
-/* 536: */ case 2:
-/* 537:375 */ var6.setFrontFacing((byte)3); break;
-/* 538: */ case 3:
-/* 539:376 */ var6.setFrontFacing((byte)4);
-/* 540: */ }
-/* 541: */ }
-/* 542: */ }
-/* 543: */ }
-/* 544: */ }
-/* 545: */
-/* 546: */ public ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aX, int aY, int aZ, int aLogLevel)
-/* 547: */ {
-/* 548:385 */ TileEntity tTileEntity = aPlayer.worldObj.getTileEntity(aX, aY, aZ);
-/* 549:386 */ if ((tTileEntity instanceof BaseMetaTileEntity)) {
-/* 550:386 */ return ((BaseMetaTileEntity)tTileEntity).getDebugInfo(aPlayer, aLogLevel);
-/* 551: */ }
-/* 552:387 */ if ((tTileEntity instanceof BaseMetaPipeEntity)) {
-/* 553:387 */ return ((BaseMetaPipeEntity)tTileEntity).getDebugInfo(aPlayer, aLogLevel);
-/* 554: */ }
-/* 555:388 */ return null;
-/* 556: */ }
-/* 557: */
-/* 558: */ public boolean recolourBlock(World aWorld, int aX, int aY, int aZ, ForgeDirection aSide, int aColor)
-/* 559: */ {
-/* 560:393 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 561:394 */ if ((tTileEntity instanceof IGregTechTileEntity))
-/* 562: */ {
-/* 563:395 */ if (((IGregTechTileEntity)tTileEntity).getColorization() == (byte)((aColor ^ 0xFFFFFFFF) & 0xF)) {
-/* 564:395 */ return false;
-/* 565: */ }
-/* 566:396 */ ((IGregTechTileEntity)tTileEntity).setColorization((byte)((aColor ^ 0xFFFFFFFF) & 0xF));
-/* 567:397 */ return true;
-/* 568: */ }
-/* 569:399 */ return false;
-/* 570: */ }
-/* 571: */ }
+public class GT_Block_Machines
+ extends GT_Generic_Block
+ implements IDebugableBlock, ITileEntityProvider
+{
+ public static ThreadLocal<IGregTechTileEntity> mTemporaryTileEntity = new ThreadLocal();
+
+ public GT_Block_Machines()
+ {
+ super(GT_Item_Machines.class, "gt.blockmachines", new GT_Material_Machines());
+ GregTech_API.registerMachineBlock(this, -1);
+ setHardness(1.0F);
+ setResistance(10.0F);
+ setStepSound(soundTypeMetal);
+ setCreativeTab(GregTech_API.TAB_GREGTECH);
+ this.isBlockContainer = true;
+ }
+
+ public String getHarvestTool(int aMeta)
+ {
+ switch (aMeta / 4)
+ {
+ case 0:
+ return "wrench";
+ case 1:
+ return "wrench";
+ case 2:
+ return "cutter";
+ case 3:
+ return "axe";
+ }
+ return "wrench";
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return aMeta % 4;
+ }
+
+ protected boolean canSilkHarvest()
+ {
+ return false;
+ }
+
+ public void onNeighborChange(IBlockAccess aWorld, int aX, int aY, int aZ, int aTileX, int aTileY, int aTileZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof BaseTileEntity)) {
+ ((BaseTileEntity)tTileEntity).onAdjacentBlockChange(aTileX, aTileY, aTileZ);
+ }
+ }
+
+ public void onBlockAdded(World aWorld, int aX, int aY, int aZ)
+ {
+ super.onBlockAdded(aWorld, aX, aY, aZ);
+ if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ }
+ }
+
+ public String getUnlocalizedName()
+ {
+ return "gt.blockmachines";
+ }
+
+ public String getLocalizedName()
+ {
+ return StatCollector.translateToLocal(getUnlocalizedName() + ".name");
+ }
+
+ public int getFlammability(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
+ {
+ return 0;
+ }
+
+ public int getFireSpreadSpeed(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
+ {
+ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0) ? 100 : 0;
+ }
+
+ public int getRenderType()
+ {
+ if (GT_Renderer_Block.INSTANCE == null) {
+ return super.getRenderType();
+ }
+ return GT_Renderer_Block.INSTANCE.mRenderID;
+ }
+
+ public boolean isFireSource(World aWorld, int aX, int aY, int aZ, ForgeDirection side)
+ {
+ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0);
+ }
+
+ public boolean isFlammable(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection face)
+ {
+ return (GregTech_API.sMachineFlammable) && (aWorld.getBlockMetadata(aX, aY, aZ) == 0);
+ }
+
+ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean canConnectRedstone(IBlockAccess var1, int var2, int var3, int var4, int var5)
+ {
+ return true;
+ }
+
+ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean hasTileEntity(int aMeta)
+ {
+ return true;
+ }
+
+ public boolean hasComparatorInputOverride()
+ {
+ return true;
+ }
+
+ public boolean renderAsNormalBlock()
+ {
+ return false;
+ }
+
+ public boolean canProvidePower()
+ {
+ return true;
+ }
+
+ public boolean isOpaqueCube()
+ {
+ return false;
+ }
+
+ public TileEntity createNewTileEntity(World aWorld, int aMeta)
+ {
+ return createTileEntity(aWorld, aMeta);
+ }
+
+ public IIcon getIcon(IBlockAccess aIBlockAccess, int aX, int aY, int aZ, int aSide)
+ {
+ return Textures.BlockIcons.MACHINE_LV_SIDE.getIcon();
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ return Textures.BlockIcons.MACHINE_LV_SIDE.getIcon();
+ }
+
+ public boolean onBlockEventReceived(World aWorld, int aX, int aY, int aZ, int aData1, int aData2)
+ {
+ super.onBlockEventReceived(aWorld, aX, aY, aZ, aData1, aData2);
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ return tTileEntity != null ? tTileEntity.receiveClientEvent(aData1, aData2) : false;
+ }
+
+ public void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, List outputAABB, Entity collider)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null))
+ {
+ ((IGregTechTileEntity)tTileEntity).addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider);
+ return;
+ }
+ super.addCollisionBoxesToList(aWorld, aX, aY, aZ, inputAABB, outputAABB, collider);
+ }
+
+ public AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null)) {
+ return ((IGregTechTileEntity)tTileEntity).getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
+ }
+ return super.getCollisionBoundingBoxFromPool(aWorld, aX, aY, aZ);
+ }
+
+ public void onEntityCollidedWithBlock(World aWorld, int aX, int aY, int aZ, Entity collider)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((tTileEntity instanceof IGregTechTileEntity)) && (((IGregTechTileEntity)tTileEntity).getMetaTileEntity() != null))
+ {
+ ((IGregTechTileEntity)tTileEntity).onEntityCollidedWithBlock(aWorld, aX, aY, aZ, collider);
+ return;
+ }
+ super.onEntityCollidedWithBlock(aWorld, aX, aY, aZ, collider);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerBlockIcons(IIconRegister aIconRegister)
+ {
+ if (GregTech_API.sPostloadFinished)
+ {
+ GT_Log.out.println("GT_Mod: Setting up Icon Register for Blocks");
+ GregTech_API.sBlockIcons = aIconRegister;
+
+ GT_Log.out.println("GT_Mod: Registering MetaTileEntity specific Textures");
+ for (IMetaTileEntity tMetaTileEntity : GregTech_API.METATILEENTITIES) {
+ try
+ {
+ if (tMetaTileEntity != null) {
+ tMetaTileEntity.registerIcons(aIconRegister);
+ }
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ GT_Log.out.println("GT_Mod: Registering Crop specific Textures");
+ try
+ {
+ for (GT_BaseCrop tCrop : GT_BaseCrop.sCropList) {
+ tCrop.registerSprites(aIconRegister);
+ }
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ GT_Log.out.println("GT_Mod: Starting Block Icon Load Phase");
+ System.out.println("GT_Mod: Starting Block Icon Load Phase");
+ for (Runnable tRunnable : GregTech_API.sGTBlockIconload) {
+ try
+ {
+ tRunnable.run();
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ GT_Log.out.println("GT_Mod: Finished Block Icon Load Phase");
+ System.out.println("GT_Mod: Finished Block Icon Load Phase");
+ }
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return super.getBlockHardness(aWorld, aX, aY, aZ);
+ }
+
+ public float getPlayerRelativeBlockHardness(EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((tTileEntity instanceof BaseMetaTileEntity)) && (((BaseMetaTileEntity)tTileEntity).privateAccess()) && (!((BaseMetaTileEntity)tTileEntity).playerOwnsThis(aPlayer, true))) {
+ return -1.0F;
+ }
+ return super.getPlayerRelativeBlockHardness(aPlayer, aWorld, aX, aY, aZ);
+ }
+
+ public boolean onBlockActivated(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer, int aSide, float par1, float par2, float par3)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity == null) || (aPlayer.isSneaking())) {
+ return false;
+ }
+ if ((tTileEntity instanceof IGregTechTileEntity))
+ {
+ if (((IGregTechTileEntity)tTileEntity).getTimer() < 50L) {
+ return false;
+ }
+ if ((!aWorld.isRemote) && (!((IGregTechTileEntity)tTileEntity).isUseableByPlayer(aPlayer))) {
+ return true;
+ }
+ return ((IGregTechTileEntity)tTileEntity).onRightclick(aPlayer, (byte)aSide, par1, par2, par3);
+ }
+ return false;
+ }
+
+ public void onBlockClicked(World aWorld, int aX, int aY, int aZ, EntityPlayer aPlayer)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) &&
+ ((tTileEntity instanceof IGregTechTileEntity))) {
+ ((IGregTechTileEntity)tTileEntity).onLeftclick(aPlayer);
+ }
+ }
+
+ public int getDamageValue(World aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof IGregTechTileEntity)) {
+ return ((IGregTechTileEntity)tTileEntity).getMetaTileID();
+ }
+ return 0;
+ }
+
+ public void onBlockExploded(World aWorld, int aX, int aY, int aZ, Explosion aExplosion)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof BaseMetaTileEntity)) {
+ ((BaseMetaTileEntity)tTileEntity).doEnergyExplosion();
+ }
+ super.onBlockExploded(aWorld, aX, aY, aZ, aExplosion);
+ }
+
+ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block par5, int par6)
+ {
+ GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof IGregTechTileEntity))
+ {
+ IGregTechTileEntity tGregTechTileEntity = (IGregTechTileEntity)tTileEntity;
+ Random tRandom = new Random();
+ mTemporaryTileEntity.set(tGregTechTileEntity);
+ for (int i = 0; i < tGregTechTileEntity.getSizeInventory(); i++)
+ {
+ ItemStack tItem = tGregTechTileEntity.getStackInSlot(i);
+ if ((tItem != null) && (tItem.stackSize > 0) && (tGregTechTileEntity.isValidSlot(i)))
+ {
+ EntityItem tItemEntity = new EntityItem(aWorld, aX + tRandom.nextFloat() * 0.8F + 0.1F, aY + tRandom.nextFloat() * 0.8F + 0.1F, aZ + tRandom.nextFloat() * 0.8F + 0.1F, new ItemStack(tItem.getItem(), tItem.stackSize, tItem.getItemDamage()));
+ if (tItem.hasTagCompound()) {
+ tItemEntity.getEntityItem().setTagCompound((NBTTagCompound)tItem.getTagCompound().copy());
+ }
+ tItemEntity.motionX = (tRandom.nextGaussian() * 0.0500000007450581D);
+ tItemEntity.motionY = (tRandom.nextGaussian() * 0.0500000007450581D + 0.2000000029802322D);
+ tItemEntity.motionZ = (tRandom.nextGaussian() * 0.0500000007450581D);
+ aWorld.spawnEntityInWorld(tItemEntity);
+ tItem.stackSize = 0;
+ tGregTechTileEntity.setInventorySlotContents(i, null);
+ }
+ }
+ }
+ super.breakBlock(aWorld, aX, aY, aZ, par5, par6);
+ aWorld.removeTileEntity(aX, aY, aZ);
+ }
+
+ public ArrayList<ItemStack> getDrops(World aWorld, int aX, int aY, int aZ, int aMeta, int aFortune)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof IGregTechTileEntity)) {
+ return ((IGregTechTileEntity)tTileEntity).getDrops();
+ }
+ return mTemporaryTileEntity.get() == null ? new ArrayList() : ((IGregTechTileEntity)mTemporaryTileEntity.get()).getDrops();
+ }
+
+ public int getComparatorInputOverride(World aWorld, int aX, int aY, int aZ, int aSide)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
+ return ((IGregTechTileEntity)tTileEntity).getComparatorValue((byte)aSide);
+ }
+ return 0;
+ }
+
+ public int isProvidingWeakPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide)
+ {
+ if ((aSide < 0) || (aSide > 5)) {
+ return 0;
+ }
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
+ return ((IGregTechTileEntity)tTileEntity).getOutputRedstoneSignal(GT_Utility.getOppositeSide(aSide));
+ }
+ return 0;
+ }
+
+ public int isProvidingStrongPower(IBlockAccess aWorld, int aX, int aY, int aZ, int aSide)
+ {
+ if ((aSide < 0) || (aSide > 5)) {
+ return 0;
+ }
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
+ return ((IGregTechTileEntity)tTileEntity).getStrongOutputRedstoneSignal(GT_Utility.getOppositeSide(aSide));
+ }
+ return 0;
+ }
+
+ public void dropBlockAsItemWithChance(World aWorld, int aX, int aY, int aZ, int par5, float chance, int par7)
+ {
+ if (!aWorld.isRemote)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && (chance < 1.0F))
+ {
+ if (((tTileEntity instanceof BaseMetaTileEntity)) && (GregTech_API.sMachineNonWrenchExplosions)) {
+ ((BaseMetaTileEntity)tTileEntity).doEnergyExplosion();
+ }
+ }
+ else {
+ super.dropBlockAsItemWithChance(aWorld, aX, aY, aZ, par5, chance, par7);
+ }
+ }
+ }
+
+ public boolean isSideSolid(IBlockAccess aWorld, int aX, int aY, int aZ, ForgeDirection aSide)
+ {
+ if (aWorld.getBlockMetadata(aX, aY, aZ) == 0) {
+ return true;
+ }
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (tTileEntity != null)
+ {
+ if ((tTileEntity instanceof BaseMetaTileEntity)) {
+ return true;
+ }
+ if (((tTileEntity instanceof BaseMetaPipeEntity)) && ((((BaseMetaPipeEntity)tTileEntity).mConnections & 0xFFFFFFC0) != 0)) {
+ return true;
+ }
+ if (((tTileEntity instanceof ICoverable)) && (((ICoverable)tTileEntity).getCoverIDAtSide((byte)aSide.ordinal()) != 0)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public int getLightOpacity(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (tTileEntity == null) {
+ return 0;
+ }
+ if ((tTileEntity instanceof IGregTechTileEntity)) {
+ return ((IGregTechTileEntity)tTileEntity).getLightOpacity();
+ }
+ return aWorld.getBlockMetadata(aX, aY, aZ) == 0 ? 255 : 0;
+ }
+
+ public int getLightValue(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof BaseMetaTileEntity)) {
+ return ((BaseMetaTileEntity)tTileEntity).getLightValue();
+ }
+ return 0;
+ }
+
+ public TileEntity createTileEntity(World aWorld, int aMeta)
+ {
+ if (aMeta < 4) {
+ return GregTech_API.constructBaseMetaTileEntity();
+ }
+ return new BaseMetaPipeEntity();
+ }
+
+ public float getExplosionResistance(Entity par1Entity, World aWorld, int aX, int aY, int aZ, double explosionX, double explosionY, double explosionZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechTileEntity))) {
+ return ((IGregTechTileEntity)tTileEntity).getBlastResistance((byte)6);
+ }
+ return 10.0F;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List)
+ {
+ for (int i = 1; i < GregTech_API.METATILEENTITIES.length; i++) {
+ if (GregTech_API.METATILEENTITIES[i] != null) {
+ par3List.add(new ItemStack(par1, 1, i));
+ }
+ }
+ }
+
+ public void onBlockPlacedBy(World aWorld, int aX, int aY, int aZ, EntityLivingBase aPlayer, ItemStack aStack)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (tTileEntity == null) {
+ return;
+ }
+ if ((tTileEntity instanceof IGregTechTileEntity))
+ {
+ IGregTechTileEntity var6 = (IGregTechTileEntity)tTileEntity;
+ if (aPlayer == null)
+ {
+ var6.setFrontFacing((byte)1);
+ }
+ else
+ {
+ int var7 = MathHelper.floor_double(aPlayer.rotationYaw * 4.0F / 360.0F + 0.5D) & 0x3;
+ int var8 = Math.round(aPlayer.rotationPitch);
+ if ((var8 >= 65) && (var6.isValidFacing((byte)1))) {
+ var6.setFrontFacing((byte)1);
+ } else if ((var8 <= -65) && (var6.isValidFacing((byte)0))) {
+ var6.setFrontFacing((byte)0);
+ } else {
+ switch (var7)
+ {
+ case 0:
+ var6.setFrontFacing((byte)2); break;
+ case 1:
+ var6.setFrontFacing((byte)5); break;
+ case 2:
+ var6.setFrontFacing((byte)3); break;
+ case 3:
+ var6.setFrontFacing((byte)4);
+ }
+ }
+ }
+ }
+ }
+
+ public ArrayList<String> getDebugInfo(EntityPlayer aPlayer, int aX, int aY, int aZ, int aLogLevel)
+ {
+ TileEntity tTileEntity = aPlayer.worldObj.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof BaseMetaTileEntity)) {
+ return ((BaseMetaTileEntity)tTileEntity).getDebugInfo(aPlayer, aLogLevel);
+ }
+ if ((tTileEntity instanceof BaseMetaPipeEntity)) {
+ return ((BaseMetaPipeEntity)tTileEntity).getDebugInfo(aPlayer, aLogLevel);
+ }
+ return null;
+ }
+
+ public boolean recolourBlock(World aWorld, int aX, int aY, int aZ, ForgeDirection aSide, int aColor)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof IGregTechTileEntity))
+ {
+ if (((IGregTechTileEntity)tTileEntity).getColorization() == (byte)((aColor ^ 0xFFFFFFFF) & 0xF)) {
+ return false;
+ }
+ ((IGregTechTileEntity)tTileEntity).setColorization((byte)((aColor ^ 0xFFFFFFFF) & 0xF));
+ return true;
+ }
+ return false;
+ }
+}
/* 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/blocks/GT_Block_Ores.java b/main/java/gregtech/common/blocks/GT_Block_Ores.java index 19bf814a31..3353150340 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Ores.java +++ b/main/java/gregtech/common/blocks/GT_Block_Ores.java @@ -1,264 +1,264 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.GregTech_API;
-/* 6: */ import gregtech.api.enums.Materials;
-/* 7: */ import gregtech.api.enums.OrePrefixes;
-/* 8: */ import gregtech.api.items.GT_Generic_Block;
-/* 9: */ import gregtech.api.util.GT_LanguageManager;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
-/* 11: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 12: */ import gregtech.common.render.GT_Renderer_Block;
-/* 13: */ import java.util.ArrayList;
-/* 14: */ import java.util.List;
-/* 15: */ import net.minecraft.block.Block;
-/* 16: */ import net.minecraft.block.ITileEntityProvider;
-/* 17: */ import net.minecraft.block.material.Material;
-/* 18: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 19: */ import net.minecraft.creativetab.CreativeTabs;
-/* 20: */ import net.minecraft.entity.Entity;
-/* 21: */ import net.minecraft.entity.boss.EntityDragon;
-/* 22: */ import net.minecraft.init.Blocks;
-/* 23: */ import net.minecraft.item.Item;
-/* 24: */ import net.minecraft.item.ItemStack;
-/* 25: */ import net.minecraft.tileentity.TileEntity;
-/* 26: */ import net.minecraft.util.IIcon;
-/* 27: */ import net.minecraft.util.StatCollector;
-/* 28: */ import net.minecraft.world.IBlockAccess;
-/* 29: */ import net.minecraft.world.World;
-/* 30: */
-/* 31: */ public class GT_Block_Ores
-/* 32: */ extends GT_Generic_Block
-/* 33: */ implements ITileEntityProvider
-/* 34: */ {
-/* 35: 35 */ public static ThreadLocal<GT_TileEntity_Ores> mTemporaryTileEntity = new ThreadLocal();
-/* 36: */
-/* 37: */ public GT_Block_Ores()
-/* 38: */ {
-/* 39: 38 */ super(GT_Item_Ores.class, "gt.blockores", Material.rock);
-/* 40: 39 */ this.isBlockContainer = true;
-/* 41: 40 */ setStepSound(soundTypeStone);
-/* 42: 41 */ setCreativeTab(GregTech_API.TAB_GREGTECH_ORES);
-/* 43: 42 */ for (int i = 0; i < 16; i++) {
-/* 44: 42 */ GT_ModHandler.addValuableOre(this, i, 1);
-/* 45: */ }
-/* 46: 43 */ for (int i = 1; i < GregTech_API.sGeneratedMaterials.length; i++) {
-/* 47: 43 */ if (GregTech_API.sGeneratedMaterials[i] != null)
-/* 48: */ {
-/* 49: 44 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + i + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 50: 45 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 1000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 51: 46 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 2000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 52: 47 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 3000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 53: 48 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 4000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 54: 49 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 16000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 55: 50 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 17000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 56: 51 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 18000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 57: 52 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 19000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 58: 53 */ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 20000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
-/* 59: 54 */ if ((GregTech_API.sGeneratedMaterials[i].mTypes & 0x8) != 0)
-/* 60: */ {
-/* 61: 55 */ GT_OreDictUnificator.registerOre(OrePrefixes.ore.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i));
-/* 62: 56 */ GT_OreDictUnificator.registerOre(OrePrefixes.oreNetherrack.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 1000));
-/* 63: 57 */ GT_OreDictUnificator.registerOre(OrePrefixes.oreEndstone.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 2000));
-/* 64: 58 */ GT_OreDictUnificator.registerOre(OrePrefixes.oreBlackgranite.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 3000));
-/* 65: 59 */ GT_OreDictUnificator.registerOre(OrePrefixes.oreRedgranite.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 4000));
-/* 66: */ }
-/* 67: */ }
-/* 68: */ }
-/* 69: */ }
-/* 70: */
-/* 71: 64 */ public static boolean FUCKING_LOCK = false;
-/* 72: */
-/* 73: */ public void onNeighborChange(IBlockAccess aWorld, int aX, int aY, int aZ, int aTileX, int aTileY, int aTileZ)
-/* 74: */ {
-/* 75: 68 */ if (!FUCKING_LOCK)
-/* 76: */ {
-/* 77: 69 */ FUCKING_LOCK = true;
-/* 78: 70 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 79: 71 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 80: 71 */ ((GT_TileEntity_Ores)tTileEntity).onUpdated();
-/* 81: */ }
-/* 82: */ }
-/* 83: 73 */ FUCKING_LOCK = false;
-/* 84: */ }
-/* 85: */
-/* 86: */ public void onNeighborBlockChange(World aWorld, int aX, int aY, int aZ, Block aBlock)
-/* 87: */ {
-/* 88: 78 */ if (!FUCKING_LOCK)
-/* 89: */ {
-/* 90: 79 */ FUCKING_LOCK = true;
-/* 91: 80 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 92: 81 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 93: 81 */ ((GT_TileEntity_Ores)tTileEntity).onUpdated();
-/* 94: */ }
-/* 95: */ }
-/* 96: 83 */ FUCKING_LOCK = false;
-/* 97: */ }
-/* 98: */
-/* 99: */ public String getLocalizedName(Materials aMaterial) {
- /* 87 */ switch (aMaterial) {
- /* */ case InfusedAir: case InfusedDull: case InfusedEarth: case InfusedEntropy: case InfusedFire: case InfusedOrder: case InfusedVis: case InfusedWater:
- /* 89 */ return aMaterial.mDefaultLocalName + " Infused Stone";
- /* */ case Vermiculite: case Bentonite: case Kaolinite: case Talc: case BasalticMineralSand: case GraniticMineralSand: case GlauconiteSand: case CassiteriteSand: case GarnetSand: case QuartzSand: case Pitchblende: case FullersEarth:
- /* 91 */ return aMaterial.mDefaultLocalName;
- /* */ }
- /* 93 */ return aMaterial.mDefaultLocalName + OrePrefixes.ore.mLocalizedMaterialPost;
- /* */ }
-/* 128: */
-/* 129: */ public boolean onBlockEventReceived(World p_149696_1_, int p_149696_2_, int p_149696_3_, int p_149696_4_, int p_149696_5_, int p_149696_6_)
-/* 130: */ {
-/* 131: 99 */ super.onBlockEventReceived(p_149696_1_, p_149696_2_, p_149696_3_, p_149696_4_, p_149696_5_, p_149696_6_);
-/* 132:100 */ TileEntity tileentity = p_149696_1_.getTileEntity(p_149696_2_, p_149696_3_, p_149696_4_);
-/* 133:101 */ return tileentity != null ? tileentity.receiveClientEvent(p_149696_5_, p_149696_6_) : false;
-/* 134: */ }
-/* 135: */
-/* 136: */ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
-/* 137: */ {
-/* 138:106 */ return (!(entity instanceof EntityDragon)) && (super.canEntityDestroy(world, x, y, z, entity));
-/* 139: */ }
-/* 140: */
-/* 141: */ public String getHarvestTool(int aMeta)
-/* 142: */ {
-/* 143:111 */ return aMeta < 8 ? "pickaxe" : "shovel";
-/* 144: */ }
-/* 145: */
-/* 146: */ public int getHarvestLevel(int aMeta)
-/* 147: */ {
-/* 148:116 */ return aMeta % 8;
-/* 149: */ }
-/* 150: */
-/* 151: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 152: */ {
-/* 153:121 */ return 1.0F + getHarvestLevel(aWorld.getBlockMetadata(aX, aY, aZ)) * 1.0F;
-/* 154: */ }
-/* 155: */
-/* 156: */ public float getExplosionResistance(Entity par1Entity, World aWorld, int aX, int aY, int aZ, double explosionX, double explosionY, double explosionZ)
-/* 157: */ {
-/* 158:126 */ return 1.0F + getHarvestLevel(aWorld.getBlockMetadata(aX, aY, aZ)) * 1.0F;
-/* 159: */ }
-/* 160: */
-/* 161: */ protected boolean canSilkHarvest()
-/* 162: */ {
-/* 163:131 */ return false;
-/* 164: */ }
-/* 165: */
-/* 166: */ public String getUnlocalizedName()
-/* 167: */ {
-/* 168:134 */ return "gt.blockores";
-/* 169: */ }
-/* 170: */
-/* 171: */ public String getLocalizedName()
-/* 172: */ {
-/* 173:135 */ return StatCollector.translateToLocal(getUnlocalizedName() + ".name");
-/* 174: */ }
-/* 175: */
-/* 176: */ public int getRenderType()
-/* 177: */ {
-/* 178:136 */ if (GT_Renderer_Block.INSTANCE == null) {
-/* 179:136 */ return super.getRenderType();
-/* 180: */ }
-/* 181:136 */ return GT_Renderer_Block.INSTANCE.mRenderID;
-/* 182: */ }
-/* 183: */
-/* 184: */ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 185: */ {
-/* 186:137 */ return false;
-/* 187: */ }
-/* 188: */
-/* 189: */ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 190: */ {
-/* 191:138 */ return true;
-/* 192: */ }
-/* 193: */
-/* 194: */ public boolean hasTileEntity(int aMeta)
-/* 195: */ {
-/* 196:139 */ return true;
-/* 197: */ }
-/* 198: */
-/* 199: */ public boolean renderAsNormalBlock()
-/* 200: */ {
-/* 201:140 */ return true;
-/* 202: */ }
-/* 203: */
-/* 204: */ public boolean isOpaqueCube()
-/* 205: */ {
-/* 206:141 */ return true;
-/* 207: */ }
-/* 208: */
-/* 209: */ public TileEntity createNewTileEntity(World aWorld, int aMeta)
-/* 210: */ {
-/* 211:142 */ return createTileEntity(aWorld, aMeta);
-/* 212: */ }
-/* 213: */
-/* 214: */ public IIcon getIcon(IBlockAccess aIBlockAccess, int aX, int aY, int aZ, int aSide)
-/* 215: */ {
-/* 216:143 */ return Blocks.stone.getIcon(0, 0);
-/* 217: */ }
-/* 218: */
-/* 219: */ public IIcon getIcon(int aSide, int aMeta)
-/* 220: */ {
-/* 221:144 */ return Blocks.stone.getIcon(0, 0);
-/* 222: */ }
-/* 223: */
-/* 224: */ @SideOnly(Side.CLIENT)
-/* 225: */ public void registerBlockIcons(IIconRegister aIconRegister) {}
-/* 226: */
-/* 227: */ public int getDamageValue(World aWorld, int aX, int aY, int aZ)
-/* 228: */ {
-/* 229:154 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 230:155 */ if ((tTileEntity != null) && ((tTileEntity instanceof GT_TileEntity_Ores))) {
-/* 231:155 */ return ((GT_TileEntity_Ores)tTileEntity).getMetaData();
-/* 232: */ }
-/* 233:156 */ return 0;
-/* 234: */ }
-/* 235: */
-/* 236: */ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block par5, int par6)
-/* 237: */ {
-/* 238:161 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 239:162 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 240:162 */ mTemporaryTileEntity.set((GT_TileEntity_Ores)tTileEntity);
-/* 241: */ }
-/* 242:163 */ super.breakBlock(aWorld, aX, aY, aZ, par5, par6);
-/* 243:164 */ aWorld.removeTileEntity(aX, aY, aZ);
-/* 244: */ }
-/* 245: */
-/* 246: */ public ArrayList<ItemStack> getDrops(World aWorld, int aX, int aY, int aZ, int aMeta, int aFortune)
-/* 247: */ {
-/* 248:169 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 249:170 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 250:170 */ return ((GT_TileEntity_Ores)tTileEntity).getDrops(aFortune);
-/* 251: */ }
-/* 252:171 */ return mTemporaryTileEntity.get() == null ? new ArrayList() : ((GT_TileEntity_Ores)mTemporaryTileEntity.get()).getDrops(aFortune);
-/* 253: */ }
-/* 254: */
-/* 255: */ public TileEntity createTileEntity(World aWorld, int aMeta)
-/* 256: */ {
-/* 257:176 */ return new GT_TileEntity_Ores();
-/* 258: */ }
-/* 259: */
-/* 260: */ @SideOnly(Side.CLIENT)
-/* 261: */ public void getSubBlocks(Item aItem, CreativeTabs aTab, List aList)
-/* 262: */ {
-/* 263:182 */ for (int i = 0; i < GregTech_API.sGeneratedMaterials.length; i++)
-/* 264: */ {
-/* 265:183 */ Materials tMaterial = GregTech_API.sGeneratedMaterials[i];
-/* 266:184 */ if ((tMaterial != null) && ((tMaterial.mTypes & 0x8) != 0))
-/* 267: */ {
-/* 268:185 */ aList.add(new ItemStack(aItem, 1, i));
-/* 269:186 */ aList.add(new ItemStack(aItem, 1, i + 1000));
-/* 270:187 */ aList.add(new ItemStack(aItem, 1, i + 2000));
-/* 271:188 */ aList.add(new ItemStack(aItem, 1, i + 3000));
-/* 272:189 */ aList.add(new ItemStack(aItem, 1, i + 4000));
-/* 273:190 */ aList.add(new ItemStack(aItem, 1, i + 16000));
-/* 274:191 */ aList.add(new ItemStack(aItem, 1, i + 17000));
-/* 275:192 */ aList.add(new ItemStack(aItem, 1, i + 18000));
-/* 276:193 */ aList.add(new ItemStack(aItem, 1, i + 19000));
-/* 277:194 */ aList.add(new ItemStack(aItem, 1, i + 20000));
-/* 278: */ }
-/* 279: */ }
-/* 280: */ }
-/* 281: */ }
+package gregtech.common.blocks;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.items.GT_Generic_Block;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.common.render.GT_Renderer_Block;
+import java.util.ArrayList;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.block.ITileEntityProvider;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.boss.EntityDragon;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class GT_Block_Ores
+ extends GT_Generic_Block
+ implements ITileEntityProvider
+{
+ public static ThreadLocal<GT_TileEntity_Ores> mTemporaryTileEntity = new ThreadLocal();
+
+ public GT_Block_Ores()
+ {
+ super(GT_Item_Ores.class, "gt.blockores", Material.rock);
+ this.isBlockContainer = true;
+ setStepSound(soundTypeStone);
+ setCreativeTab(GregTech_API.TAB_GREGTECH_ORES);
+ for (int i = 0; i < 16; i++) {
+ GT_ModHandler.addValuableOre(this, i, 1);
+ }
+ for (int i = 1; i < GregTech_API.sGeneratedMaterials.length; i++) {
+ if (GregTech_API.sGeneratedMaterials[i] != null)
+ {
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + i + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 1000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 2000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 3000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 4000) + ".name", getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 16000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 17000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 18000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 19000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + (i + 20000) + ".name", "Small " + getLocalizedName(GregTech_API.sGeneratedMaterials[i]));
+ if ((GregTech_API.sGeneratedMaterials[i].mTypes & 0x8) != 0)
+ {
+ GT_OreDictUnificator.registerOre(OrePrefixes.ore.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i));
+ GT_OreDictUnificator.registerOre(OrePrefixes.oreNetherrack.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 1000));
+ GT_OreDictUnificator.registerOre(OrePrefixes.oreEndstone.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 2000));
+ GT_OreDictUnificator.registerOre(OrePrefixes.oreBlackgranite.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 3000));
+ GT_OreDictUnificator.registerOre(OrePrefixes.oreRedgranite.get(GregTech_API.sGeneratedMaterials[i]), new ItemStack(this, 1, i + 4000));
+ }
+ }
+ }
+ }
+
+ public static boolean FUCKING_LOCK = false;
+
+ public void onNeighborChange(IBlockAccess aWorld, int aX, int aY, int aZ, int aTileX, int aTileY, int aTileZ)
+ {
+ if (!FUCKING_LOCK)
+ {
+ FUCKING_LOCK = true;
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ ((GT_TileEntity_Ores)tTileEntity).onUpdated();
+ }
+ }
+ FUCKING_LOCK = false;
+ }
+
+ public void onNeighborBlockChange(World aWorld, int aX, int aY, int aZ, Block aBlock)
+ {
+ if (!FUCKING_LOCK)
+ {
+ FUCKING_LOCK = true;
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ ((GT_TileEntity_Ores)tTileEntity).onUpdated();
+ }
+ }
+ FUCKING_LOCK = false;
+ }
+
+ public String getLocalizedName(Materials aMaterial) {
+ switch (aMaterial) {
+ case InfusedAir: case InfusedDull: case InfusedEarth: case InfusedEntropy: case InfusedFire: case InfusedOrder: case InfusedVis: case InfusedWater:
+ return aMaterial.mDefaultLocalName + " Infused Stone";
+ case Vermiculite: case Bentonite: case Kaolinite: case Talc: case BasalticMineralSand: case GraniticMineralSand: case GlauconiteSand: case CassiteriteSand: case GarnetSand: case QuartzSand: case Pitchblende: case FullersEarth:
+ return aMaterial.mDefaultLocalName;
+ }
+ return aMaterial.mDefaultLocalName + OrePrefixes.ore.mLocalizedMaterialPost;
+ }
+
+ public boolean onBlockEventReceived(World p_149696_1_, int p_149696_2_, int p_149696_3_, int p_149696_4_, int p_149696_5_, int p_149696_6_)
+ {
+ super.onBlockEventReceived(p_149696_1_, p_149696_2_, p_149696_3_, p_149696_4_, p_149696_5_, p_149696_6_);
+ TileEntity tileentity = p_149696_1_.getTileEntity(p_149696_2_, p_149696_3_, p_149696_4_);
+ return tileentity != null ? tileentity.receiveClientEvent(p_149696_5_, p_149696_6_) : false;
+ }
+
+ public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
+ {
+ return (!(entity instanceof EntityDragon)) && (super.canEntityDestroy(world, x, y, z, entity));
+ }
+
+ public String getHarvestTool(int aMeta)
+ {
+ return aMeta < 8 ? "pickaxe" : "shovel";
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return aMeta % 8;
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return 1.0F + getHarvestLevel(aWorld.getBlockMetadata(aX, aY, aZ)) * 1.0F;
+ }
+
+ public float getExplosionResistance(Entity par1Entity, World aWorld, int aX, int aY, int aZ, double explosionX, double explosionY, double explosionZ)
+ {
+ return 1.0F + getHarvestLevel(aWorld.getBlockMetadata(aX, aY, aZ)) * 1.0F;
+ }
+
+ protected boolean canSilkHarvest()
+ {
+ return false;
+ }
+
+ public String getUnlocalizedName()
+ {
+ return "gt.blockores";
+ }
+
+ public String getLocalizedName()
+ {
+ return StatCollector.translateToLocal(getUnlocalizedName() + ".name");
+ }
+
+ public int getRenderType()
+ {
+ if (GT_Renderer_Block.INSTANCE == null) {
+ return super.getRenderType();
+ }
+ return GT_Renderer_Block.INSTANCE.mRenderID;
+ }
+
+ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return true;
+ }
+
+ public boolean hasTileEntity(int aMeta)
+ {
+ return true;
+ }
+
+ public boolean renderAsNormalBlock()
+ {
+ return true;
+ }
+
+ public boolean isOpaqueCube()
+ {
+ return true;
+ }
+
+ public TileEntity createNewTileEntity(World aWorld, int aMeta)
+ {
+ return createTileEntity(aWorld, aMeta);
+ }
+
+ public IIcon getIcon(IBlockAccess aIBlockAccess, int aX, int aY, int aZ, int aSide)
+ {
+ return Blocks.stone.getIcon(0, 0);
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ return Blocks.stone.getIcon(0, 0);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerBlockIcons(IIconRegister aIconRegister) {}
+
+ public int getDamageValue(World aWorld, int aX, int aY, int aZ)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof GT_TileEntity_Ores))) {
+ return ((GT_TileEntity_Ores)tTileEntity).getMetaData();
+ }
+ return 0;
+ }
+
+ public void breakBlock(World aWorld, int aX, int aY, int aZ, Block par5, int par6)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ mTemporaryTileEntity.set((GT_TileEntity_Ores)tTileEntity);
+ }
+ super.breakBlock(aWorld, aX, aY, aZ, par5, par6);
+ aWorld.removeTileEntity(aX, aY, aZ);
+ }
+
+ public ArrayList<ItemStack> getDrops(World aWorld, int aX, int aY, int aZ, int aMeta, int aFortune)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ return ((GT_TileEntity_Ores)tTileEntity).getDrops(aFortune);
+ }
+ return mTemporaryTileEntity.get() == null ? new ArrayList() : ((GT_TileEntity_Ores)mTemporaryTileEntity.get()).getDrops(aFortune);
+ }
+
+ public TileEntity createTileEntity(World aWorld, int aMeta)
+ {
+ return new GT_TileEntity_Ores();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void getSubBlocks(Item aItem, CreativeTabs aTab, List aList)
+ {
+ for (int i = 0; i < GregTech_API.sGeneratedMaterials.length; i++)
+ {
+ Materials tMaterial = GregTech_API.sGeneratedMaterials[i];
+ if ((tMaterial != null) && ((tMaterial.mTypes & 0x8) != 0))
+ {
+ aList.add(new ItemStack(aItem, 1, i));
+ aList.add(new ItemStack(aItem, 1, i + 1000));
+ aList.add(new ItemStack(aItem, 1, i + 2000));
+ aList.add(new ItemStack(aItem, 1, i + 3000));
+ aList.add(new ItemStack(aItem, 1, i + 4000));
+ aList.add(new ItemStack(aItem, 1, i + 16000));
+ aList.add(new ItemStack(aItem, 1, i + 17000));
+ aList.add(new ItemStack(aItem, 1, i + 18000));
+ aList.add(new ItemStack(aItem, 1, i + 19000));
+ aList.add(new ItemStack(aItem, 1, i + 20000));
+ }
+ }
+ }
+}
/* 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/blocks/GT_Block_Stones_Abstract.java b/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java index fe427a0428..011a0e0614 100644 --- a/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java +++ b/main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java @@ -1,178 +1,178 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.GregTech_API;
-/* 6: */ import gregtech.api.enums.GT_Values;
-/* 7: */ import gregtech.api.enums.ItemList;
-/* 8: */ import gregtech.api.enums.Materials;
-/* 9: */ import gregtech.api.enums.OreDictNames;
-/* 10: */ import gregtech.api.enums.OrePrefixes;
-/* 11: */ import gregtech.api.interfaces.IIconContainer;
-/* 12: */ import gregtech.api.interfaces.IOreRecipeRegistrator;
-/* 13: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder;
-/* 14: */ import gregtech.api.items.GT_Generic_Block;
-/* 15: */ import gregtech.api.util.GT_ModHandler;
-/* 16: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
-/* 17: */ import gregtech.api.util.GT_Utility;
-/* 18: */ import java.util.List;
-/* 19: */ import java.util.Random;
-/* 20: */ import net.minecraft.block.Block;
-/* 21: */ import net.minecraft.block.material.Material;
-/* 22: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 23: */ import net.minecraft.creativetab.CreativeTabs;
-/* 24: */ import net.minecraft.entity.EnumCreatureType;
-/* 25: */ import net.minecraft.init.Blocks;
-/* 26: */ import net.minecraft.item.Item;
-/* 27: */ import net.minecraft.item.ItemBlock;
-/* 28: */ import net.minecraft.item.ItemStack;
-/* 29: */ import net.minecraft.util.IIcon;
-/* 30: */ import net.minecraft.util.StatCollector;
-/* 31: */ import net.minecraft.world.IBlockAccess;
-/* 32: */ import net.minecraft.world.World;
-/* 33: */
-/* 34: */ public class GT_Block_Stones_Abstract
-/* 35: */ extends GT_Generic_Block
-/* 36: */ implements IOreRecipeRegistrator
-/* 37: */ {
-/* 38: */ public GT_Block_Stones_Abstract(Class<? extends ItemBlock> aItemClass, String aName)
-/* 39: */ {
-/* 40: 31 */ super(aItemClass, aName, Material.rock);
-/* 41: 32 */ OrePrefixes.crafting.add(this);
-/* 42: 33 */ setStepSound(soundTypeStone);
-/* 43: 34 */ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
-/* 44: 35 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 0), new ItemStack(this, 1, 7));
-/* 45: 36 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 1), new ItemStack(this, 1, 0));
-/* 46: 37 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 2), new ItemStack(this, 1, 0));
-/* 47: 38 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 3), new ItemStack(this, 1, 0));
-/* 48: 39 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 4), new ItemStack(this, 1, 0));
-/* 49: 40 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 5), new ItemStack(this, 1, 0));
-/* 50: 41 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 6), new ItemStack(this, 1, 0));
-/* 51: 42 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 7), new ItemStack(this, 1, 0));
-/* 52: 43 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 8), new ItemStack(this, 1, 15));
-/* 53: 44 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 9), new ItemStack(this, 1, 8));
-/* 54: 45 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 10), new ItemStack(this, 1, 8));
-/* 55: 46 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 11), new ItemStack(this, 1, 8));
-/* 56: 47 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 12), new ItemStack(this, 1, 8));
-/* 57: 48 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 13), new ItemStack(this, 1, 8));
-/* 58: 49 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 14), new ItemStack(this, 1, 8));
-/* 59: 50 */ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 15), new ItemStack(this, 1, 8));
-/* 60: 51 */ GT_Values.RA.addAssemblerRecipe(new ItemStack(this, 1, 0), ItemList.Circuit_Integrated.getWithDamage(0L, 4L, new Object[0]), new ItemStack(this, 1, 3), 50, 4);
-/* 61: 52 */ GT_Values.RA.addAssemblerRecipe(new ItemStack(this, 1, 8), ItemList.Circuit_Integrated.getWithDamage(0L, 4L, new Object[0]), new ItemStack(this, 1, 11), 50, 4);
-/* 62: 53 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 6), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "f", "X", Character.valueOf('X'), new ItemStack(this, 1, 7) });
-/* 63: 54 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 14), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "f", "X", Character.valueOf('X'), new ItemStack(this, 1, 15) });
-/* 64: 55 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 4), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 3) });
-/* 65: 56 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 12), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 11) });
-/* 66: 57 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 1), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 0) });
-/* 67: 58 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 9), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 8) });
-/* 68: 59 */ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 3), new ItemStack(this, 1, 4), 16, 10);
-/* 69: 60 */ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 11), new ItemStack(this, 1, 12), 16, 10);
-/* 70: 61 */ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 0), new ItemStack(this, 1, 1), 16, 10);
-/* 71: 62 */ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 8), new ItemStack(this, 1, 9), 16, 10);
-/* 72: 63 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 3), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 0) });
-/* 73: 64 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 11), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 8) });
-/* 74: 65 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 3), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 7) });
-/* 75: 66 */ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 11), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 15) });
-/* 76: */ }
-/* 77: */
-/* 78: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
-/* 79: */ {
-/* 80: 71 */ if (aOreDictName.equals(OreDictNames.craftingLensWhite.toString()))
-/* 81: */ {
-/* 82: 72 */ GT_Values.RA.addLaserEngraverRecipe(new ItemStack(this, 1, 7), GT_Utility.copyAmount(0L, new Object[] { aStack }), new ItemStack(this, 1, 6), 50, 16);
-/* 83: 73 */ GT_Values.RA.addLaserEngraverRecipe(new ItemStack(this, 1, 15), GT_Utility.copyAmount(0L, new Object[] { aStack }), new ItemStack(this, 1, 14), 50, 16);
-/* 84: */ }
-/* 85: */ }
-/* 86: */
-/* 87: */ public String getHarvestTool(int aMeta)
-/* 88: */ {
-/* 89: 79 */ return "pickaxe";
-/* 90: */ }
-/* 91: */
-/* 92: */ public int getHarvestLevel(int aMeta)
-/* 93: */ {
-/* 94: 84 */ return 1;
-/* 95: */ }
-/* 96: */
-/* 97: */ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
-/* 98: */ {
-/* 99: 89 */ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ) * 3.0F;
-/* 100: */ }
-/* 101: */
-/* 102: */ public String getUnlocalizedName()
-/* 103: */ {
-/* 104: 92 */ return this.mUnlocalizedName;
-/* 105: */ }
-/* 106: */
-/* 107: */ public String getLocalizedName()
-/* 108: */ {
-/* 109: 93 */ return StatCollector.translateToLocal(this.mUnlocalizedName + ".name");
-/* 110: */ }
-/* 111: */
-/* 112: */ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 113: */ {
-/* 114: 94 */ return false;
-/* 115: */ }
-/* 116: */
-/* 117: */ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
-/* 118: */ {
-/* 119: 95 */ return true;
-/* 120: */ }
-/* 121: */
-/* 122: */ public boolean renderAsNormalBlock()
-/* 123: */ {
-/* 124: 96 */ return true;
-/* 125: */ }
-/* 126: */
-/* 127: */ public boolean isOpaqueCube()
-/* 128: */ {
-/* 129: 97 */ return true;
-/* 130: */ }
-/* 131: */
-/* 132: */ public IIcon getIcon(int aSide, int aMeta)
-/* 133: */ {
-/* 134: 98 */ if ((aMeta >= 0) && (aMeta < 16)) {
-/* 135: 98 */ return gregtech.api.enums.Textures.BlockIcons.GRANITES[aMeta].getIcon();
-/* 136: */ }
-/* 137: 98 */ return null;
-/* 138: */ }
-/* 139: */
-/* 140: */ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z)
-/* 141: */ {
-/* 142:102 */ return world.getBlockMetadata(x, y, z) % 8 < 3;
-/* 143: */ }
-/* 144: */
-/* 145: */ public int damageDropped(int par1)
-/* 146: */ {
-/* 147:107 */ return par1 % 8 == 0 ? par1 + 1 : par1;
-/* 148: */ }
-/* 149: */
-/* 150: */ public int getDamageValue(World par1World, int par2, int par3, int par4)
-/* 151: */ {
-/* 152:112 */ return par1World.getBlockMetadata(par2, par3, par4);
-/* 153: */ }
-/* 154: */
-/* 155: */ public int quantityDropped(Random par1Random)
-/* 156: */ {
-/* 157:117 */ return 1;
-/* 158: */ }
-/* 159: */
-/* 160: */ public Item getItemDropped(int par1, Random par2Random, int par3)
-/* 161: */ {
-/* 162:122 */ return Item.getItemFromBlock(this);
-/* 163: */ }
-/* 164: */
-/* 165: */ @SideOnly(Side.CLIENT)
-/* 166: */ public void registerBlockIcons(IIconRegister aIconRegister) {}
-/* 167: */
-/* 168: */ @SideOnly(Side.CLIENT)
-/* 169: */ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList)
-/* 170: */ {
-/* 171:133 */ for (int i = 0; i < 16; i++) {
-/* 172:133 */ aList.add(new ItemStack(aItem, 1, i));
-/* 173: */ }
-/* 174: */ }
-/* 175: */ }
+package gregtech.common.blocks;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OreDictNames;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IOreRecipeRegistrator;
+import gregtech.api.interfaces.internal.IGT_RecipeAdder;
+import gregtech.api.items.GT_Generic_Block;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler.RecipeBits;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.EnumCreatureType;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class GT_Block_Stones_Abstract
+ extends GT_Generic_Block
+ implements IOreRecipeRegistrator
+{
+ public GT_Block_Stones_Abstract(Class<? extends ItemBlock> aItemClass, String aName)
+ {
+ super(aItemClass, aName, Material.rock);
+ OrePrefixes.crafting.add(this);
+ setStepSound(soundTypeStone);
+ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 0), new ItemStack(this, 1, 7));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 1), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 2), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 3), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 4), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 5), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 6), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 7), new ItemStack(this, 1, 0));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 8), new ItemStack(this, 1, 15));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 9), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 10), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 11), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 12), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 13), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 14), new ItemStack(this, 1, 8));
+ GT_ModHandler.addSmeltingRecipe(new ItemStack(this, 1, 15), new ItemStack(this, 1, 8));
+ GT_Values.RA.addAssemblerRecipe(new ItemStack(this, 1, 0), ItemList.Circuit_Integrated.getWithDamage(0L, 4L, new Object[0]), new ItemStack(this, 1, 3), 50, 4);
+ GT_Values.RA.addAssemblerRecipe(new ItemStack(this, 1, 8), ItemList.Circuit_Integrated.getWithDamage(0L, 4L, new Object[0]), new ItemStack(this, 1, 11), 50, 4);
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 6), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "f", "X", Character.valueOf('X'), new ItemStack(this, 1, 7) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 14), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "f", "X", Character.valueOf('X'), new ItemStack(this, 1, 15) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 4), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 3) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 12), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 11) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 1), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 0) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 1, 9), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "h", "X", Character.valueOf('X'), new ItemStack(this, 1, 8) });
+ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 3), new ItemStack(this, 1, 4), 16, 10);
+ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 11), new ItemStack(this, 1, 12), 16, 10);
+ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 0), new ItemStack(this, 1, 1), 16, 10);
+ GT_Values.RA.addForgeHammerRecipe(new ItemStack(this, 1, 8), new ItemStack(this, 1, 9), 16, 10);
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 3), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 0) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 11), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 8) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 3), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 7) });
+ GT_ModHandler.addCraftingRecipe(new ItemStack(this, 4, 11), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XX", "XX", Character.valueOf('X'), new ItemStack(this, 4, 15) });
+ }
+
+ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
+ {
+ if (aOreDictName.equals(OreDictNames.craftingLensWhite.toString()))
+ {
+ GT_Values.RA.addLaserEngraverRecipe(new ItemStack(this, 1, 7), GT_Utility.copyAmount(0L, new Object[] { aStack }), new ItemStack(this, 1, 6), 50, 16);
+ GT_Values.RA.addLaserEngraverRecipe(new ItemStack(this, 1, 15), GT_Utility.copyAmount(0L, new Object[] { aStack }), new ItemStack(this, 1, 14), 50, 16);
+ }
+ }
+
+ public String getHarvestTool(int aMeta)
+ {
+ return "pickaxe";
+ }
+
+ public int getHarvestLevel(int aMeta)
+ {
+ return 1;
+ }
+
+ public float getBlockHardness(World aWorld, int aX, int aY, int aZ)
+ {
+ return this.blockHardness = Blocks.stone.getBlockHardness(aWorld, aX, aY, aZ) * 3.0F;
+ }
+
+ public String getUnlocalizedName()
+ {
+ return this.mUnlocalizedName;
+ }
+
+ public String getLocalizedName()
+ {
+ return StatCollector.translateToLocal(this.mUnlocalizedName + ".name");
+ }
+
+ public boolean canBeReplacedByLeaves(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return false;
+ }
+
+ public boolean isNormalCube(IBlockAccess aWorld, int aX, int aY, int aZ)
+ {
+ return true;
+ }
+
+ public boolean renderAsNormalBlock()
+ {
+ return true;
+ }
+
+ public boolean isOpaqueCube()
+ {
+ return true;
+ }
+
+ public IIcon getIcon(int aSide, int aMeta)
+ {
+ if ((aMeta >= 0) && (aMeta < 16)) {
+ return gregtech.api.enums.Textures.BlockIcons.GRANITES[aMeta].getIcon();
+ }
+ return null;
+ }
+
+ public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z)
+ {
+ return world.getBlockMetadata(x, y, z) % 8 < 3;
+ }
+
+ public int damageDropped(int par1)
+ {
+ return par1 % 8 == 0 ? par1 + 1 : par1;
+ }
+
+ public int getDamageValue(World par1World, int par2, int par3, int par4)
+ {
+ return par1World.getBlockMetadata(par2, par3, par4);
+ }
+
+ public int quantityDropped(Random par1Random)
+ {
+ return 1;
+ }
+
+ public Item getItemDropped(int par1, Random par2Random, int par3)
+ {
+ return Item.getItemFromBlock(this);
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerBlockIcons(IIconRegister aIconRegister) {}
+
+ @SideOnly(Side.CLIENT)
+ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList)
+ {
+ for (int i = 0; i < 16; i++) {
+ aList.add(new ItemStack(aItem, 1, i));
+ }
+ }
+}
/* 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/blocks/GT_Item_Casings1.java b/main/java/gregtech/common/blocks/GT_Item_Casings1.java index 7da8304775..3dc1dcb213 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Casings1.java +++ b/main/java/gregtech/common/blocks/GT_Item_Casings1.java @@ -1,32 +1,32 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import java.util.List;
-/* 4: */ import net.minecraft.block.Block;
-/* 5: */ import net.minecraft.entity.player.EntityPlayer;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */
-/* 8: */ public class GT_Item_Casings1
-/* 9: */ extends GT_Item_Casings_Abstract
-/* 10: */ {
-/* 11: */ public GT_Item_Casings1(Block par1)
-/* 12: */ {
-/* 13:11 */ super(par1);
-/* 14: */ }
-/* 15: */
-/* 16: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
-/* 17: */ {
-/* 18:16 */ super.addInformation(aStack, aPlayer, aList, aF3_H);
-/* 19:17 */ switch (getDamage(aStack))
-/* 20: */ {
-/* 21: */ case 12:
-/* 22:18 */ aList.add(this.mCoil01Tooltip); break;
-/* 23: */ case 13:
-/* 24:19 */ aList.add(this.mCoil02Tooltip); break;
-/* 25: */ case 14:
-/* 26:20 */ aList.add(this.mCoil03Tooltip);
-/* 27: */ }
-/* 28: */ }
-/* 29: */ }
+package gregtech.common.blocks;
+
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Item_Casings1
+ extends GT_Item_Casings_Abstract
+{
+ public GT_Item_Casings1(Block par1)
+ {
+ super(par1);
+ }
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
+ {
+ super.addInformation(aStack, aPlayer, aList, aF3_H);
+ switch (getDamage(aStack))
+ {
+ case 12:
+ aList.add(this.mCoil01Tooltip); break;
+ case 13:
+ aList.add(this.mCoil02Tooltip); break;
+ case 14:
+ aList.add(this.mCoil03Tooltip);
+ }
+ }
+}
/* 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/blocks/GT_Item_Casings2.java b/main/java/gregtech/common/blocks/GT_Item_Casings2.java index 7f50676852..3ff52142ff 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Casings2.java +++ b/main/java/gregtech/common/blocks/GT_Item_Casings2.java @@ -1,28 +1,28 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import java.util.List;
-/* 4: */ import net.minecraft.block.Block;
-/* 5: */ import net.minecraft.entity.player.EntityPlayer;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */
-/* 8: */ public class GT_Item_Casings2
-/* 9: */ extends GT_Item_Casings_Abstract
-/* 10: */ {
-/* 11: */ public GT_Item_Casings2(Block par1)
-/* 12: */ {
-/* 13:11 */ super(par1);
-/* 14: */ }
-/* 15: */
-/* 16: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
-/* 17: */ {
-/* 18:16 */ super.addInformation(aStack, aPlayer, aList, aF3_H);
-/* 19:17 */ switch (getDamage(aStack))
-/* 20: */ {
-/* 21: */ case 8:
-/* 22:18 */ aList.add(this.mBlastProofTooltip);
-/* 23: */ }
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.blocks;
+
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Item_Casings2
+ extends GT_Item_Casings_Abstract
+{
+ public GT_Item_Casings2(Block par1)
+ {
+ super(par1);
+ }
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
+ {
+ super.addInformation(aStack, aPlayer, aList, aF3_H);
+ switch (getDamage(aStack))
+ {
+ case 8:
+ aList.add(this.mBlastProofTooltip);
+ }
+ }
+}
/* 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/blocks/GT_Item_Casings3.java b/main/java/gregtech/common/blocks/GT_Item_Casings3.java index b12daf4fc2..da2d8eda09 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Casings3.java +++ b/main/java/gregtech/common/blocks/GT_Item_Casings3.java @@ -1,15 +1,15 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import net.minecraft.block.Block;
-/* 4: */
-/* 5: */ public class GT_Item_Casings3
-/* 6: */ extends GT_Item_Casings_Abstract
-/* 7: */ {
-/* 8: */ public GT_Item_Casings3(Block par1)
-/* 9: */ {
-/* ::7 */ super(par1);
-/* ;: */ }
-/* <: */ }
+package gregtech.common.blocks;
+
+import net.minecraft.block.Block;
+
+public class GT_Item_Casings3
+ extends GT_Item_Casings_Abstract
+{
+ public GT_Item_Casings3(Block par1)
+ {
+ super(par1);
+ }
+}
/* 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/blocks/GT_Item_Casings4.java b/main/java/gregtech/common/blocks/GT_Item_Casings4.java index d7a7f596d0..f3135b5a89 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Casings4.java +++ b/main/java/gregtech/common/blocks/GT_Item_Casings4.java @@ -1,15 +1,15 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import net.minecraft.block.Block;
-/* 4: */
-/* 5: */ public class GT_Item_Casings4
-/* 6: */ extends GT_Item_Casings_Abstract
-/* 7: */ {
-/* 8: */ public GT_Item_Casings4(Block par1)
-/* 9: */ {
-/* ::7 */ super(par1);
-/* ;: */ }
-/* <: */ }
+package gregtech.common.blocks;
+
+import net.minecraft.block.Block;
+
+public class GT_Item_Casings4
+ extends GT_Item_Casings_Abstract
+{
+ public GT_Item_Casings4(Block par1)
+ {
+ super(par1);
+ }
+}
/* 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/blocks/GT_Item_Casings_Abstract.java b/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java index 26a7df8a03..b3ed47ab86 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java +++ b/main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java @@ -1,48 +1,48 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.util.GT_LanguageManager;
-/* 5: */ import java.util.List;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.item.ItemBlock;
-/* 9: */ import net.minecraft.item.ItemStack;
-/* 10: */
-/* 11: */ public abstract class GT_Item_Casings_Abstract
-/* 12: */ extends ItemBlock
-/* 13: */ {
-/* 14: */ public GT_Item_Casings_Abstract(Block par1)
-/* 15: */ {
-/* 16:15 */ super(par1);
-/* 17:16 */ setMaxDamage(0);
-/* 18:17 */ setHasSubtypes(true);
-/* 19:18 */ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
-/* 20: */ }
-/* 21: */
-/* 22: */ public int getMetadata(int aMeta)
-/* 23: */ {
-/* 24:23 */ return aMeta;
-/* 25: */ }
-/* 26: */
-/* 27:26 */ protected final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
-/* 28:27 */ protected final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
-/* 29:28 */ protected final String mCoil01Tooltip = GT_LanguageManager.addStringLocalization("gt.coil01tooltip", "Base Heating Capacity = 1800 Kelvin");
-/* 30:29 */ protected final String mCoil02Tooltip = GT_LanguageManager.addStringLocalization("gt.coil02tooltip", "Base Heating Capacity = 2700 Kelvin");
-/* 31:30 */ protected final String mCoil03Tooltip = GT_LanguageManager.addStringLocalization("gt.coil03tooltip", "Base Heating Capacity = 3600 Kelvin");
-/* 32:31 */ protected final String mBlastProofTooltip = GT_LanguageManager.addStringLocalization("gt.blastprooftooltip", "This Block is Blast Proof");
-/* 33: */
-/* 34: */ public String getUnlocalizedName(ItemStack aStack)
-/* 35: */ {
-/* 36:35 */ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
-/* 37: */ }
-/* 38: */
-/* 39: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
-/* 40: */ {
-/* 41:40 */ super.addInformation(aStack, aPlayer, aList, aF3_H);
-/* 42:41 */ aList.add(this.mNoMobsToolTip);
-/* 43:42 */ aList.add(this.mNoTileEntityToolTip);
-/* 44: */ }
-/* 45: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.util.GT_LanguageManager;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+
+public abstract class GT_Item_Casings_Abstract
+ extends ItemBlock
+{
+ public GT_Item_Casings_Abstract(Block par1)
+ {
+ super(par1);
+ setMaxDamage(0);
+ setHasSubtypes(true);
+ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
+ }
+
+ public int getMetadata(int aMeta)
+ {
+ return aMeta;
+ }
+
+ protected final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
+ protected final String mNoTileEntityToolTip = GT_LanguageManager.addStringLocalization("gt.notileentityinthisblock", "This is NOT a TileEntity!");
+ protected final String mCoil01Tooltip = GT_LanguageManager.addStringLocalization("gt.coil01tooltip", "Base Heating Capacity = 1800 Kelvin");
+ protected final String mCoil02Tooltip = GT_LanguageManager.addStringLocalization("gt.coil02tooltip", "Base Heating Capacity = 2700 Kelvin");
+ protected final String mCoil03Tooltip = GT_LanguageManager.addStringLocalization("gt.coil03tooltip", "Base Heating Capacity = 3600 Kelvin");
+ protected final String mBlastProofTooltip = GT_LanguageManager.addStringLocalization("gt.blastprooftooltip", "This Block is Blast Proof");
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
+ }
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
+ {
+ super.addInformation(aStack, aPlayer, aList, aF3_H);
+ aList.add(this.mNoMobsToolTip);
+ aList.add(this.mNoTileEntityToolTip);
+ }
+}
/* 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/blocks/GT_Item_Concretes.java b/main/java/gregtech/common/blocks/GT_Item_Concretes.java index 37b3fe3d82..0034859c63 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Concretes.java +++ b/main/java/gregtech/common/blocks/GT_Item_Concretes.java @@ -1,27 +1,27 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.util.GT_LanguageManager;
-/* 4: */ import java.util.List;
-/* 5: */ import net.minecraft.block.Block;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Item_Concretes
-/* 10: */ extends GT_Item_Stones_Abstract
-/* 11: */ {
-/* 12: */ public GT_Item_Concretes(Block par1)
-/* 13: */ {
-/* 14:13 */ super(par1);
-/* 15: */ }
-/* 16: */
-/* 17:16 */ private final String mRunFasterToolTip = GT_LanguageManager.addStringLocalization("gt.runfastertooltip", "You can walk faster on this Block");
-/* 18: */
-/* 19: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
-/* 20: */ {
-/* 21:20 */ super.addInformation(aStack, aPlayer, aList, aF3_H);
-/* 22:21 */ aList.add(this.mRunFasterToolTip);
-/* 23: */ }
-/* 24: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.util.GT_LanguageManager;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Item_Concretes
+ extends GT_Item_Stones_Abstract
+{
+ public GT_Item_Concretes(Block par1)
+ {
+ super(par1);
+ }
+
+ private final String mRunFasterToolTip = GT_LanguageManager.addStringLocalization("gt.runfastertooltip", "You can walk faster on this Block");
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
+ {
+ super.addInformation(aStack, aPlayer, aList, aF3_H);
+ aList.add(this.mRunFasterToolTip);
+ }
+}
/* 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/blocks/GT_Item_Granites.java b/main/java/gregtech/common/blocks/GT_Item_Granites.java index e026edbe6f..4604d07740 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Granites.java +++ b/main/java/gregtech/common/blocks/GT_Item_Granites.java @@ -1,15 +1,15 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import net.minecraft.block.Block;
-/* 4: */
-/* 5: */ public class GT_Item_Granites
-/* 6: */ extends GT_Item_Stones_Abstract
-/* 7: */ {
-/* 8: */ public GT_Item_Granites(Block par1)
-/* 9: */ {
-/* ::7 */ super(par1);
-/* ;: */ }
-/* <: */ }
+package gregtech.common.blocks;
+
+import net.minecraft.block.Block;
+
+public class GT_Item_Granites
+ extends GT_Item_Stones_Abstract
+{
+ public GT_Item_Granites(Block par1)
+ {
+ super(par1);
+ }
+}
/* 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/blocks/GT_Item_Machines.java b/main/java/gregtech/common/blocks/GT_Item_Machines.java index 36c7482f64..ba9bb6152b 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Machines.java +++ b/main/java/gregtech/common/blocks/GT_Item_Machines.java @@ -1,169 +1,169 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.GT_Values;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.util.GT_ItsNotMyFaultException;
-/* 8: */ import gregtech.api.util.GT_LanguageManager;
-/* 9: */ import gregtech.api.util.GT_Log;
-/* 10: */ import gregtech.api.util.GT_Utility;
-/* 11: */ import java.util.List;
-/* 12: */ import net.minecraft.block.Block;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.item.ItemBlock;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.nbt.NBTTagCompound;
-/* 17: */ import net.minecraft.tileentity.TileEntity;
-/* 18: */ import net.minecraft.util.EnumChatFormatting;
-/* 19: */ import net.minecraft.world.World;
-/* 20: */
-/* 21: */ public class GT_Item_Machines
-/* 22: */ extends ItemBlock
-/* 23: */ {
-/* 24: */ public GT_Item_Machines(Block par1)
-/* 25: */ {
-/* 26: 25 */ super(par1);
-/* 27: 26 */ setMaxDamage(0);
-/* 28: 27 */ setHasSubtypes(true);
-/* 29: 28 */ setCreativeTab(GregTech_API.TAB_GREGTECH);
-/* 30: */ }
-/* 31: */
-/* 32: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean par4)
-/* 33: */ {
-/* 34: */ try
-/* 35: */ {
-/* 36: 34 */ int tDamage = getDamage(aStack);
-/* 37: 36 */ if ((tDamage <= 0) || (tDamage >= GregTech_API.METATILEENTITIES.length)) {
-/* 38: 36 */ return;
-/* 39: */ }
-/* 40: 38 */ if (tDamage == 0)
-/* 41: */ {
-/* 42: 39 */ aList.add("WARNING, THE EXISTENCE OF THIS ITEM IS A BUG");
-/* 43: 40 */ aList.add("IF YOU GOT IT IN SURVIVAL THEN PLEASE REPORT IT");
-/* 44: */ }
-/* 45: */ else
-/* 46: */ {
-/* 47: 42 */ TileEntity temp = GregTech_API.sBlockMachines.createTileEntity(aPlayer == null ? GT_Values.DW : aPlayer.worldObj, GregTech_API.METATILEENTITIES[tDamage] == null ? 0 : GregTech_API.METATILEENTITIES[tDamage].getTileEntityBaseType());
-/* 48: 43 */ if (temp != null)
-/* 49: */ {
-/* 50: 44 */ temp.setWorldObj(aPlayer == null ? GT_Values.DW : aPlayer.worldObj);temp.xCoord = 0;temp.yCoord = 0;temp.zCoord = 0;
-/* 51: 45 */ if ((temp instanceof IGregTechTileEntity))
-/* 52: */ {
-/* 53: 46 */ IGregTechTileEntity tTileEntity = (IGregTechTileEntity)temp;
-/* 54: 47 */ tTileEntity.setInitialValuesAsNBT(new NBTTagCompound(), (short)tDamage);
-/* 55: 48 */ if (tTileEntity.getDescription() != null)
-/* 56: */ {
-/* 57: 48 */ int i = 0;
-/* 58: 48 */ for (String tDescription : tTileEntity.getDescription()) {
-/* 59: 48 */ if (GT_Utility.isStringValid(tDescription)) {
-/* 60: 48 */ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_DESCRIPTION_" + tDamage + "_Index_" + i++, tDescription, !GregTech_API.sPostloadFinished));
-/* 61: */ }
-/* 62: */ }
-/* 63: */ }
-/* 64: 49 */ if (tTileEntity.getEUCapacity() > 0L)
-/* 65: */ {
-/* 66: 50 */ if (tTileEntity.getInputVoltage() > 0L) {
-/* 67: 50 */ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_IN", "Voltage IN: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + tTileEntity.getInputVoltage() + " (" + GT_Values.VN[GT_Utility.getTier(tTileEntity.getInputVoltage())] + ")" + EnumChatFormatting.GRAY);
-/* 68: */ }
-/* 69: 51 */ if (tTileEntity.getOutputVoltage() > 0L) {
-/* 70: 51 */ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_OUT", "Voltage OUT: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + tTileEntity.getOutputVoltage() + " (" + GT_Values.VN[GT_Utility.getTier(tTileEntity.getOutputVoltage())] + ")" + EnumChatFormatting.GRAY);
-/* 71: */ }
-/* 72: 52 */ if (tTileEntity.getOutputAmperage() > 1L) {
-/* 73: 52 */ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_AMOUNT", "Amperage: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW + tTileEntity.getOutputAmperage() + EnumChatFormatting.GRAY);
-/* 74: */ }
-/* 75: 53 */ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_STORE", "Capacity: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.BLUE + tTileEntity.getEUCapacity() + EnumChatFormatting.GRAY);
-/* 76: */ }
-/* 77: */ }
-/* 78: */ }
-/* 79: */ }
-/* 80: 59 */ NBTTagCompound aNBT = aStack.getTagCompound();
-/* 81: 61 */ if (aNBT != null)
-/* 82: */ {
-/* 83: 62 */ if (aNBT.getBoolean("mMuffler")) {
-/* 84: 62 */ aList.add(GT_LanguageManager.addStringLocalization("GT_TileEntity_MUFFLER", "has Muffler Upgrade", !GregTech_API.sPostloadFinished));
-/* 85: */ }
-/* 86: 63 */ if (aNBT.getBoolean("mSteamConverter")) {
-/* 87: 63 */ aList.add(GT_LanguageManager.addStringLocalization("GT_TileEntity_STEAMCONVERTER", "has Steam Upgrade", !GregTech_API.sPostloadFinished));
-/* 88: */ }
-/* 89: 64 */ int tAmount = 0;
-/* 90: 65 */ if ((tAmount = aNBT.getByte("mSteamTanks")) > 0) {
-/* 91: 65 */ aList.add(tAmount + " " + GT_LanguageManager.addStringLocalization("GT_TileEntity_STEAMTANKS", "Steam Tank Upgrades", !GregTech_API.sPostloadFinished));
-/* 92: */ }
-/* 93: */ }
-/* 94: */ }
-/* 95: */ catch (Throwable e)
-/* 96: */ {
-/* 97: 68 */ e.printStackTrace(GT_Log.err);
-/* 98: */ }
-/* 99: */ }
-/* 100: */
-/* 101: */ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
-/* 102: */ {
-/* 103: 74 */ return false;
-/* 104: */ }
-/* 105: */
-/* 106: */ public String getUnlocalizedName(ItemStack aStack)
-/* 107: */ {
-/* 108: 79 */ short tDamage = (short)getDamage(aStack);
-/* 109: 80 */ if ((tDamage < 0) || (tDamage >= GregTech_API.METATILEENTITIES.length)) {
-/* 110: 80 */ return "";
-/* 111: */ }
-/* 112: 81 */ if (GregTech_API.METATILEENTITIES[tDamage] != null) {
-/* 113: 82 */ return getUnlocalizedName() + "." + GregTech_API.METATILEENTITIES[tDamage].getMetaName();
-/* 114: */ }
-/* 115: 84 */ return "";
-/* 116: */ }
-/* 117: */
-/* 118: */ public void onCreated(ItemStack aStack, World aWorld, EntityPlayer aPlayer)
-/* 119: */ {
-/* 120: 89 */ super.onCreated(aStack, aWorld, aPlayer);
-/* 121: 90 */ short tDamage = (short)getDamage(aStack);
-/* 122: 91 */ if ((tDamage < 0) || ((tDamage >= GregTech_API.METATILEENTITIES.length) && (GregTech_API.METATILEENTITIES[tDamage] != null))) {
-/* 123: 91 */ GregTech_API.METATILEENTITIES[tDamage].onCreated(aStack, aWorld, aPlayer);
-/* 124: */ }
-/* 125: */ }
-/* 126: */
-/* 127: */ public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, float hitX, float hitY, float hitZ, int aMeta)
-/* 128: */ {
-/* 129: 96 */ short tDamage = (short)getDamage(aStack);
-/* 130: 97 */ if (tDamage > 0)
-/* 131: */ {
-/* 132: 98 */ if (GregTech_API.METATILEENTITIES[tDamage] == null) {
-/* 133: 98 */ return false;
-/* 134: */ }
-/* 135: 99 */ int tMetaData = GregTech_API.METATILEENTITIES[tDamage].getTileEntityBaseType();
-/* 136:100 */ if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, tMetaData, 3)) {
-/* 137:100 */ return false;
-/* 138: */ }
-/* 139:101 */ if (aWorld.getBlock(aX, aY, aZ) != this.field_150939_a) {
-/* 140:101 */ throw new GT_ItsNotMyFaultException("Failed to place Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it.");
-/* 141: */ }
-/* 142:102 */ if (aWorld.getBlockMetadata(aX, aY, aZ) != tMetaData) {
-/* 143:102 */ throw new GT_ItsNotMyFaultException("Failed to set the MetaValue of the Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it.");
-/* 144: */ }
-/* 145:103 */ IGregTechTileEntity tTileEntity = (IGregTechTileEntity)aWorld.getTileEntity(aX, aY, aZ);
-/* 146:104 */ if (tTileEntity != null)
-/* 147: */ {
-/* 148:105 */ tTileEntity.setInitialValuesAsNBT(tTileEntity.isServerSide() ? aStack.getTagCompound() : null, tDamage);
-/* 149:106 */ if (aPlayer != null) {
-/* 150:106 */ tTileEntity.setOwnerName(aPlayer.getDisplayName());
-/* 151: */ }
-/* 152:107 */ tTileEntity.getMetaTileEntity().initDefaultModes(aStack.getTagCompound());
-/* 153: */ }
-/* 154: */ }
-/* 155:110 */ else if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, tDamage, 3))
-/* 156: */ {
-/* 157:110 */ return false;
-/* 158: */ }
-/* 159:113 */ if (aWorld.getBlock(aX, aY, aZ) == this.field_150939_a)
-/* 160: */ {
-/* 161:114 */ this.field_150939_a.onBlockPlacedBy(aWorld, aX, aY, aZ, aPlayer, aStack);
-/* 162:115 */ this.field_150939_a.onPostBlockPlaced(aWorld, aX, aY, aZ, tDamage);
-/* 163: */ }
-/* 164:117 */ return true;
-/* 165: */ }
-/* 166: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_ItsNotMyFaultException;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.world.World;
+
+public class GT_Item_Machines
+ extends ItemBlock
+{
+ public GT_Item_Machines(Block par1)
+ {
+ super(par1);
+ setMaxDamage(0);
+ setHasSubtypes(true);
+ setCreativeTab(GregTech_API.TAB_GREGTECH);
+ }
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean par4)
+ {
+ try
+ {
+ int tDamage = getDamage(aStack);
+ if ((tDamage <= 0) || (tDamage >= GregTech_API.METATILEENTITIES.length)) {
+ return;
+ }
+ if (tDamage == 0)
+ {
+ aList.add("WARNING, THE EXISTENCE OF THIS ITEM IS A BUG");
+ aList.add("IF YOU GOT IT IN SURVIVAL THEN PLEASE REPORT IT");
+ }
+ else
+ {
+ TileEntity temp = GregTech_API.sBlockMachines.createTileEntity(aPlayer == null ? GT_Values.DW : aPlayer.worldObj, GregTech_API.METATILEENTITIES[tDamage] == null ? 0 : GregTech_API.METATILEENTITIES[tDamage].getTileEntityBaseType());
+ if (temp != null)
+ {
+ temp.setWorldObj(aPlayer == null ? GT_Values.DW : aPlayer.worldObj);temp.xCoord = 0;temp.yCoord = 0;temp.zCoord = 0;
+ if ((temp instanceof IGregTechTileEntity))
+ {
+ IGregTechTileEntity tTileEntity = (IGregTechTileEntity)temp;
+ tTileEntity.setInitialValuesAsNBT(new NBTTagCompound(), (short)tDamage);
+ if (tTileEntity.getDescription() != null)
+ {
+ int i = 0;
+ for (String tDescription : tTileEntity.getDescription()) {
+ if (GT_Utility.isStringValid(tDescription)) {
+ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_DESCRIPTION_" + tDamage + "_Index_" + i++, tDescription, !GregTech_API.sPostloadFinished));
+ }
+ }
+ }
+ if (tTileEntity.getEUCapacity() > 0L)
+ {
+ if (tTileEntity.getInputVoltage() > 0L) {
+ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_IN", "Voltage IN: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + tTileEntity.getInputVoltage() + " (" + GT_Values.VN[GT_Utility.getTier(tTileEntity.getInputVoltage())] + ")" + EnumChatFormatting.GRAY);
+ }
+ if (tTileEntity.getOutputVoltage() > 0L) {
+ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_OUT", "Voltage OUT: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.GREEN + tTileEntity.getOutputVoltage() + " (" + GT_Values.VN[GT_Utility.getTier(tTileEntity.getOutputVoltage())] + ")" + EnumChatFormatting.GRAY);
+ }
+ if (tTileEntity.getOutputAmperage() > 1L) {
+ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_AMOUNT", "Amperage: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.YELLOW + tTileEntity.getOutputAmperage() + EnumChatFormatting.GRAY);
+ }
+ aList.add(GT_LanguageManager.addStringLocalization("TileEntity_EUp_STORE", "Capacity: ", !GregTech_API.sPostloadFinished) + EnumChatFormatting.BLUE + tTileEntity.getEUCapacity() + EnumChatFormatting.GRAY);
+ }
+ }
+ }
+ }
+ NBTTagCompound aNBT = aStack.getTagCompound();
+ if (aNBT != null)
+ {
+ if (aNBT.getBoolean("mMuffler")) {
+ aList.add(GT_LanguageManager.addStringLocalization("GT_TileEntity_MUFFLER", "has Muffler Upgrade", !GregTech_API.sPostloadFinished));
+ }
+ if (aNBT.getBoolean("mSteamConverter")) {
+ aList.add(GT_LanguageManager.addStringLocalization("GT_TileEntity_STEAMCONVERTER", "has Steam Upgrade", !GregTech_API.sPostloadFinished));
+ }
+ int tAmount = 0;
+ if ((tAmount = aNBT.getByte("mSteamTanks")) > 0) {
+ aList.add(tAmount + " " + GT_LanguageManager.addStringLocalization("GT_TileEntity_STEAMTANKS", "Steam Tank Upgrades", !GregTech_API.sPostloadFinished));
+ }
+ }
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+
+ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
+ {
+ return false;
+ }
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ short tDamage = (short)getDamage(aStack);
+ if ((tDamage < 0) || (tDamage >= GregTech_API.METATILEENTITIES.length)) {
+ return "";
+ }
+ if (GregTech_API.METATILEENTITIES[tDamage] != null) {
+ return getUnlocalizedName() + "." + GregTech_API.METATILEENTITIES[tDamage].getMetaName();
+ }
+ return "";
+ }
+
+ public void onCreated(ItemStack aStack, World aWorld, EntityPlayer aPlayer)
+ {
+ super.onCreated(aStack, aWorld, aPlayer);
+ short tDamage = (short)getDamage(aStack);
+ if ((tDamage < 0) || ((tDamage >= GregTech_API.METATILEENTITIES.length) && (GregTech_API.METATILEENTITIES[tDamage] != null))) {
+ GregTech_API.METATILEENTITIES[tDamage].onCreated(aStack, aWorld, aPlayer);
+ }
+ }
+
+ public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, float hitX, float hitY, float hitZ, int aMeta)
+ {
+ short tDamage = (short)getDamage(aStack);
+ if (tDamage > 0)
+ {
+ if (GregTech_API.METATILEENTITIES[tDamage] == null) {
+ return false;
+ }
+ int tMetaData = GregTech_API.METATILEENTITIES[tDamage].getTileEntityBaseType();
+ if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, tMetaData, 3)) {
+ return false;
+ }
+ if (aWorld.getBlock(aX, aY, aZ) != this.field_150939_a) {
+ throw new GT_ItsNotMyFaultException("Failed to place Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it.");
+ }
+ if (aWorld.getBlockMetadata(aX, aY, aZ) != tMetaData) {
+ throw new GT_ItsNotMyFaultException("Failed to set the MetaValue of the Block even though World.setBlock returned true. It COULD be MCPC/Bukkit causing that. In case you really have that installed, don't report this Bug to me, I don't know how to fix it.");
+ }
+ IGregTechTileEntity tTileEntity = (IGregTechTileEntity)aWorld.getTileEntity(aX, aY, aZ);
+ if (tTileEntity != null)
+ {
+ tTileEntity.setInitialValuesAsNBT(tTileEntity.isServerSide() ? aStack.getTagCompound() : null, tDamage);
+ if (aPlayer != null) {
+ tTileEntity.setOwnerName(aPlayer.getDisplayName());
+ }
+ tTileEntity.getMetaTileEntity().initDefaultModes(aStack.getTagCompound());
+ }
+ }
+ else if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, tDamage, 3))
+ {
+ return false;
+ }
+ if (aWorld.getBlock(aX, aY, aZ) == this.field_150939_a)
+ {
+ this.field_150939_a.onBlockPlacedBy(aWorld, aX, aY, aZ, aPlayer, aStack);
+ this.field_150939_a.onPostBlockPlaced(aWorld, aX, aY, aZ, tDamage);
+ }
+ return true;
+ }
+}
/* 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/blocks/GT_Item_Ores.java b/main/java/gregtech/common/blocks/GT_Item_Ores.java index 4be045ee43..38b9b2fb69 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Ores.java +++ b/main/java/gregtech/common/blocks/GT_Item_Ores.java @@ -1,57 +1,57 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import net.minecraft.block.Block;
-/* 5: */ import net.minecraft.entity.player.EntityPlayer;
-/* 6: */ import net.minecraft.item.ItemBlock;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */ import net.minecraft.world.World;
-/* 9: */
-/* 10: */ public class GT_Item_Ores
-/* 11: */ extends ItemBlock
-/* 12: */ {
-/* 13: */ public GT_Item_Ores(Block par1)
-/* 14: */ {
-/* 15:12 */ super(par1);
-/* 16:13 */ setMaxDamage(0);
-/* 17:14 */ setHasSubtypes(true);
-/* 18:15 */ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
-/* 19: */ }
-/* 20: */
-/* 21: */ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
-/* 22: */ {
-/* 23:20 */ return false;
-/* 24: */ }
-/* 25: */
-/* 26: */ public String getUnlocalizedName(ItemStack aStack)
-/* 27: */ {
-/* 28:25 */ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
-/* 29: */ }
-/* 30: */
-/* 31: */ public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, float hitX, float hitY, float hitZ, int aMeta)
-/* 32: */ {
-/* 33:30 */ short tDamage = (short)getDamage(aStack);
-/* 34:31 */ if (tDamage > 0)
-/* 35: */ {
-/* 36:32 */ if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, GT_TileEntity_Ores.getHarvestData(tDamage), 3)) {
-/* 37:32 */ return false;
-/* 38: */ }
-/* 39:33 */ GT_TileEntity_Ores tTileEntity = (GT_TileEntity_Ores)aWorld.getTileEntity(aX, aY, aZ);
-/* 40:34 */ tTileEntity.mMetaData = tDamage;
-/* 41:35 */ tTileEntity.mNatural = false;
-/* 42: */ }
-/* 43:37 */ else if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, 0, 3))
-/* 44: */ {
-/* 45:37 */ return false;
-/* 46: */ }
-/* 47:40 */ if (aWorld.getBlock(aX, aY, aZ) == this.field_150939_a)
-/* 48: */ {
-/* 49:41 */ this.field_150939_a.onBlockPlacedBy(aWorld, aX, aY, aZ, aPlayer, aStack);
-/* 50:42 */ this.field_150939_a.onPostBlockPlaced(aWorld, aX, aY, aZ, tDamage);
-/* 51: */ }
-/* 52:44 */ return true;
-/* 53: */ }
-/* 54: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.GregTech_API;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class GT_Item_Ores
+ extends ItemBlock
+{
+ public GT_Item_Ores(Block par1)
+ {
+ super(par1);
+ setMaxDamage(0);
+ setHasSubtypes(true);
+ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
+ }
+
+ public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
+ {
+ return false;
+ }
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
+ }
+
+ public boolean placeBlockAt(ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int side, float hitX, float hitY, float hitZ, int aMeta)
+ {
+ short tDamage = (short)getDamage(aStack);
+ if (tDamage > 0)
+ {
+ if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, GT_TileEntity_Ores.getHarvestData(tDamage), 3)) {
+ return false;
+ }
+ GT_TileEntity_Ores tTileEntity = (GT_TileEntity_Ores)aWorld.getTileEntity(aX, aY, aZ);
+ tTileEntity.mMetaData = tDamage;
+ tTileEntity.mNatural = false;
+ }
+ else if (!aWorld.setBlock(aX, aY, aZ, this.field_150939_a, 0, 3))
+ {
+ return false;
+ }
+ if (aWorld.getBlock(aX, aY, aZ) == this.field_150939_a)
+ {
+ this.field_150939_a.onBlockPlacedBy(aWorld, aX, aY, aZ, aPlayer, aStack);
+ this.field_150939_a.onPostBlockPlaced(aWorld, aX, aY, aZ, tDamage);
+ }
+ return true;
+ }
+}
/* 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/blocks/GT_Item_Stones_Abstract.java b/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java index b858a8a53e..7a1dbdaee1 100644 --- a/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java +++ b/main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java @@ -1,44 +1,44 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.util.GT_LanguageManager;
-/* 5: */ import java.util.List;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.item.ItemBlock;
-/* 9: */ import net.minecraft.item.ItemStack;
-/* 10: */
-/* 11: */ public class GT_Item_Stones_Abstract
-/* 12: */ extends ItemBlock
-/* 13: */ {
-/* 14: */ public GT_Item_Stones_Abstract(Block par1)
-/* 15: */ {
-/* 16:15 */ super(par1);
-/* 17:16 */ setMaxDamage(0);
-/* 18:17 */ setHasSubtypes(true);
-/* 19:18 */ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
-/* 20: */ }
-/* 21: */
-/* 22: */ public String getUnlocalizedName(ItemStack aStack)
-/* 23: */ {
-/* 24:23 */ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getMetadata(int aMeta)
-/* 28: */ {
-/* 29:28 */ return aMeta;
-/* 30: */ }
-/* 31: */
-/* 32:31 */ private final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
-/* 33: */
-/* 34: */ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
-/* 35: */ {
-/* 36:35 */ super.addInformation(aStack, aPlayer, aList, aF3_H);
-/* 37:36 */ if (aStack.getItemDamage() % 8 >= 3) {
-/* 38:36 */ aList.add(this.mNoMobsToolTip);
-/* 39: */ }
-/* 40: */ }
-/* 41: */ }
+package gregtech.common.blocks;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.util.GT_LanguageManager;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemBlock;
+import net.minecraft.item.ItemStack;
+
+public class GT_Item_Stones_Abstract
+ extends ItemBlock
+{
+ public GT_Item_Stones_Abstract(Block par1)
+ {
+ super(par1);
+ setMaxDamage(0);
+ setHasSubtypes(true);
+ setCreativeTab(GregTech_API.TAB_GREGTECH_MATERIALS);
+ }
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ return this.field_150939_a.getUnlocalizedName() + "." + getDamage(aStack);
+ }
+
+ public int getMetadata(int aMeta)
+ {
+ return aMeta;
+ }
+
+ private final String mNoMobsToolTip = GT_LanguageManager.addStringLocalization("gt.nomobspawnsonthisblock", "Mobs cannot Spawn on this Block");
+
+ public void addInformation(ItemStack aStack, EntityPlayer aPlayer, List aList, boolean aF3_H)
+ {
+ super.addInformation(aStack, aPlayer, aList, aF3_H);
+ if (aStack.getItemDamage() % 8 >= 3) {
+ aList.add(this.mNoMobsToolTip);
+ }
+ }
+}
/* 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/blocks/GT_Material_Casings.java b/main/java/gregtech/common/blocks/GT_Material_Casings.java index e3a866a80d..9bae1ad5a2 100644 --- a/main/java/gregtech/common/blocks/GT_Material_Casings.java +++ b/main/java/gregtech/common/blocks/GT_Material_Casings.java @@ -1,24 +1,24 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import net.minecraft.block.material.MapColor;
-/* 4: */ import net.minecraft.block.material.Material;
-/* 5: */
-/* 6: */ public class GT_Material_Casings
-/* 7: */ extends Material
-/* 8: */ {
-/* 9: 7 */ public static final Material INSTANCE = new GT_Material_Casings();
-/* 10: */
-/* 11: */ private GT_Material_Casings()
-/* 12: */ {
-/* 13:10 */ super(MapColor.ironColor);
-/* 14:11 */ setRequiresTool();
-/* 15: */ }
-/* 16: */
-/* 17: */ public boolean isOpaque()
-/* 18: */ {
-/* 19:16 */ return false;
-/* 20: */ }
-/* 21: */ }
+package gregtech.common.blocks;
+
+import net.minecraft.block.material.MapColor;
+import net.minecraft.block.material.Material;
+
+public class GT_Material_Casings
+ extends Material
+{
+ public static final Material INSTANCE = new GT_Material_Casings();
+
+ private GT_Material_Casings()
+ {
+ super(MapColor.ironColor);
+ setRequiresTool();
+ }
+
+ public boolean isOpaque()
+ {
+ return false;
+ }
+}
/* 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/blocks/GT_Material_Machines.java b/main/java/gregtech/common/blocks/GT_Material_Machines.java index 6de2022449..b77deb9c65 100644 --- a/main/java/gregtech/common/blocks/GT_Material_Machines.java +++ b/main/java/gregtech/common/blocks/GT_Material_Machines.java @@ -1,24 +1,24 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import net.minecraft.block.material.MapColor;
-/* 4: */ import net.minecraft.block.material.Material;
-/* 5: */
-/* 6: */ public class GT_Material_Machines
-/* 7: */ extends Material
-/* 8: */ {
-/* 9: */ public GT_Material_Machines()
-/* 10: */ {
-/* 11: 8 */ super(MapColor.ironColor);
-/* 12: 9 */ setRequiresTool();
-/* 13:10 */ setImmovableMobility();
-/* 14:11 */ setAdventureModeExempt();
-/* 15: */ }
-/* 16: */
-/* 17: */ public boolean isOpaque()
-/* 18: */ {
-/* 19:16 */ return false;
-/* 20: */ }
-/* 21: */ }
+package gregtech.common.blocks;
+
+import net.minecraft.block.material.MapColor;
+import net.minecraft.block.material.Material;
+
+public class GT_Material_Machines
+ extends Material
+{
+ public GT_Material_Machines()
+ {
+ super(MapColor.ironColor);
+ setRequiresTool();
+ setImmovableMobility();
+ setAdventureModeExempt();
+ }
+
+ public boolean isOpaque()
+ {
+ return false;
+ }
+}
/* 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/blocks/GT_Packet_Ores.java b/main/java/gregtech/common/blocks/GT_Packet_Ores.java index 60fb9e4669..c6648b17d0 100644 --- a/main/java/gregtech/common/blocks/GT_Packet_Ores.java +++ b/main/java/gregtech/common/blocks/GT_Packet_Ores.java @@ -1,71 +1,71 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import com.google.common.io.ByteArrayDataInput;
-/* 4: */ import com.google.common.io.ByteArrayDataOutput;
-/* 5: */ import com.google.common.io.ByteStreams;
-/* 6: */ import gregtech.api.net.GT_Packet;
-/* 7: */ import net.minecraft.tileentity.TileEntity;
-/* 8: */ import net.minecraft.world.IBlockAccess;
-/* 9: */ import net.minecraft.world.World;
-/* 10: */
-/* 11: */ public class GT_Packet_Ores
-/* 12: */ extends GT_Packet
-/* 13: */ {
-/* 14: */ private int mX;
-/* 15: */ private int mZ;
-/* 16: */ private short mY;
-/* 17: */ private short mMetaData;
-/* 18: */
-/* 19: */ public GT_Packet_Ores()
-/* 20: */ {
-/* 21:17 */ super(true);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_Packet_Ores(int aX, short aY, int aZ, short aMetaData)
-/* 25: */ {
-/* 26:21 */ super(false);
-/* 27:22 */ this.mX = aX;
-/* 28:23 */ this.mY = aY;
-/* 29:24 */ this.mZ = aZ;
-/* 30:25 */ this.mMetaData = aMetaData;
-/* 31: */ }
-/* 32: */
-/* 33: */ public byte[] encode()
-/* 34: */ {
-/* 35:30 */ ByteArrayDataOutput tOut = ByteStreams.newDataOutput(12);
-/* 36: */
-/* 37:32 */ tOut.writeInt(this.mX);
-/* 38:33 */ tOut.writeShort(this.mY);
-/* 39:34 */ tOut.writeInt(this.mZ);
-/* 40:35 */ tOut.writeShort(this.mMetaData);
-/* 41: */
-/* 42:37 */ return tOut.toByteArray();
-/* 43: */ }
-/* 44: */
-/* 45: */ public GT_Packet decode(ByteArrayDataInput aData)
-/* 46: */ {
-/* 47:42 */ return new GT_Packet_Ores(aData.readInt(), aData.readShort(), aData.readInt(), aData.readShort());
-/* 48: */ }
-/* 49: */
-/* 50: */ public void process(IBlockAccess aWorld)
-/* 51: */ {
-/* 52:47 */ if (aWorld != null)
-/* 53: */ {
-/* 54:48 */ TileEntity tTileEntity = aWorld.getTileEntity(this.mX, this.mY, this.mZ);
-/* 55:49 */ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
-/* 56:49 */ ((GT_TileEntity_Ores)tTileEntity).mMetaData = this.mMetaData;
-/* 57: */ }
-/* 58:50 */ if (((aWorld instanceof World)) && (((World)aWorld).isRemote)) {
-/* 59:50 */ ((World)aWorld).markBlockForUpdate(this.mX, this.mY, this.mZ);
-/* 60: */ }
-/* 61: */ }
-/* 62: */ }
-/* 63: */
-/* 64: */ public byte getPacketID()
-/* 65: */ {
-/* 66:56 */ return 3;
-/* 67: */ }
-/* 68: */ }
+package gregtech.common.blocks;
+
+import com.google.common.io.ByteArrayDataInput;
+import com.google.common.io.ByteArrayDataOutput;
+import com.google.common.io.ByteStreams;
+import gregtech.api.net.GT_Packet;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.IBlockAccess;
+import net.minecraft.world.World;
+
+public class GT_Packet_Ores
+ extends GT_Packet
+{
+ private int mX;
+ private int mZ;
+ private short mY;
+ private short mMetaData;
+
+ public GT_Packet_Ores()
+ {
+ super(true);
+ }
+
+ public GT_Packet_Ores(int aX, short aY, int aZ, short aMetaData)
+ {
+ super(false);
+ this.mX = aX;
+ this.mY = aY;
+ this.mZ = aZ;
+ this.mMetaData = aMetaData;
+ }
+
+ public byte[] encode()
+ {
+ ByteArrayDataOutput tOut = ByteStreams.newDataOutput(12);
+
+ tOut.writeInt(this.mX);
+ tOut.writeShort(this.mY);
+ tOut.writeInt(this.mZ);
+ tOut.writeShort(this.mMetaData);
+
+ return tOut.toByteArray();
+ }
+
+ public GT_Packet decode(ByteArrayDataInput aData)
+ {
+ return new GT_Packet_Ores(aData.readInt(), aData.readShort(), aData.readInt(), aData.readShort());
+ }
+
+ public void process(IBlockAccess aWorld)
+ {
+ if (aWorld != null)
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(this.mX, this.mY, this.mZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores)) {
+ ((GT_TileEntity_Ores)tTileEntity).mMetaData = this.mMetaData;
+ }
+ if (((aWorld instanceof World)) && (((World)aWorld).isRemote)) {
+ ((World)aWorld).markBlockForUpdate(this.mX, this.mY, this.mZ);
+ }
+ }
+ }
+
+ public byte getPacketID()
+ {
+ return 3;
+ }
+}
/* 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/blocks/GT_TileEntity_Ores.java b/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java index cb844dcbb2..ebe64977a0 100644 --- a/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java +++ b/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java @@ -1,250 +1,250 @@ -/* 1: */ package gregtech.common.blocks;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.GT_Values;
-/* 5: */ import gregtech.api.enums.Materials;
-/* 6: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.blocks;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 7: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 8: */ import gregtech.api.interfaces.ITexture;
-/* 9: */ import gregtech.api.interfaces.tileentity.ITexturedTileEntity;
-/* 10: */ import gregtech.api.net.IGT_NetworkHandler;
-/* 11: */ import gregtech.api.objects.GT_CopiedBlockTexture;
-/* 12: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 13: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 14: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.ITexturedTileEntity;
+import gregtech.api.net.IGT_NetworkHandler;
+import gregtech.api.objects.GT_CopiedBlockTexture;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Random;
+
+import net.minecraft.block.Block;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.network.Packet;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
-/* 15: */ import java.util.ArrayList;
-/* 16: */ import java.util.Random;
+public class GT_TileEntity_Ores
+ extends TileEntity
+ implements ITexturedTileEntity
+{
+ private static final ITexture[] mStoneTextures = { new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.netherrack, 0, 0), new GT_CopiedBlockTexture(Blocks.end_stone, 0, 0), new GT_RenderedTexture(Textures.BlockIcons.GRANITE_BLACK_STONE), new GT_RenderedTexture(Textures.BlockIcons.GRANITE_RED_STONE), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0) };
+ public short mMetaData = 0;
+ public boolean mNatural = false;
+ public boolean mBlocked = true;
+
+ public void readFromNBT(NBTTagCompound aNBT)
+ {
+ super.readFromNBT(aNBT);
+ this.mMetaData = aNBT.getShort("m");
+ this.mNatural = aNBT.getBoolean("n");
+ }
+
+ public void writeToNBT(NBTTagCompound aNBT)
+ {
+ super.writeToNBT(aNBT);
+ aNBT.setShort("m", this.mMetaData);
+ aNBT.setBoolean("n", this.mNatural);
+ }
+
+ public void onUpdated()
+ {
+ if ((!this.worldObj.isRemote) && (this.mBlocked))
+ {
+ this.mBlocked = false;
+ GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Ores(this.xCoord, (short)this.yCoord, this.zCoord, this.mMetaData), this.xCoord, this.zCoord);
+ }
+ }
+
+ public Packet getDescriptionPacket()
+ {
+ if (!this.worldObj.isRemote) {
+ if ((this.mBlocked == (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord + 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord - 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord + 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord - 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord + 1)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord - 1)) ? 1 : 0) == 0) {
+ GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Ores(this.xCoord, (short)this.yCoord, this.zCoord, this.mMetaData), this.xCoord, this.zCoord);
+ }
+ }
+ return null;
+ }
+
+ public static byte getHarvestData(short aMetaData)
+ {
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aMetaData % 1000)];
+ return aMaterial == null ? 0 : (byte)Math.max((aMetaData % 16000 / 1000 == 3) || (aMetaData % 16000 / 1000 == 4) ? 3 : 0, Math.min(7, aMaterial.mToolQuality - (aMetaData < 16000 ? 0 : 1)));
+ }
+
+ public void overrideOreBlockMaterial(Block aOverridingStoneBlock, byte aOverridingStoneMeta)
+ {
+ this.mMetaData = ((short)(int)(this.mMetaData % 1000L + this.mMetaData / 16000L * 16000L));
+ if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.netherrack)) {
+ this.mMetaData = ((short)(this.mMetaData + 1000));
+ } else if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.end_stone)) {
+ this.mMetaData = ((short)(this.mMetaData + 2000));
+ } else if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, GregTech_API.sBlockGranites)) {
+ if (aOverridingStoneBlock == GregTech_API.sBlockGranites)
+ {
+ if (aOverridingStoneMeta < 8) {
+ this.mMetaData = ((short)(this.mMetaData + 3000));
+ } else {
+ this.mMetaData = ((short)(this.mMetaData + 4000));
+ }
+ }
+ else {
+ this.mMetaData = ((short)(this.mMetaData + 3000));
+ }
+ }
+ this.worldObj.setBlockMetadataWithNotify(this.xCoord, this.yCoord, this.zCoord, getHarvestData(this.mMetaData), 0);
+ }
+
+ public static boolean setOreBlock(World aWorld, int aX, int aY, int aZ, int aMetaData)
+ {
+ aY = Math.min(aWorld.getActualHeight(), Math.max(aY, 1));
+ Block tBlock = aWorld.getBlock(aX, aY, aZ);
+ if ((aMetaData > 0) && (tBlock != Blocks.air))
+ {
+ if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack)) {
+ aMetaData += 1000;
+ } else if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone)) {
+ aMetaData += 2000;
+ } else if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites))
+ {
+ if (tBlock == GregTech_API.sBlockGranites)
+ {
+ if (aWorld.getBlockMetadata(aX, aY, aZ) < 8) {
+ aMetaData += 3000;
+ } else {
+ aMetaData += 4000;
+ }
+ }
+ else {
+ aMetaData += 3000;
+ }
+ }
+ else if (!tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone)) {
+ return false;
+ }
+ aWorld.setBlock(aX, aY, aZ, GregTech_API.sBlockOres1, getHarvestData((short)aMetaData), 0);
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores))
+ {
+ ((GT_TileEntity_Ores)tTileEntity).mMetaData = ((short)aMetaData);
+ ((GT_TileEntity_Ores)tTileEntity).mNatural = true;
+ }
+ return true;
+ }
+ return false;
+ }
+
+ public short getMetaData()
+ {
+ return this.mMetaData;
+ }
+
+ public boolean canUpdate()
+ {
+ return false;
+ }
+
+ public ArrayList<ItemStack> getDrops(int aFortune)
+ {
+ ArrayList<ItemStack> rList = new ArrayList();
+ if (this.mMetaData <= 0)
+ {
+ rList.add(new ItemStack(Blocks.cobblestone, 1, 0));
+ return rList;
+ }
+ if (this.mMetaData < 16000)
+ {
+ rList.add(new ItemStack(GregTech_API.sBlockOres1, 1, this.mMetaData));
+ return rList;
+ }
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(this.mMetaData % 1000)];
+ if (!this.mNatural) {
+ aFortune = 0;
+ }
+ if (aMaterial != null)
+ {
+ Random tRandom = new Random(this.xCoord ^ this.yCoord ^ this.zCoord);
+ ArrayList<ItemStack> tSelector = new ArrayList();
+
-/* 17: */ import net.minecraft.block.Block;
-/* 18: */ import net.minecraft.init.Blocks;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.nbt.NBTTagCompound;
-/* 21: */ import net.minecraft.network.Packet;
-/* 22: */ import net.minecraft.tileentity.TileEntity;
-/* 23: */ import net.minecraft.world.World;
-/* 24: */
-/* 25: */ public class GT_TileEntity_Ores
-/* 26: */ extends TileEntity
-/* 27: */ implements ITexturedTileEntity
-/* 28: */ {
-/* 29: 28 */ private static final ITexture[] mStoneTextures = { new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.netherrack, 0, 0), new GT_CopiedBlockTexture(Blocks.end_stone, 0, 0), new GT_RenderedTexture(Textures.BlockIcons.GRANITE_BLACK_STONE), new GT_RenderedTexture(Textures.BlockIcons.GRANITE_RED_STONE), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0), new GT_CopiedBlockTexture(Blocks.stone, 0, 0) };
-/* 30: 47 */ public short mMetaData = 0;
-/* 31: 48 */ public boolean mNatural = false;
-/* 32: 48 */ public boolean mBlocked = true;
-/* 33: */
-/* 34: */ public void readFromNBT(NBTTagCompound aNBT)
-/* 35: */ {
-/* 36: 52 */ super.readFromNBT(aNBT);
-/* 37: 53 */ this.mMetaData = aNBT.getShort("m");
-/* 38: 54 */ this.mNatural = aNBT.getBoolean("n");
-/* 39: */ }
-/* 40: */
-/* 41: */ public void writeToNBT(NBTTagCompound aNBT)
-/* 42: */ {
-/* 43: 59 */ super.writeToNBT(aNBT);
-/* 44: 60 */ aNBT.setShort("m", this.mMetaData);
-/* 45: 61 */ aNBT.setBoolean("n", this.mNatural);
-/* 46: */ }
-/* 47: */
-/* 48: */ public void onUpdated()
-/* 49: */ {
-/* 50: 65 */ if ((!this.worldObj.isRemote) && (this.mBlocked))
-/* 51: */ {
-/* 52: 66 */ this.mBlocked = false;
-/* 53: 67 */ GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Ores(this.xCoord, (short)this.yCoord, this.zCoord, this.mMetaData), this.xCoord, this.zCoord);
-/* 54: */ }
-/* 55: */ }
-/* 56: */
-/* 57: */ public Packet getDescriptionPacket()
-/* 58: */ {
-/* 59: 73 */ if (!this.worldObj.isRemote) {
-/* 60: 73 */ if ((this.mBlocked == (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord + 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord - 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord + 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord - 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord + 1)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord - 1)) ? 1 : 0) == 0) {
-/* 61: 74 */ GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Ores(this.xCoord, (short)this.yCoord, this.zCoord, this.mMetaData), this.xCoord, this.zCoord);
-/* 62: */ }
-/* 63: */ }
-/* 64: 76 */ return null;
-/* 65: */ }
-/* 66: */
-/* 67: */ public static byte getHarvestData(short aMetaData)
-/* 68: */ {
-/* 69: 86 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aMetaData % 1000)];
-/* 70: 87 */ return aMaterial == null ? 0 : (byte)Math.max((aMetaData % 16000 / 1000 == 3) || (aMetaData % 16000 / 1000 == 4) ? 3 : 0, Math.min(7, aMaterial.mToolQuality - (aMetaData < 16000 ? 0 : 1)));
-/* 71: */ }
-/* 72: */
-/* 73: */ public void overrideOreBlockMaterial(Block aOverridingStoneBlock, byte aOverridingStoneMeta)
-/* 74: */ {
-/* 75: 91 */ this.mMetaData = ((short)(int)(this.mMetaData % 1000L + this.mMetaData / 16000L * 16000L));
-/* 76: 92 */ if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.netherrack)) {
-/* 77: 93 */ this.mMetaData = ((short)(this.mMetaData + 1000));
-/* 78: 94 */ } else if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, Blocks.end_stone)) {
-/* 79: 95 */ this.mMetaData = ((short)(this.mMetaData + 2000));
-/* 80: 96 */ } else if (aOverridingStoneBlock.isReplaceableOreGen(this.worldObj, this.xCoord, this.yCoord, this.zCoord, GregTech_API.sBlockGranites)) {
-/* 81: 97 */ if (aOverridingStoneBlock == GregTech_API.sBlockGranites)
-/* 82: */ {
-/* 83: 98 */ if (aOverridingStoneMeta < 8) {
-/* 84: 99 */ this.mMetaData = ((short)(this.mMetaData + 3000));
-/* 85: */ } else {
-/* 86:101 */ this.mMetaData = ((short)(this.mMetaData + 4000));
-/* 87: */ }
-/* 88: */ }
-/* 89: */ else {
-/* 90:104 */ this.mMetaData = ((short)(this.mMetaData + 3000));
-/* 91: */ }
-/* 92: */ }
-/* 93:107 */ this.worldObj.setBlockMetadataWithNotify(this.xCoord, this.yCoord, this.zCoord, getHarvestData(this.mMetaData), 0);
-/* 94: */ }
-/* 95: */
-/* 96: */ public static boolean setOreBlock(World aWorld, int aX, int aY, int aZ, int aMetaData)
-/* 97: */ {
-/* 98:111 */ aY = Math.min(aWorld.getActualHeight(), Math.max(aY, 1));
-/* 99:112 */ Block tBlock = aWorld.getBlock(aX, aY, aZ);
-/* 100:114 */ if ((aMetaData > 0) && (tBlock != Blocks.air))
-/* 101: */ {
-/* 102:115 */ if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack)) {
-/* 103:116 */ aMetaData += 1000;
-/* 104:117 */ } else if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone)) {
-/* 105:118 */ aMetaData += 2000;
-/* 106:119 */ } else if (tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites))
-/* 107: */ {
-/* 108:120 */ if (tBlock == GregTech_API.sBlockGranites)
-/* 109: */ {
-/* 110:121 */ if (aWorld.getBlockMetadata(aX, aY, aZ) < 8) {
-/* 111:122 */ aMetaData += 3000;
-/* 112: */ } else {
-/* 113:124 */ aMetaData += 4000;
-/* 114: */ }
-/* 115: */ }
-/* 116: */ else {
-/* 117:127 */ aMetaData += 3000;
-/* 118: */ }
-/* 119: */ }
-/* 120:129 */ else if (!tBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone)) {
-/* 121:129 */ return false;
-/* 122: */ }
-/* 123:130 */ aWorld.setBlock(aX, aY, aZ, GregTech_API.sBlockOres1, getHarvestData((short)aMetaData), 0);
-/* 124:131 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 125:132 */ if ((tTileEntity instanceof GT_TileEntity_Ores))
-/* 126: */ {
-/* 127:133 */ ((GT_TileEntity_Ores)tTileEntity).mMetaData = ((short)aMetaData);
-/* 128:134 */ ((GT_TileEntity_Ores)tTileEntity).mNatural = true;
-/* 129: */ }
-/* 130:136 */ return true;
-/* 131: */ }
-/* 132:138 */ return false;
-/* 133: */ }
-/* 134: */
-/* 135: */ public short getMetaData()
-/* 136: */ {
-/* 137:145 */ return this.mMetaData;
-/* 138: */ }
-/* 139: */
-/* 140: */ public boolean canUpdate()
-/* 141: */ {
-/* 142:150 */ return false;
-/* 143: */ }
-/* 144: */
-/* 145: */ public ArrayList<ItemStack> getDrops(int aFortune)
-/* 146: */ {
-/* 147:157 */ ArrayList<ItemStack> rList = new ArrayList();
-/* 148:158 */ if (this.mMetaData <= 0)
-/* 149: */ {
-/* 150:159 */ rList.add(new ItemStack(Blocks.cobblestone, 1, 0));
-/* 151:160 */ return rList;
-/* 152: */ }
-/* 153:162 */ if (this.mMetaData < 16000)
-/* 154: */ {
-/* 155:163 */ rList.add(new ItemStack(GregTech_API.sBlockOres1, 1, this.mMetaData));
-/* 156:164 */ return rList;
-/* 157: */ }
-/* 158:166 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(this.mMetaData % 1000)];
-/* 159:167 */ if (!this.mNatural) {
-/* 160:167 */ aFortune = 0;
-/* 161: */ }
-/* 162:168 */ if (aMaterial != null)
-/* 163: */ {
-/* 164:169 */ Random tRandom = new Random(this.xCoord ^ this.yCoord ^ this.zCoord);
-/* 165:170 */ ArrayList<ItemStack> tSelector = new ArrayList();
-/* 166: */
-/* 167: */
-/* 168:173 */ ItemStack tStack = GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L);
-/* 169:174 */ if (tStack != null) {
-/* 170:174 */ for (int i = 0; i < 1; i++) {
-/* 171:174 */ tSelector.add(tStack);
-/* 172: */ }
-/* 173: */ }
-/* 174:175 */ tStack = GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L);
-/* 175:176 */ if (tStack != null) {
-/* 176:176 */ for (int i = 0; i < 2; i++) {
-/* 177:176 */ tSelector.add(tStack);
-/* 178: */ }
-/* 179: */ }
-/* 180:177 */ tStack = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L);
-/* 181:178 */ if (tStack != null) {
-/* 182:178 */ for (int i = 0; i < 12; i++) {
-/* 183:178 */ tSelector.add(tStack);
-/* 184: */ }
-/* 185: */ }
-/* 186:180 */ tStack = GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L), 1L);
-/* 187:181 */ if (tStack != null) {
-/* 188:181 */ for (int i = 0; i < 5; i++) {
-/* 189:181 */ tSelector.add(tStack);
-/* 190: */ }
-/* 191: */ }
-/* 192:182 */ tStack = GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L);
-/* 193:183 */ if (tStack != null) {
-/* 194:183 */ for (int i = 0; i < 10; i++) {
-/* 195:183 */ tSelector.add(tStack);
-/* 196: */ }
-/* 197: */ }
-/* 198:185 */ tStack = GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), 1L);
-/* 199:186 */ if (tStack != null) {
-/* 200:186 */ for (int i = 0; i < 5; i++) {
-/* 201:186 */ tSelector.add(tStack);
-/* 202: */ }
-/* 203: */ }
-/* 204:187 */ tStack = GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L);
-/* 205:188 */ if (tStack != null) {
-/* 206:188 */ for (int i = 0; i < 10; i++) {
-/* 207:188 */ tSelector.add(tStack);
-/* 208: */ }
-/* 209: */ }
-/* 210:190 */ if (tSelector.size() > 0)
-/* 211: */ {
-/* 212:191 */ int i = 0;
-/* 213:191 */ for (int j = Math.max(1, aMaterial.mOreMultiplier + (aFortune > 0 ? tRandom.nextInt(1 + aFortune * aMaterial.mOreMultiplier) : 0) / 2); i < j; i++) {
-/* 214:192 */ rList.add(GT_Utility.copyAmount(1L, new Object[] { tSelector.get(tRandom.nextInt(tSelector.size())) }));
-/* 215: */ }
-/* 216: */ }
-/* 217:195 */ if (tRandom.nextInt(3 + aFortune) > 1) {
-/* 218:196 */ switch (this.mMetaData / 1000 % 16)
-/* 219: */ {
-/* 220: */ case 0:
-/* 221:197 */ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Stone, 1L)); break;
-/* 222: */ case 1:
-/* 223:198 */ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Netherrack, 1L)); break;
-/* 224: */ case 2:
-/* 225:199 */ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Endstone, 1L)); break;
-/* 226: */ case 3:
-/* 227:200 */ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.GraniteBlack, 1L)); break;
-/* 228: */ case 4:
-/* 229:201 */ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.GraniteRed, 1L));
-/* 230: */ }
-/* 231: */ }
-/* 232: */ }
-/* 233:205 */ return rList;
-/* 234: */ }
-/* 235: */
-/* 236: */ public ITexture[] getTexture(byte aSide)
-/* 237: */ {
-/* 238:210 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(this.mMetaData % 1000)];
-/* 239:211 */ if ((aMaterial != null) && (this.mMetaData < 32000)) {
-/* 240:211 */ return new ITexture[] { mStoneTextures[(this.mMetaData / 1000 % 16)], new GT_RenderedTexture(aMaterial.mIconSet.mTextures[this.mMetaData/16000 ==0 ? OrePrefixes.ore.mTextureIndex:OrePrefixes.oreSmall.mTextureIndex], aMaterial.mRGBa) };
-/* 241: */ }
-/* 242:212 */ return new ITexture[] { mStoneTextures[0], new GT_RenderedTexture(gregtech.api.enums.TextureSet.SET_NONE.mTextures[OrePrefixes.ore.mTextureIndex]) };
-/* 243: */ }
-/* 244: */ }
+ ItemStack tStack = GT_OreDictUnificator.get(OrePrefixes.gemExquisite, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 1; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.gemFlawless, aMaterial, GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L), 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 2; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 12; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.gemFlawed, aMaterial, GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L), 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 5; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.crushed, aMaterial, 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 10; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.gemChipped, aMaterial, GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L), 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 5; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ tStack = GT_OreDictUnificator.get(OrePrefixes.dustImpure, aMaterial, 1L);
+ if (tStack != null) {
+ for (int i = 0; i < 10; i++) {
+ tSelector.add(tStack);
+ }
+ }
+ if (tSelector.size() > 0)
+ {
+ int i = 0;
+ for (int j = Math.max(1, aMaterial.mOreMultiplier + (aFortune > 0 ? tRandom.nextInt(1 + aFortune * aMaterial.mOreMultiplier) : 0) / 2); i < j; i++) {
+ rList.add(GT_Utility.copyAmount(1L, new Object[] { tSelector.get(tRandom.nextInt(tSelector.size())) }));
+ }
+ }
+ if (tRandom.nextInt(3 + aFortune) > 1) {
+ switch (this.mMetaData / 1000 % 16)
+ {
+ case 0:
+ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Stone, 1L)); break;
+ case 1:
+ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Netherrack, 1L)); break;
+ case 2:
+ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.Endstone, 1L)); break;
+ case 3:
+ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.GraniteBlack, 1L)); break;
+ case 4:
+ rList.add(GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, Materials.GraniteRed, 1L));
+ }
+ }
+ }
+ return rList;
+ }
+
+ public ITexture[] getTexture(byte aSide)
+ {
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(this.mMetaData % 1000)];
+ if ((aMaterial != null) && (this.mMetaData < 32000)) {
+ return new ITexture[] { mStoneTextures[(this.mMetaData / 1000 % 16)], new GT_RenderedTexture(aMaterial.mIconSet.mTextures[this.mMetaData/16000 ==0 ? OrePrefixes.ore.mTextureIndex:OrePrefixes.oreSmall.mTextureIndex], aMaterial.mRGBa) };
+ }
+ return new ITexture[] { mStoneTextures[0], new GT_RenderedTexture(gregtech.api.enums.TextureSet.SET_NONE.mTextures[OrePrefixes.ore.mTextureIndex]) };
+ }
+}
diff --git a/main/java/gregtech/common/covers/GT_Cover_Arm.java b/main/java/gregtech/common/covers/GT_Cover_Arm.java index a3cfa3868f..49adff2062 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Arm.java +++ b/main/java/gregtech/common/covers/GT_Cover_Arm.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.tileentity.TileEntity;
-/* 9: */ import net.minecraftforge.fluids.Fluid;
-/* 10: */
-/* 11: */ public class GT_Cover_Arm
-/* 12: */ extends GT_CoverBehavior
-/* 13: */ {
-/* 14: */ public final int mTickRate;
-/* 15: */
-/* 16: */ public GT_Cover_Arm(int aTickRate)
-/* 17: */ {
-/* 18:16 */ this.mTickRate = aTickRate;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 22: */ {
-/* 23:21 */ if ((aCoverVariable == 0) || (((aTileEntity instanceof IMachineProgress)) && (!((IMachineProgress)aTileEntity).isAllowedToWork()))) {
-/* 24:21 */ return aCoverVariable;
-/* 25: */ }
-/* 26:22 */ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
-/* 27:23 */ aTileEntity.decreaseStoredEnergyUnits(1L, true);
-/* 28:24 */ if (aTileEntity.getUniversalEnergyCapacity() >= 128L)
-/* 29: */ {
-/* 30:25 */ if (aTileEntity.isUniversalEnergyStored(256L)) {
-/* 31:26 */ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
-/* 32: */ }
-/* 33: */ }
-/* 34: */ else {
-/* 35:29 */ GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 36: */ }
-/* 37:31 */ return aCoverVariable;
-/* 38: */ }
-/* 39: */
-/* 40: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 41: */ {
-/* 42:36 */ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
-/* 43:36 */ aCoverVariable += 16;
-/* 44: */ } else {
-/* 45:36 */ aCoverVariable -= 16;
-/* 46: */ }
-/* 47:37 */ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
-/* 48:38 */ return aCoverVariable;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 52: */ {
-/* 53:43 */ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
-/* 54:43 */ aCoverVariable++;
-/* 55: */ } else {
-/* 56:43 */ aCoverVariable--;
-/* 57: */ }
-/* 58:44 */ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
-/* 59:45 */ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
-/* 60:46 */ return true;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 64: */ {
-/* 65:51 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 69: */ {
-/* 70:56 */ return true;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 74: */ {
-/* 75:61 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 79: */ {
-/* 80:66 */ return true;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 84: */ {
-/* 85:71 */ return true;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 89: */ {
-/* 90:76 */ return true;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 94: */ {
-/* 95:81 */ return true;
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 99: */ {
-/* :0:86 */ return true;
-/* :1: */ }
-/* :2: */
-/* :3: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :4: */ {
-/* :5:91 */ return true;
-/* :6: */ }
-/* :7: */
-/* :8: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :9: */ {
-/* ;0:96 */ return this.mTickRate;
-/* ;1: */ }
-/* ;2: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Arm
+ extends GT_CoverBehavior
+{
+ public final int mTickRate;
+
+ public GT_Cover_Arm(int aTickRate)
+ {
+ this.mTickRate = aTickRate;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable == 0) || (((aTileEntity instanceof IMachineProgress)) && (!((IMachineProgress)aTileEntity).isAllowedToWork()))) {
+ return aCoverVariable;
+ }
+ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
+ aTileEntity.decreaseStoredEnergyUnits(1L, true);
+ if (aTileEntity.getUniversalEnergyCapacity() >= 128L)
+ {
+ if (aTileEntity.isUniversalEnergyStored(256L)) {
+ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
+ }
+ }
+ else {
+ GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
+ aCoverVariable += 16;
+ } else {
+ aCoverVariable -= 16;
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
+ return aCoverVariable;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
+ aCoverVariable++;
+ } else {
+ aCoverVariable--;
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
+ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
+ return true;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mTickRate;
+ }
+}
/* 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/covers/GT_Cover_Blastproof.java b/main/java/gregtech/common/covers/GT_Cover_Blastproof.java index 2cb74191b2..75f964b62a 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Blastproof.java +++ b/main/java/gregtech/common/covers/GT_Cover_Blastproof.java @@ -1,28 +1,28 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */
-/* 6: */ public class GT_Cover_Blastproof
-/* 7: */ extends GT_CoverBehavior
-/* 8: */ {
-/* 9: */ private final float mLevel;
-/* 10: */
-/* 11: */ public GT_Cover_Blastproof(float aLevel)
-/* 12: */ {
-/* 13:11 */ this.mLevel = aLevel;
-/* 14: */ }
-/* 15: */
-/* 16: */ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:16 */ return this.mLevel;
-/* 19: */ }
-/* 20: */
-/* 21: */ public boolean isSimpleCover()
-/* 22: */ {
-/* 23:21 */ return true;
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+
+public class GT_Cover_Blastproof
+ extends GT_CoverBehavior
+{
+ private final float mLevel;
+
+ public GT_Cover_Blastproof(float aLevel)
+ {
+ this.mLevel = aLevel;
+ }
+
+ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mLevel;
+ }
+
+ public boolean isSimpleCover()
+ {
+ return true;
+ }
+}
/* 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/covers/GT_Cover_ControlsWork.java b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java index 40819e8eef..b0c61dfa40 100644 --- a/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java +++ b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java @@ -1,17 +1,17 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_ControlsWork
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 14: */ {
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_ControlsWork
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
if(aTileEntity instanceof IMachineProgress)
{
if((aInputRedstone > 0) == (aCoverVariable == 0) && aCoverVariable != 2)
@@ -22,67 +22,67 @@ }
return aCoverVariable;
}
-/* 30: */
-/* 31: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 32: */ {
-/* 33:22 */ return true;
-/* 34: */ }
-/* 35: */
-/* 36: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 37: */ {
-/* 38:27 */ return true;
-/* 39: */ }
-/* 40: */
-/* 41: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 42: */ {
-/* 43:32 */ return true;
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 47: */ {
-/* 48:37 */ return true;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 52: */ {
-/* 53:42 */ return true;
-/* 54: */ }
-/* 55: */
-/* 56: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 57: */ {
-/* 58:47 */ return true;
-/* 59: */ }
-/* 60: */
-/* 61: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 62: */ {
-/* 63:52 */ if ((aTileEntity instanceof IMachineProgress))
-/* 64: */ {
-/* 65:53 */ ((IMachineProgress)aTileEntity).enableWorking();
-/* 66:54 */ ((IMachineProgress)aTileEntity).setWorkDataValue((byte)0);
-/* 67: */ }
-/* 68:56 */ return true;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 72: */ {
-/* 73:61 */ aCoverVariable = (aCoverVariable + 1) % 3;
-/* 74:62 */ if (aCoverVariable == 0) {
-/* 75:62 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
-/* 76: */ }
-/* 77:63 */ if (aCoverVariable == 1) {
-/* 78:63 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
-/* 79: */ }
-/* 80:64 */ if (aCoverVariable == 2) {
-/* 81:64 */ GT_Utility.sendChatToPlayer(aPlayer, "No Work at all");
-/* 82: */ }
-/* 83:65 */ return aCoverVariable;
-/* 84: */ }
-/* 85: */
-/* 86: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 87: */ {
-/* 88:70 */ return 1;
-/* 89: */ }
-/* 90: */ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ if ((aTileEntity instanceof IMachineProgress))
+ {
+ ((IMachineProgress)aTileEntity).enableWorking();
+ ((IMachineProgress)aTileEntity).setWorkDataValue((byte)0);
+ }
+ return true;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 3;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "No Work at all");
+ }
+ return aCoverVariable;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_Conveyor.java b/main/java/gregtech/common/covers/GT_Cover_Conveyor.java index 266bdf7524..515df08386 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Conveyor.java +++ b/main/java/gregtech/common/covers/GT_Cover_Conveyor.java @@ -1,136 +1,136 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.tileentity.TileEntity;
-/* 9: */ import net.minecraftforge.fluids.Fluid;
-/* 10: */
-/* 11: */ public class GT_Cover_Conveyor
-/* 12: */ extends GT_CoverBehavior
-/* 13: */ {
-/* 14: */ public final int mTickRate;
-/* 15: */
-/* 16: */ public GT_Cover_Conveyor(int aTickRate)
-/* 17: */ {
-/* 18:16 */ this.mTickRate = aTickRate;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 22: */ {
-/* 23:21 */ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 24:21 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
-/* 25:21 */ return aCoverVariable;
-/* 26: */ }
-/* 27: */ }
-/* 28:22 */ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
-/* 29:23 */ aTileEntity.decreaseStoredEnergyUnits(1L, true);
-/* 30:24 */ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= 128L))
-/* 31: */ {
-/* 32:25 */ if (aTileEntity.isUniversalEnergyStored(256L)) {
-/* 33:26 */ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
-/* 34: */ }
-/* 35: */ }
-/* 36: */ else {
-/* 37:29 */ GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 38: */ }
-/* 39:31 */ return aCoverVariable;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 43: */ {
-/* 44:36 */ aCoverVariable = (aCoverVariable + 1) % 12;
-/* 45:37 */ if (aCoverVariable == 0) {
-/* 46:37 */ GT_Utility.sendChatToPlayer(aPlayer, "Export");
-/* 47: */ }
-/* 48:38 */ if (aCoverVariable == 1) {
-/* 49:38 */ GT_Utility.sendChatToPlayer(aPlayer, "Import");
-/* 50: */ }
-/* 51:39 */ if (aCoverVariable == 2) {
-/* 52:39 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
-/* 53: */ }
-/* 54:40 */ if (aCoverVariable == 3) {
-/* 55:40 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
-/* 56: */ }
-/* 57:41 */ if (aCoverVariable == 4) {
-/* 58:41 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
-/* 59: */ }
-/* 60:42 */ if (aCoverVariable == 5) {
-/* 61:42 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
-/* 62: */ }
-/* 63:43 */ if (aCoverVariable == 6) {
-/* 64:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
-/* 65: */ }
-/* 66:44 */ if (aCoverVariable == 7) {
-/* 67:44 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
-/* 68: */ }
-/* 69:45 */ if (aCoverVariable == 8) {
-/* 70:45 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
-/* 71: */ }
-/* 72:46 */ if (aCoverVariable == 9) {
-/* 73:46 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
-/* 74: */ }
-/* 75:47 */ if (aCoverVariable == 10) {
-/* 76:47 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
-/* 77: */ }
-/* 78:48 */ if (aCoverVariable == 11) {
-/* 79:48 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
-/* 80: */ }
-/* 81:49 */ return aCoverVariable;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 85: */ {
-/* 86:54 */ return true;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 90: */ {
-/* 91:59 */ return true;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 95: */ {
-/* 96:64 */ return true;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :0: */ {
-/* :1:69 */ return true;
-/* :2: */ }
-/* :3: */
-/* :4: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* :5: */ {
-/* :6:74 */ return true;
-/* :7: */ }
-/* :8: */
-/* :9: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* ;0: */ {
-/* ;1:79 */ return true;
-/* ;2: */ }
-/* ;3: */
-/* ;4: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* ;5: */ {
-/* ;6:84 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 != 0);
-/* ;7: */ }
-/* ;8: */
-/* ;9: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* <0: */ {
-/* <1:89 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 == 0);
-/* <2: */ }
-/* <3: */
-/* <4: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* <5: */ {
-/* <6:94 */ return true;
-/* <7: */ }
-/* <8: */
-/* <9: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* =0: */ {
-/* =1:99 */ return this.mTickRate;
-/* =2: */ }
-/* =3: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Conveyor
+ extends GT_CoverBehavior
+{
+ public final int mTickRate;
+
+ public GT_Cover_Conveyor(int aTickRate)
+ {
+ this.mTickRate = aTickRate;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
+ return aCoverVariable;
+ }
+ }
+ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
+ aTileEntity.decreaseStoredEnergyUnits(1L, true);
+ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= 128L))
+ {
+ if (aTileEntity.isUniversalEnergyStored(256L)) {
+ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
+ }
+ }
+ else {
+ GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 12;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
+ }
+ if (aCoverVariable == 4) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
+ }
+ if (aCoverVariable == 5) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
+ }
+ if (aCoverVariable == 6) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
+ }
+ if (aCoverVariable == 7) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
+ }
+ if (aCoverVariable == 8) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
+ }
+ if (aCoverVariable == 9) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
+ }
+ if (aCoverVariable == 10) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
+ }
+ if (aCoverVariable == 11) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return (aCoverVariable >= 6) || (aCoverVariable % 2 != 0);
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return (aCoverVariable >= 6) || (aCoverVariable % 2 == 0);
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mTickRate;
+ }
+}
/* 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/covers/GT_Cover_Crafting.java b/main/java/gregtech/common/covers/GT_Cover_Crafting.java index a8955b3626..4eea9bca94 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Crafting.java +++ b/main/java/gregtech/common/covers/GT_Cover_Crafting.java @@ -1,38 +1,38 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import net.minecraft.entity.player.EntityPlayer;
-/* 6: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 7: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 8: */ import net.minecraft.inventory.Container;
-/* 9: */ import net.minecraft.inventory.ContainerWorkbench;
-/* 10: */ import net.minecraft.network.NetHandlerPlayServer;
-/* 11: */ import net.minecraft.network.play.server.S2DPacketOpenWindow;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */
-/* 14: */ public class GT_Cover_Crafting
-/* 15: */ extends GT_CoverBehavior
-/* 16: */ {
-/* 17: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 18: */ {
-/* 19:13 */ if ((aPlayer instanceof EntityPlayerMP))
-/* 20: */ {
-/* 21:14 */ ((EntityPlayerMP)aPlayer).getNextWindowId();
-/* 22:15 */ ((EntityPlayerMP)aPlayer).playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(((EntityPlayerMP)aPlayer).currentWindowId, 1, "Crafting", 9, true));
-/* 23:16 */ ((EntityPlayerMP)aPlayer).openContainer = new ContainerWorkbench(((EntityPlayerMP)aPlayer).inventory, ((EntityPlayerMP)aPlayer).worldObj, aTileEntity.getXCoord(), aTileEntity.getYCoord(), aTileEntity.getZCoord())
-/* 24: */ {
-/* 25: */ public boolean canInteractWith(EntityPlayer par1EntityPlayer)
-/* 26: */ {
-/* 27:19 */ return true;
-/* 28: */ }
-/* 29:21 */ };
-/* 30:22 */ ((EntityPlayerMP)aPlayer).openContainer.windowId = ((EntityPlayerMP)aPlayer).currentWindowId;
-/* 31:23 */ ((EntityPlayerMP)aPlayer).openContainer.addCraftingToCrafters((EntityPlayerMP)aPlayer);
-/* 32: */ }
-/* 33:25 */ return true;
-/* 34: */ }
-/* 35: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Container;
+import net.minecraft.inventory.ContainerWorkbench;
+import net.minecraft.network.NetHandlerPlayServer;
+import net.minecraft.network.play.server.S2DPacketOpenWindow;
+import net.minecraft.world.World;
+
+public class GT_Cover_Crafting
+ extends GT_CoverBehavior
+{
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if ((aPlayer instanceof EntityPlayerMP))
+ {
+ ((EntityPlayerMP)aPlayer).getNextWindowId();
+ ((EntityPlayerMP)aPlayer).playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(((EntityPlayerMP)aPlayer).currentWindowId, 1, "Crafting", 9, true));
+ ((EntityPlayerMP)aPlayer).openContainer = new ContainerWorkbench(((EntityPlayerMP)aPlayer).inventory, ((EntityPlayerMP)aPlayer).worldObj, aTileEntity.getXCoord(), aTileEntity.getYCoord(), aTileEntity.getZCoord())
+ {
+ public boolean canInteractWith(EntityPlayer par1EntityPlayer)
+ {
+ return true;
+ }
+ };
+ ((EntityPlayerMP)aPlayer).openContainer.windowId = ((EntityPlayerMP)aPlayer).currentWindowId;
+ ((EntityPlayerMP)aPlayer).openContainer.addCraftingToCrafters((EntityPlayerMP)aPlayer);
+ }
+ return true;
+ }
+}
/* 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/covers/GT_Cover_DoesWork.java b/main/java/gregtech/common/covers/GT_Cover_DoesWork.java index 1d3fe79b6b..445ef51807 100644 --- a/main/java/gregtech/common/covers/GT_Cover_DoesWork.java +++ b/main/java/gregtech/common/covers/GT_Cover_DoesWork.java @@ -1,97 +1,97 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_DoesWork
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 14: */ {
-/* 15:13 */ if ((aTileEntity instanceof IMachineProgress))
-/* 16: */ {
-/* 17:14 */ if (aCoverVariable < 2)
-/* 18: */ {
-/* 19:15 */ int tScale = ((IMachineProgress)aTileEntity).getMaxProgress() / 15;
-/* 20:16 */ if ((tScale > 0) && (((IMachineProgress)aTileEntity).hasThingsToDo())) {
-/* 21:17 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(((IMachineProgress)aTileEntity).getProgress() / tScale) : (byte)(15 - ((IMachineProgress)aTileEntity).getProgress() / tScale));
-/* 22: */ } else {
-/* 23:19 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 24: */ }
-/* 25: */ }
-/* 26: */ else
-/* 27: */ {
-/* 28:22 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)((aCoverVariable % 2 == 0 ? 1 : 0) != (((IMachineProgress)aTileEntity).getMaxProgress() == 0 ? 1 : 0) ? 0 : 15));
-/* 29: */ }
-/* 30: */ }
-/* 31: */ else {
-/* 32:25 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)0);
-/* 33: */ }
-/* 34:27 */ return aCoverVariable;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 38: */ {
-/* 39:32 */ aCoverVariable = (aCoverVariable + 1) % 4;
-/* 40:33 */ if (aCoverVariable == 0) {
-/* 41:33 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
-/* 42: */ }
-/* 43:34 */ if (aCoverVariable == 1) {
-/* 44:34 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
-/* 45: */ }
-/* 46:35 */ if (aCoverVariable == 2) {
-/* 47:35 */ GT_Utility.sendChatToPlayer(aPlayer, "Ready to work");
-/* 48: */ }
-/* 49:36 */ if (aCoverVariable == 3) {
-/* 50:36 */ GT_Utility.sendChatToPlayer(aPlayer, "Not ready to work");
-/* 51: */ }
-/* 52:37 */ return aCoverVariable;
-/* 53: */ }
-/* 54: */
-/* 55: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 56: */ {
-/* 57:42 */ return true;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 61: */ {
-/* 62:47 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 66: */ {
-/* 67:52 */ return true;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 71: */ {
-/* 72:57 */ return true;
-/* 73: */ }
-/* 74: */
-/* 75: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 76: */ {
-/* 77:62 */ return true;
-/* 78: */ }
-/* 79: */
-/* 80: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 81: */ {
-/* 82:67 */ return true;
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 86: */ {
-/* 87:72 */ return true;
-/* 88: */ }
-/* 89: */
-/* 90: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 91: */ {
-/* 92:77 */ return 5;
-/* 93: */ }
-/* 94: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_DoesWork
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aTileEntity instanceof IMachineProgress))
+ {
+ if (aCoverVariable < 2)
+ {
+ int tScale = ((IMachineProgress)aTileEntity).getMaxProgress() / 15;
+ if ((tScale > 0) && (((IMachineProgress)aTileEntity).hasThingsToDo())) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(((IMachineProgress)aTileEntity).getProgress() / tScale) : (byte)(15 - ((IMachineProgress)aTileEntity).getProgress() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ else
+ {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)((aCoverVariable % 2 == 0 ? 1 : 0) != (((IMachineProgress)aTileEntity).getMaxProgress() == 0 ? 1 : 0) ? 0 : 15));
+ }
+ }
+ else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)0);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 4;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Ready to work");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Not ready to work");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 5;
+ }
+}
/* 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/covers/GT_Cover_Drain.java b/main/java/gregtech/common/covers/GT_Cover_Drain.java index 5c8a3e910f..17b1d05a9c 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Drain.java +++ b/main/java/gregtech/common/covers/GT_Cover_Drain.java @@ -1,111 +1,111 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 6: */ import gregtech.api.util.GT_CoverBehavior;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.init.Blocks;
-/* 11: */ import net.minecraft.world.World;
-/* 12: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 13: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 14: */ import net.minecraftforge.fluids.Fluid;
-/* 15: */ import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraftforge.fluids.IFluidBlock;
-/* 17: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 18: */
-/* 19: */ public class GT_Cover_Drain
-/* 20: */ extends GT_CoverBehavior
-/* 21: */ {
-/* 22: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 23: */ {
-/* 24:20 */ if ((aCoverVariable % 3 > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 25:20 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 3 < 2) {
-/* 26:20 */ return aCoverVariable;
-/* 27: */ }
-/* 28: */ }
-/* 29:21 */ if (aSide != 6)
-/* 30: */ {
-/* 31:22 */ Block tBlock = aTileEntity.getBlockAtSide(aSide);
-/* 32:23 */ if ((aCoverVariable < 3) && ((aTileEntity instanceof IFluidHandler)))
-/* 33: */ {
-/* 34:24 */ if ((aSide == 1) &&
-/* 35:25 */ (aTileEntity.getWorld().isRaining()) &&
-/* 36:26 */ (aTileEntity.getWorld().getPrecipitationHeight(aTileEntity.getXCoord(), aTileEntity.getZCoord()) - 2 < aTileEntity.getYCoord()))
-/* 37: */ {
-/* 38:27 */ int tAmount = (int)(aTileEntity.getBiome().rainfall * 10.0F);
-/* 39:28 */ if (tAmount > 0) {
-/* 40:29 */ ((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), Materials.Water.getFluid(aTileEntity.getWorld().isThundering() ? tAmount * 2 : tAmount), true);
-/* 41: */ }
-/* 42: */ }
-/* 43:34 */ FluidStack tLiquid = null;
-/* 44:35 */ if (tBlock != null)
-/* 45: */ {
-/* 46:36 */ if (((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water)) && (aTileEntity.getMetaIDAtSide(aSide) == 0)) {
-/* 47:37 */ tLiquid = Materials.Water.getFluid(1000L);
-/* 48:38 */ } else if (((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava)) && (aTileEntity.getMetaIDAtSide(aSide) == 0)) {
-/* 49:39 */ tLiquid = Materials.Lava.getFluid(1000L);
-/* 50:40 */ } else if ((tBlock instanceof IFluidBlock)) {
-/* 51:41 */ tLiquid = ((IFluidBlock)tBlock).drain(aTileEntity.getWorld(), aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1), false);
-/* 52: */ }
-/* 53:43 */ if ((tLiquid != null) && (tLiquid.getFluid() != null) && ((aSide > 1) || ((aSide == 0) && (tLiquid.getFluid().getDensity() <= 0)) || ((aSide == 1) && (tLiquid.getFluid().getDensity() >= 0))) &&
-/* 54:44 */ (((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, false) == tLiquid.amount))
-/* 55: */ {
-/* 56:45 */ ((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, true);
-/* 57:46 */ aTileEntity.getWorld().setBlockToAir(aTileEntity.getXCoord() + ForgeDirection.getOrientation(aSide).offsetX, aTileEntity.getYCoord() + ForgeDirection.getOrientation(aSide).offsetY, aTileEntity.getZCoord() + ForgeDirection.getOrientation(aSide).offsetZ);
-/* 58: */ }
-/* 59: */ }
-/* 60: */ }
-/* 61:51 */ if ((aCoverVariable >= 3) && (tBlock != null) && (
-/* 62:52 */ (tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava) || (tBlock == Blocks.water) || (tBlock == Blocks.flowing_water) || ((tBlock instanceof IFluidBlock)))) {
-/* 63:53 */ aTileEntity.getWorld().setBlock(aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1), Blocks.air, 0, 0);
-/* 64: */ }
-/* 65: */ }
-/* 66:57 */ return aCoverVariable;
-/* 67: */ }
-/* 68: */
-/* 69: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 70: */ {
-/* 71:62 */ aCoverVariable = (aCoverVariable + 1) % 6;
-/* 72:63 */ if (aCoverVariable == 0) {
-/* 73:63 */ GT_Utility.sendChatToPlayer(aPlayer, "Import");
-/* 74: */ }
-/* 75:64 */ if (aCoverVariable == 1) {
-/* 76:64 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
-/* 77: */ }
-/* 78:65 */ if (aCoverVariable == 2) {
-/* 79:65 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
-/* 80: */ }
-/* 81:66 */ if (aCoverVariable == 3) {
-/* 82:66 */ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away");
-/* 83: */ }
-/* 84:67 */ if (aCoverVariable == 4) {
-/* 85:67 */ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away (conditional)");
-/* 86: */ }
-/* 87:68 */ if (aCoverVariable == 5) {
-/* 88:68 */ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away (invert cond)");
-/* 89: */ }
-/* 90:69 */ return aCoverVariable;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 94: */ {
-/* 95:74 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {}
-/* 96:74 */ return ((IMachineProgress)aTileEntity).isAllowedToWork() == aCoverVariable < 2;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :0: */ {
-/* :1:79 */ return true;
-/* :2: */ }
-/* :3: */
-/* :4: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :5: */ {
-/* :6:84 */ return aCoverVariable < 3 ? 50 : 1;
-/* :7: */ }
-/* :8: */ }
+package gregtech.common.covers;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.IFluidBlock;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_Cover_Drain
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable % 3 > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 3 < 2) {
+ return aCoverVariable;
+ }
+ }
+ if (aSide != 6)
+ {
+ Block tBlock = aTileEntity.getBlockAtSide(aSide);
+ if ((aCoverVariable < 3) && ((aTileEntity instanceof IFluidHandler)))
+ {
+ if ((aSide == 1) &&
+ (aTileEntity.getWorld().isRaining()) &&
+ (aTileEntity.getWorld().getPrecipitationHeight(aTileEntity.getXCoord(), aTileEntity.getZCoord()) - 2 < aTileEntity.getYCoord()))
+ {
+ int tAmount = (int)(aTileEntity.getBiome().rainfall * 10.0F);
+ if (tAmount > 0) {
+ ((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), Materials.Water.getFluid(aTileEntity.getWorld().isThundering() ? tAmount * 2 : tAmount), true);
+ }
+ }
+ FluidStack tLiquid = null;
+ if (tBlock != null)
+ {
+ if (((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water)) && (aTileEntity.getMetaIDAtSide(aSide) == 0)) {
+ tLiquid = Materials.Water.getFluid(1000L);
+ } else if (((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava)) && (aTileEntity.getMetaIDAtSide(aSide) == 0)) {
+ tLiquid = Materials.Lava.getFluid(1000L);
+ } else if ((tBlock instanceof IFluidBlock)) {
+ tLiquid = ((IFluidBlock)tBlock).drain(aTileEntity.getWorld(), aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1), false);
+ }
+ if ((tLiquid != null) && (tLiquid.getFluid() != null) && ((aSide > 1) || ((aSide == 0) && (tLiquid.getFluid().getDensity() <= 0)) || ((aSide == 1) && (tLiquid.getFluid().getDensity() >= 0))) &&
+ (((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, false) == tLiquid.amount))
+ {
+ ((IFluidHandler)aTileEntity).fill(ForgeDirection.getOrientation(aSide), tLiquid, true);
+ aTileEntity.getWorld().setBlockToAir(aTileEntity.getXCoord() + ForgeDirection.getOrientation(aSide).offsetX, aTileEntity.getYCoord() + ForgeDirection.getOrientation(aSide).offsetY, aTileEntity.getZCoord() + ForgeDirection.getOrientation(aSide).offsetZ);
+ }
+ }
+ }
+ if ((aCoverVariable >= 3) && (tBlock != null) && (
+ (tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava) || (tBlock == Blocks.water) || (tBlock == Blocks.flowing_water) || ((tBlock instanceof IFluidBlock)))) {
+ aTileEntity.getWorld().setBlock(aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1), Blocks.air, 0, 0);
+ }
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 6;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away");
+ }
+ if (aCoverVariable == 4) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away (conditional)");
+ }
+ if (aCoverVariable == 5) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Keep Liquids Away (invert cond)");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {}
+ return ((IMachineProgress)aTileEntity).isAllowedToWork() == aCoverVariable < 2;
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return aCoverVariable < 3 ? 50 : 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/covers/GT_Cover_EUMeter.java b/main/java/gregtech/common/covers/GT_Cover_EUMeter.java index 57902edab6..68f19d9257 100644 --- a/main/java/gregtech/common/covers/GT_Cover_EUMeter.java +++ b/main/java/gregtech/common/covers/GT_Cover_EUMeter.java @@ -1,141 +1,141 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraftforge.fluids.Fluid;
-/* 8: */
-/* 9: */ public class GT_Cover_EUMeter
-/* 10: */ extends GT_CoverBehavior
-/* 11: */ {
-/* 12: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 13: */ {
-/* 14: 12 */ long tScale = 0L;
-/* 15: 13 */ if (aCoverVariable < 2)
-/* 16: */ {
-/* 17: 14 */ tScale = aTileEntity.getUniversalEnergyCapacity() / 15L;
-/* 18: 15 */ if (tScale > 0L) {
-/* 19: 16 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getUniversalEnergyStored() / tScale) : (byte)(int)(15L - aTileEntity.getUniversalEnergyStored() / tScale));
-/* 20: */ } else {
-/* 21: 18 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 22: */ }
-/* 23: */ }
-/* 24: 20 */ else if (aCoverVariable < 4)
-/* 25: */ {
-/* 26: 21 */ tScale = aTileEntity.getEUCapacity() / 15L;
-/* 27: 22 */ if (tScale > 0L) {
-/* 28: 23 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getStoredEU() / tScale) : (byte)(int)(15L - aTileEntity.getStoredEU() / tScale));
-/* 29: */ } else {
-/* 30: 25 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 31: */ }
-/* 32: */ }
-/* 33: 27 */ else if (aCoverVariable < 6)
-/* 34: */ {
-/* 35: 28 */ tScale = aTileEntity.getSteamCapacity() / 15L;
-/* 36: 29 */ if (tScale > 0L) {
-/* 37: 30 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getStoredSteam() / tScale) : (byte)(int)(15L - aTileEntity.getStoredSteam() / tScale));
-/* 38: */ } else {
-/* 39: 32 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 40: */ }
-/* 41: */ }
-/* 42: 34 */ else if (aCoverVariable < 8)
-/* 43: */ {
-/* 44: 35 */ tScale = aTileEntity.getInputVoltage() * aTileEntity.getInputAmperage() / 15L;
-/* 45: 36 */ if (tScale > 0L) {
-/* 46: 37 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getAverageElectricInput() / tScale) : (byte)(int)(15L - aTileEntity.getAverageElectricInput() / tScale));
-/* 47: */ } else {
-/* 48: 39 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 49: */ }
-/* 50: */ }
-/* 51: 41 */ else if (aCoverVariable < 10)
-/* 52: */ {
-/* 53: 42 */ tScale = aTileEntity.getOutputVoltage() * aTileEntity.getOutputAmperage() / 15L;
-/* 54: 43 */ if (tScale > 0L) {
-/* 55: 44 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getAverageElectricOutput() / tScale) : (byte)(int)(15L - aTileEntity.getAverageElectricOutput() / tScale));
-/* 56: */ } else {
-/* 57: 46 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
-/* 58: */ }
-/* 59: */ }
-/* 60: 49 */ return aCoverVariable;
-/* 61: */ }
-/* 62: */
-/* 63: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 64: */ {
-/* 65: 54 */ aCoverVariable = (aCoverVariable + 1) % 10;
-/* 66: 55 */ if (aCoverVariable == 0) {
-/* 67: 55 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal Universal Storage");
-/* 68: */ }
-/* 69: 56 */ if (aCoverVariable == 1) {
-/* 70: 56 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Universal Storage");
-/* 71: */ }
-/* 72: 57 */ if (aCoverVariable == 2) {
-/* 73: 57 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal Electricity Storage");
-/* 74: */ }
-/* 75: 58 */ if (aCoverVariable == 3) {
-/* 76: 58 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Electricity Storage");
-/* 77: */ }
-/* 78: 59 */ if (aCoverVariable == 4) {
-/* 79: 59 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal Steam Storage");
-/* 80: */ }
-/* 81: 60 */ if (aCoverVariable == 5) {
-/* 82: 60 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Steam Storage");
-/* 83: */ }
-/* 84: 61 */ if (aCoverVariable == 6) {
-/* 85: 61 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal Average Electric Input");
-/* 86: */ }
-/* 87: 62 */ if (aCoverVariable == 7) {
-/* 88: 62 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Average Electric Input");
-/* 89: */ }
-/* 90: 63 */ if (aCoverVariable == 8) {
-/* 91: 63 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal Average Electric Output");
-/* 92: */ }
-/* 93: 64 */ if (aCoverVariable == 9) {
-/* 94: 64 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Average Electric Output");
-/* 95: */ }
-/* 96: 65 */ return aCoverVariable;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 100: */ {
-/* 101: 70 */ return true;
-/* 102: */ }
-/* 103: */
-/* 104: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 105: */ {
-/* 106: 75 */ return true;
-/* 107: */ }
-/* 108: */
-/* 109: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 110: */ {
-/* 111: 80 */ return true;
-/* 112: */ }
-/* 113: */
-/* 114: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 115: */ {
-/* 116: 85 */ return true;
-/* 117: */ }
-/* 118: */
-/* 119: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 120: */ {
-/* 121: 90 */ return true;
-/* 122: */ }
-/* 123: */
-/* 124: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 125: */ {
-/* 126: 95 */ return true;
-/* 127: */ }
-/* 128: */
-/* 129: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 130: */ {
-/* 131:100 */ return true;
-/* 132: */ }
-/* 133: */
-/* 134: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 135: */ {
-/* 136:105 */ return 5;
-/* 137: */ }
-/* 138: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_EUMeter
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ long tScale = 0L;
+ if (aCoverVariable < 2)
+ {
+ tScale = aTileEntity.getUniversalEnergyCapacity() / 15L;
+ if (tScale > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getUniversalEnergyStored() / tScale) : (byte)(int)(15L - aTileEntity.getUniversalEnergyStored() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ else if (aCoverVariable < 4)
+ {
+ tScale = aTileEntity.getEUCapacity() / 15L;
+ if (tScale > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getStoredEU() / tScale) : (byte)(int)(15L - aTileEntity.getStoredEU() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ else if (aCoverVariable < 6)
+ {
+ tScale = aTileEntity.getSteamCapacity() / 15L;
+ if (tScale > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getStoredSteam() / tScale) : (byte)(int)(15L - aTileEntity.getStoredSteam() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ else if (aCoverVariable < 8)
+ {
+ tScale = aTileEntity.getInputVoltage() * aTileEntity.getInputAmperage() / 15L;
+ if (tScale > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getAverageElectricInput() / tScale) : (byte)(int)(15L - aTileEntity.getAverageElectricInput() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ else if (aCoverVariable < 10)
+ {
+ tScale = aTileEntity.getOutputVoltage() * aTileEntity.getOutputAmperage() / 15L;
+ if (tScale > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable % 2 == 0 ? (byte)(int)(aTileEntity.getAverageElectricOutput() / tScale) : (byte)(int)(15L - aTileEntity.getAverageElectricOutput() / tScale));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable % 2 == 0 ? 0 : 15));
+ }
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 10;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal Universal Storage");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Universal Storage");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal Electricity Storage");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Electricity Storage");
+ }
+ if (aCoverVariable == 4) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal Steam Storage");
+ }
+ if (aCoverVariable == 5) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Steam Storage");
+ }
+ if (aCoverVariable == 6) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal Average Electric Input");
+ }
+ if (aCoverVariable == 7) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Average Electric Input");
+ }
+ if (aCoverVariable == 8) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal Average Electric Output");
+ }
+ if (aCoverVariable == 9) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Average Electric Output");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 5;
+ }
+}
/* 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/covers/GT_Cover_EnergyOnly.java b/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java index 0e5071f7db..fd948309af 100644 --- a/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java +++ b/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java @@ -1,105 +1,105 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_EnergyOnly
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 14: */ {
-/* 15:13 */ aCoverVariable = (aCoverVariable + 1) % 3;
-/* 16:14 */ if (aCoverVariable == 0) {
-/* 17:14 */ GT_Utility.sendChatToPlayer(aPlayer, "Allow");
-/* 18: */ }
-/* 19:15 */ if (aCoverVariable == 1) {
-/* 20:15 */ GT_Utility.sendChatToPlayer(aPlayer, "Allow (conditional)");
-/* 21: */ }
-/* 22:16 */ if (aCoverVariable == 2) {
-/* 23:16 */ GT_Utility.sendChatToPlayer(aPlayer, "Disallow (conditional)");
-/* 24: */ }
-/* 25:17 */ return aCoverVariable;
-/* 26: */ }
-/* 27: */
-/* 28: */ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 29: */ {
-/* 30:22 */ return 20.0F;
-/* 31: */ }
-/* 32: */
-/* 33: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 34: */ {
-/* 35:27 */ return false;
-/* 36: */ }
-/* 37: */
-/* 38: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 39: */ {
-/* 40:32 */ return false;
-/* 41: */ }
-/* 42: */
-/* 43: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 44: */ {
-/* 45:37 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 46:37 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
-/* 47:37 */ return false;
-/* 48: */ }
-/* 49: */ }
-/* 50:38 */ return true;
-/* 51: */ }
-/* 52: */
-/* 53: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 54: */ {
-/* 55:43 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 56:43 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
-/* 57:43 */ return false;
-/* 58: */ }
-/* 59: */ }
-/* 60:44 */ return true;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 64: */ {
-/* 65:49 */ return false;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 69: */ {
-/* 70:54 */ return false;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 74: */ {
-/* 75:59 */ return false;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 79: */ {
-/* 80:64 */ return false;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 84: */ {
-/* 85:69 */ return false;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 89: */ {
-/* 90:74 */ return false;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 94: */ {
-/* 95:79 */ return false;
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 99: */ {
-/* :0:84 */ return true;
-/* :1: */ }
-/* :2: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_EnergyOnly
+ extends GT_CoverBehavior
+{
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 3;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Allow");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Allow (conditional)");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Disallow (conditional)");
+ }
+ return aCoverVariable;
+ }
+
+ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 20.0F;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ return false;
+ }
+
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ return true;
+ }
+}
/* 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/covers/GT_Cover_ItemMeter.java b/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java index 92c72eead7..9cf6236ebf 100644 --- a/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java +++ b/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java @@ -1,96 +1,96 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_ItemMeter
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 14: */ {
-/* 15: */ int[] tSlots;
-/* 17:14 */ if (aCoverVariable < 2) {
-/* 18:15 */ tSlots = aTileEntity.getAccessibleSlotsFromSide(aSide);
-/* 19: */ } else {
-/* 20:17 */ tSlots = new int[] { aCoverVariable - 2 };
-/* 21: */ }
-/* 22:19 */ int tAll = 0;int tFull = 0;
-/* 23:20 */ for (int i : tSlots) {
-/* 24:21 */ if ((i > 0) && (i < aTileEntity.getSizeInventory()))
-/* 25: */ {
-/* 26:22 */ tAll += 64;
-/* 27:23 */ ItemStack tStack = aTileEntity.getStackInSlot(i);
-/* 28:24 */ if (tStack != null) {
-/* 29:25 */ tFull += tStack.stackSize * 64 / tStack.getMaxStackSize();
-/* 30: */ }
-/* 31: */ }
-/* 32: */ }
-/* 33:29 */ tAll /= 14;
-/* 34:30 */ if (tAll > 0) {
-/* 35:31 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable != 1 ? 0 : tFull > 0 ? (byte)(tFull / tAll + 1) : (byte)(15 - (tFull > 0 ? tFull / tAll + 1 : 0)));
-/* 36: */ } else {
-/* 37:33 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable != 1 ? 0 : 15));
-/* 38: */ }
-/* 39:35 */ return aCoverVariable;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 43: */ {
-/* 44:40 */ aCoverVariable = (aCoverVariable + 1) % (2 + aTileEntity.getSizeInventory());
-/* 45:41 */ if (aCoverVariable == 0) {
-/* 46:41 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
-/* 47:42 */ } else if (aCoverVariable == 1) {
-/* 48:42 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
-/* 49: */ } else {
-/* 50:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Slot: " + (aCoverVariable - 2));
-/* 51: */ }
-/* 52:44 */ return aCoverVariable;
-/* 53: */ }
-/* 54: */
-/* 55: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 56: */ {
-/* 57:49 */ return true;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 61: */ {
-/* 62:54 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 66: */ {
-/* 67:59 */ return true;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 71: */ {
-/* 72:64 */ return true;
-/* 73: */ }
-/* 74: */
-/* 75: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 76: */ {
-/* 77:69 */ return true;
-/* 78: */ }
-/* 79: */
-/* 80: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 81: */ {
-/* 82:74 */ return true;
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 86: */ {
-/* 87:79 */ return true;
-/* 88: */ }
-/* 89: */
-/* 90: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 91: */ {
-/* 92:84 */ return 5;
-/* 93: */ }
-/* 94: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_ItemMeter
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ int[] tSlots;
+ if (aCoverVariable < 2) {
+ tSlots = aTileEntity.getAccessibleSlotsFromSide(aSide);
+ } else {
+ tSlots = new int[] { aCoverVariable - 2 };
+ }
+ int tAll = 0;int tFull = 0;
+ for (int i : tSlots) {
+ if ((i > 0) && (i < aTileEntity.getSizeInventory()))
+ {
+ tAll += 64;
+ ItemStack tStack = aTileEntity.getStackInSlot(i);
+ if (tStack != null) {
+ tFull += tStack.stackSize * 64 / tStack.getMaxStackSize();
+ }
+ }
+ }
+ tAll /= 14;
+ if (tAll > 0) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable != 1 ? 0 : tFull > 0 ? (byte)(tFull / tAll + 1) : (byte)(15 - (tFull > 0 ? tFull / tAll + 1 : 0)));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable != 1 ? 0 : 15));
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % (2 + aTileEntity.getSizeInventory());
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
+ } else if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Slot: " + (aCoverVariable - 2));
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 5;
+ }
+}
/* 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/covers/GT_Cover_Lens.java b/main/java/gregtech/common/covers/GT_Cover_Lens.java index 157e93f6d4..e4ba2142ee 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Lens.java +++ b/main/java/gregtech/common/covers/GT_Cover_Lens.java @@ -1,23 +1,23 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */
-/* 6: */ public class GT_Cover_Lens
-/* 7: */ extends GT_CoverBehavior
-/* 8: */ {
-/* 9: */ private final byte mColor;
-/* 10: */
-/* 11: */ public GT_Cover_Lens(byte aColor)
-/* 12: */ {
-/* 13:10 */ this.mColor = aColor;
-/* 14: */ }
-/* 15: */
-/* 16: */ public byte getLensColor(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:15 */ return this.mColor;
-/* 19: */ }
-/* 20: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+
+public class GT_Cover_Lens
+ extends GT_CoverBehavior
+{
+ private final byte mColor;
+
+ public GT_Cover_Lens(byte aColor)
+ {
+ this.mColor = aColor;
+ }
+
+ public byte getLensColor(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mColor;
+ }
+}
/* 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/covers/GT_Cover_LiquidMeter.java b/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java index 7ee8b72384..b1694be426 100644 --- a/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java +++ b/main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java @@ -1,100 +1,100 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */ import net.minecraftforge.fluids.FluidStack;
-/* 10: */ import net.minecraftforge.fluids.FluidTankInfo;
-/* 11: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 12: */
-/* 13: */ public class GT_Cover_LiquidMeter
-/* 14: */ extends GT_CoverBehavior
-/* 15: */ {
-/* 16: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 17: */ {
-/* 18:16 */ if ((aTileEntity instanceof IFluidHandler))
-/* 19: */ {
-/* 20:17 */ FluidTankInfo[] tTanks = ((IFluidHandler)aTileEntity).getTankInfo(ForgeDirection.UNKNOWN);
-/* 21:18 */ long tAll = 0L;long tFull = 0L;
-/* 22:19 */ if (tTanks != null) {
-/* 23:19 */ for (FluidTankInfo tTank : tTanks) {
-/* 24:19 */ if (tTank != null)
-/* 25: */ {
-/* 26:20 */ tAll += tTank.capacity;
-/* 27:21 */ FluidStack tLiquid = tTank.fluid;
-/* 28:22 */ if (tLiquid != null) {
-/* 29:23 */ tFull += tLiquid.amount;
-/* 30: */ }
-/* 31: */ }
-/* 32: */ }
-/* 33: */ }
-/* 34:26 */ tAll /= 14L;
-/* 35:27 */ if (tAll > 0L) {
-/* 36:28 */ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable == 0 ? 0 : tFull > 0L ? (byte)(int)(tFull / tAll + 1L) : (byte)(int)(15L - (tFull > 0L ? tFull / tAll + 1L : 0L)));
-/* 37: */ } else {
-/* 38:30 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable == 0 ? 0 : 15));
-/* 39: */ }
-/* 40: */ }
-/* 41: */ else
-/* 42: */ {
-/* 43:33 */ aTileEntity.setOutputRedstoneSignal(aSide, (byte)0);
-/* 44: */ }
-/* 45:35 */ return aCoverVariable;
-/* 46: */ }
-/* 47: */
-/* 48: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 49: */ {
-/* 50:40 */ if (aCoverVariable == 0) {
-/* 51:41 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
-/* 52: */ } else {
-/* 53:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
-/* 54: */ }
-/* 55:44 */ return aCoverVariable == 0 ? 1 : 0;
-/* 56: */ }
-/* 57: */
-/* 58: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 59: */ {
-/* 60:49 */ return true;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 64: */ {
-/* 65:54 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 69: */ {
-/* 70:59 */ return true;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 74: */ {
-/* 75:64 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 79: */ {
-/* 80:69 */ return true;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 84: */ {
-/* 85:74 */ return true;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 89: */ {
-/* 90:79 */ return true;
-/* 91: */ }
-/* 92: */
-/* 93: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 94: */ {
-/* 95:84 */ return 5;
-/* 96: */ }
-/* 97: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.FluidTankInfo;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_Cover_LiquidMeter
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aTileEntity instanceof IFluidHandler))
+ {
+ FluidTankInfo[] tTanks = ((IFluidHandler)aTileEntity).getTankInfo(ForgeDirection.UNKNOWN);
+ long tAll = 0L;long tFull = 0L;
+ if (tTanks != null) {
+ for (FluidTankInfo tTank : tTanks) {
+ if (tTank != null)
+ {
+ tAll += tTank.capacity;
+ FluidStack tLiquid = tTank.fluid;
+ if (tLiquid != null) {
+ tFull += tLiquid.amount;
+ }
+ }
+ }
+ }
+ tAll /= 14L;
+ if (tAll > 0L) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aCoverVariable == 0 ? 0 : tFull > 0L ? (byte)(int)(tFull / tAll + 1L) : (byte)(int)(15L - (tFull > 0L ? tFull / tAll + 1L : 0L)));
+ } else {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)(aCoverVariable == 0 ? 0 : 15));
+ }
+ }
+ else
+ {
+ aTileEntity.setOutputRedstoneSignal(aSide, (byte)0);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
+ }
+ return aCoverVariable == 0 ? 1 : 0;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 5;
+ }
+}
/* 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/covers/GT_Cover_NeedMaintainance.java b/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java index a02e175599..23c3959592 100644 --- a/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java +++ b/main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java @@ -42,79 +42,79 @@ public class GT_Cover_NeedMaintainance extends GT_CoverBehavior{ } public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) - /* 64: */ { - /* 65: 54 */ aCoverVariable = (aCoverVariable + 1) % 10; - /* 66: 55 */ if (aCoverVariable == 0) { - /* 67: 55 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintainance Needed"); - /* 68: */ } - /* 69: 56 */ if (aCoverVariable == 1) { - /* 70: 56 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintainance Needed(inverted)"); - /* 71: */ } - /* 72: 57 */ if (aCoverVariable == 2) { - /* 73: 57 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 2 Maintainance Needed"); - /* 74: */ } - /* 75: 58 */ if (aCoverVariable == 3) { - /* 76: 58 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 2 Maintainance Needed(inverted)"); - /* 77: */ } - /* 78: 59 */ if (aCoverVariable == 4) { - /* 79: 59 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 3 Maintainance Needed"); - /* 80: */ } - /* 81: 60 */ if (aCoverVariable == 5) { - /* 82: 60 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 3 Maintainance Needed(inverted)"); - /* 83: */ } - /* 84: 61 */ if (aCoverVariable == 6) { - /* 85: 61 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 4 Maintainance Needed"); - /* 86: */ } - /* 87: 62 */ if (aCoverVariable == 7) { - /* 88: 62 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 4 Maintainance Needed(inverted)"); - /* 89: */ } - /* 90: 63 */ if (aCoverVariable == 8) { - /* 91: 63 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 5 Maintainance Needed"); - /* 92: */ } - /* 93: 64 */ if (aCoverVariable == 9) { - /* 94: 64 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if 5 Maintainance Needed(inverted)"); - /* 95: */ } - /* 96: 65 */ return aCoverVariable; - /* 97: */ } - /* 98: */ - /* 99: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 100: */ { - /* 101: 70 */ return true; - /* 102: */ } - /* 103: */ - /* 104: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 105: */ { - /* 106: 75 */ return true; - /* 107: */ } - /* 108: */ - /* 109: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) - /* 110: */ { - /* 111: 80 */ return true; - /* 112: */ } - /* 113: */ - /* 114: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) - /* 115: */ { - /* 116: 85 */ return true; - /* 117: */ } - /* 118: */ - /* 119: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) - /* 120: */ { - /* 121: 90 */ return true; - /* 122: */ } - /* 123: */ - /* 124: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) - /* 125: */ { - /* 126: 95 */ return true; - /* 127: */ } - /* 128: */ - /* 129: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 130: */ { - /* 131:100 */ return true; - /* 132: */ } - /* 133: */ - /* 134: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 135: */ { - /* 136:105 */ return 60; - /* 137: */ } + { + aCoverVariable = (aCoverVariable + 1) % 10; + if (aCoverVariable == 0) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintainance Needed"); + } + if (aCoverVariable == 1) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 1 Maintainance Needed(inverted)"); + } + if (aCoverVariable == 2) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 2 Maintainance Needed"); + } + if (aCoverVariable == 3) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 2 Maintainance Needed(inverted)"); + } + if (aCoverVariable == 4) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 3 Maintainance Needed"); + } + if (aCoverVariable == 5) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 3 Maintainance Needed(inverted)"); + } + if (aCoverVariable == 6) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 4 Maintainance Needed"); + } + if (aCoverVariable == 7) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 4 Maintainance Needed(inverted)"); + } + if (aCoverVariable == 8) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 5 Maintainance Needed"); + } + if (aCoverVariable == 9) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if 5 Maintainance Needed(inverted)"); + } + return aCoverVariable; + } + + public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) + { + return true; + } + + public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) + { + return true; + } + + public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) + { + return true; + } + + public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) + { + return true; + } + + public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return 60; + } } diff --git a/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java b/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java index 20fbf385f8..6ed3fd7a17 100644 --- a/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java +++ b/main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java @@ -63,58 +63,58 @@ public class GT_Cover_PlayerDetector extends GT_CoverBehavior{ } public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) - /* 64: */ { - /* 65: 54 */ aCoverVariable = (aCoverVariable + 1) % 3; - /* 66: 55 */ if (aCoverVariable == 0) { - /* 67: 55 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); - /* 68: */ } - /* 69: 56 */ if (aCoverVariable == 1) { - /* 70: 56 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); - /* 71: */ } - /* 72: 57 */ if (aCoverVariable == 2) { - /* 73: 57 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); - /* 74: */ } - /* 96: 65 */ return aCoverVariable; - /* 97: */ } - /* 98: */ - /* 99: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 100: */ { - /* 101: 70 */ return true; - /* 102: */ } - /* 103: */ - /* 104: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 105: */ { - /* 106: 75 */ return true; - /* 107: */ } - /* 108: */ - /* 109: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) - /* 110: */ { - /* 111: 80 */ return true; - /* 112: */ } - /* 113: */ - /* 114: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) - /* 115: */ { - /* 116: 85 */ return true; - /* 117: */ } - /* 118: */ - /* 119: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) - /* 120: */ { - /* 121: 90 */ return true; - /* 122: */ } - /* 123: */ - /* 124: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) - /* 125: */ { - /* 126: 95 */ return true; - /* 127: */ } - /* 128: */ - /* 129: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 130: */ { - /* 131:100 */ return true; - /* 132: */ } - /* 133: */ - /* 134: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) - /* 135: */ { - /* 136:105 */ return 20; - /* 137: */ } + { + aCoverVariable = (aCoverVariable + 1) % 3; + if (aCoverVariable == 0) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if any Player is close"); + } + if (aCoverVariable == 1) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if you are close"); + } + if (aCoverVariable == 2) { + GT_Utility.sendChatToPlayer(aPlayer, "Emit if other player is close"); + } + return aCoverVariable; + } + + public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) + { + return true; + } + + public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity) + { + return true; + } + + public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) + { + return true; + } + + public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity) + { + return true; + } + + public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return true; + } + + public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) + { + return 20; + } } diff --git a/main/java/gregtech/common/covers/GT_Cover_Pump.java b/main/java/gregtech/common/covers/GT_Cover_Pump.java index e3ec8674e6..a97211d846 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Pump.java +++ b/main/java/gregtech/common/covers/GT_Cover_Pump.java @@ -1,190 +1,190 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 9: */ import net.minecraftforge.fluids.Fluid;
-/* 10: */ import net.minecraftforge.fluids.FluidStack;
-/* 11: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 12: */
-/* 13: */ public class GT_Cover_Pump
-/* 14: */ extends GT_CoverBehavior
-/* 15: */ {
-/* 16: */ public final int mTransferRate;
-/* 17: */
-/* 18: */ public GT_Cover_Pump(int aTransferRate)
-/* 19: */ {
-/* 20: 18 */ this.mTransferRate = aTransferRate;
-/* 21: */ }
-/* 22: */
-/* 23: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 24: */ {
-/* 25: 23 */ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 26: 23 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
-/* 27: 23 */ return aCoverVariable;
-/* 28: */ }
-/* 29: */ }
-/* 30: 24 */ if ((aTileEntity instanceof IFluidHandler))
-/* 31: */ {
-/* 32: 25 */ IFluidHandler tTank2 = aTileEntity.getITankContainerAtSide(aSide);
-/* 33: 26 */ if (tTank2 != null)
-/* 34: */ {
-/* 35: 27 */ aTileEntity.decreaseStoredEnergyUnits(GT_Utility.getTier(this.mTransferRate), true);
-/* 36: 28 */ IFluidHandler tTank1 = (IFluidHandler)aTileEntity;
-/* 37: 29 */ if (aCoverVariable % 2 == 0)
-/* 38: */ {
-/* 39: 30 */ FluidStack tLiquid = tTank1.drain(ForgeDirection.getOrientation(aSide), this.mTransferRate, false);
-/* 40: 31 */ if (tLiquid != null)
-/* 41: */ {
-/* 42: 32 */ tLiquid = tLiquid.copy();
-/* 43: 33 */ tLiquid.amount = tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid, false);
-/* 44: 34 */ if (tLiquid.amount > 0) {
-/* 45: 35 */ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= Math.min(1, tLiquid.amount / 10)))
-/* 46: */ {
-/* 47: 36 */ if (aTileEntity.isUniversalEnergyStored(Math.min(1, tLiquid.amount / 10)))
-/* 48: */ {
-/* 49: 37 */ aTileEntity.decreaseStoredEnergyUnits(Math.min(1, tLiquid.amount / 10), true);
-/* 50: 38 */ tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), true);
-/* 51: */ }
-/* 52: */ }
-/* 53: */ else {
-/* 54: 41 */ tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), true);
-/* 55: */ }
-/* 56: */ }
-/* 57: */ }
-/* 58: */ }
-/* 59: */ else
-/* 60: */ {
-/* 61: 46 */ FluidStack tLiquid = tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), this.mTransferRate, false);
-/* 62: 47 */ if (tLiquid != null)
-/* 63: */ {
-/* 64: 48 */ tLiquid = tLiquid.copy();
-/* 65: 49 */ tLiquid.amount = tTank1.fill(ForgeDirection.getOrientation(aSide), tLiquid, false);
-/* 66: 50 */ if (tLiquid.amount > 0) {
-/* 67: 51 */ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= Math.min(1, tLiquid.amount / 10)))
-/* 68: */ {
-/* 69: 52 */ if (aTileEntity.isUniversalEnergyStored(Math.min(1, tLiquid.amount / 10)))
-/* 70: */ {
-/* 71: 53 */ aTileEntity.decreaseStoredEnergyUnits(Math.min(1, tLiquid.amount / 10), true);
-/* 72: 54 */ tTank1.fill(ForgeDirection.getOrientation(aSide), tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid.amount, true), true);
-/* 73: */ }
-/* 74: */ }
-/* 75: */ else {
-/* 76: 57 */ tTank1.fill(ForgeDirection.getOrientation(aSide), tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid.amount, true), true);
-/* 77: */ }
-/* 78: */ }
-/* 79: */ }
-/* 80: */ }
-/* 81: */ }
-/* 82: */ }
-/* 83: 64 */ return aCoverVariable;
-/* 84: */ }
-/* 85: */
-/* 86: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 87: */ {
-/* 88: 69 */ aCoverVariable = (aCoverVariable + 1) % 12;
-/* 89: 70 */ if (aCoverVariable == 0) {
-/* 90: 70 */ GT_Utility.sendChatToPlayer(aPlayer, "Export");
-/* 91: */ }
-/* 92: 71 */ if (aCoverVariable == 1) {
-/* 93: 71 */ GT_Utility.sendChatToPlayer(aPlayer, "Import");
-/* 94: */ }
-/* 95: 72 */ if (aCoverVariable == 2) {
-/* 96: 72 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
-/* 97: */ }
-/* 98: 73 */ if (aCoverVariable == 3) {
-/* 99: 73 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
-/* 100: */ }
-/* 101: 74 */ if (aCoverVariable == 4) {
-/* 102: 74 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
-/* 103: */ }
-/* 104: 75 */ if (aCoverVariable == 5) {
-/* 105: 75 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
-/* 106: */ }
-/* 107: 76 */ if (aCoverVariable == 6) {
-/* 108: 76 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
-/* 109: */ }
-/* 110: 77 */ if (aCoverVariable == 7) {
-/* 111: 77 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
-/* 112: */ }
-/* 113: 78 */ if (aCoverVariable == 8) {
-/* 114: 78 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
-/* 115: */ }
-/* 116: 79 */ if (aCoverVariable == 9) {
-/* 117: 79 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
-/* 118: */ }
-/* 119: 80 */ if (aCoverVariable == 10) {
-/* 120: 80 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
-/* 121: */ }
-/* 122: 81 */ if (aCoverVariable == 11) {
-/* 123: 81 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
-/* 124: */ }
-/* 125: 82 */ return aCoverVariable;
-/* 126: */ }
-/* 127: */
-/* 128: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 129: */ {
-/* 130: 87 */ return true;
-/* 131: */ }
-/* 132: */
-/* 133: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 134: */ {
-/* 135: 92 */ return true;
-/* 136: */ }
-/* 137: */
-/* 138: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 139: */ {
-/* 140: 97 */ return true;
-/* 141: */ }
-/* 142: */
-/* 143: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 144: */ {
-/* 145:102 */ return true;
-/* 146: */ }
-/* 147: */
-/* 148: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 149: */ {
-/* 150:107 */ return true;
-/* 151: */ }
-/* 152: */
-/* 153: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 154: */ {
-/* 155:112 */ return true;
-/* 156: */ }
-/* 157: */
-/* 158: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 159: */ {
-/* 160:117 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 161:117 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
-/* 162:117 */ return false;
-/* 163: */ }
-/* 164: */ }
-/* 165:118 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 != 0);
-/* 166: */ }
-/* 167: */
-/* 168: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 169: */ {
-/* 170:123 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 171:123 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
-/* 172:123 */ return false;
-/* 173: */ }
-/* 174: */ }
-/* 175:124 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 == 0);
-/* 176: */ }
-/* 177: */
-/* 178: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 179: */ {
-/* 180:129 */ return true;
-/* 181: */ }
-/* 182: */
-/* 183: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 184: */ {
-/* 185:134 */ return 1;
-/* 186: */ }
-/* 187: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_Cover_Pump
+ extends GT_CoverBehavior
+{
+ public final int mTransferRate;
+
+ public GT_Cover_Pump(int aTransferRate)
+ {
+ this.mTransferRate = aTransferRate;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
+ return aCoverVariable;
+ }
+ }
+ if ((aTileEntity instanceof IFluidHandler))
+ {
+ IFluidHandler tTank2 = aTileEntity.getITankContainerAtSide(aSide);
+ if (tTank2 != null)
+ {
+ aTileEntity.decreaseStoredEnergyUnits(GT_Utility.getTier(this.mTransferRate), true);
+ IFluidHandler tTank1 = (IFluidHandler)aTileEntity;
+ if (aCoverVariable % 2 == 0)
+ {
+ FluidStack tLiquid = tTank1.drain(ForgeDirection.getOrientation(aSide), this.mTransferRate, false);
+ if (tLiquid != null)
+ {
+ tLiquid = tLiquid.copy();
+ tLiquid.amount = tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid, false);
+ if (tLiquid.amount > 0) {
+ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= Math.min(1, tLiquid.amount / 10)))
+ {
+ if (aTileEntity.isUniversalEnergyStored(Math.min(1, tLiquid.amount / 10)))
+ {
+ aTileEntity.decreaseStoredEnergyUnits(Math.min(1, tLiquid.amount / 10), true);
+ tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), true);
+ }
+ }
+ else {
+ tTank2.fill(ForgeDirection.getOrientation(aSide).getOpposite(), tTank1.drain(ForgeDirection.getOrientation(aSide), tLiquid.amount, true), true);
+ }
+ }
+ }
+ }
+ else
+ {
+ FluidStack tLiquid = tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), this.mTransferRate, false);
+ if (tLiquid != null)
+ {
+ tLiquid = tLiquid.copy();
+ tLiquid.amount = tTank1.fill(ForgeDirection.getOrientation(aSide), tLiquid, false);
+ if (tLiquid.amount > 0) {
+ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= Math.min(1, tLiquid.amount / 10)))
+ {
+ if (aTileEntity.isUniversalEnergyStored(Math.min(1, tLiquid.amount / 10)))
+ {
+ aTileEntity.decreaseStoredEnergyUnits(Math.min(1, tLiquid.amount / 10), true);
+ tTank1.fill(ForgeDirection.getOrientation(aSide), tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid.amount, true), true);
+ }
+ }
+ else {
+ tTank1.fill(ForgeDirection.getOrientation(aSide), tTank2.drain(ForgeDirection.getOrientation(aSide).getOpposite(), tLiquid.amount, true), true);
+ }
+ }
+ }
+ }
+ }
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 12;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
+ }
+ if (aCoverVariable == 4) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
+ }
+ if (aCoverVariable == 5) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
+ }
+ if (aCoverVariable == 6) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
+ }
+ if (aCoverVariable == 7) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
+ }
+ if (aCoverVariable == 8) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
+ }
+ if (aCoverVariable == 9) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
+ }
+ if (aCoverVariable == 10) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
+ }
+ if (aCoverVariable == 11) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
+ return false;
+ }
+ }
+ return (aCoverVariable >= 6) || (aCoverVariable % 2 != 0);
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
+ return false;
+ }
+ }
+ return (aCoverVariable >= 6) || (aCoverVariable % 2 == 0);
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneConductor.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java index c532c79678..eb7dfb025d 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java @@ -1,87 +1,87 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraftforge.fluids.Fluid;
-/* 8: */
-/* 9: */ public class GT_Cover_RedstoneConductor
-/* 10: */ extends GT_CoverBehavior
-/* 11: */ {
-/* 12: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 13: */ {
-/* 14:12 */ if (aCoverVariable == 0) {
-/* 15:12 */ aTileEntity.setOutputRedstoneSignal(aSide, aTileEntity.getStrongestRedstone());
-/* 16:13 */ } else if (aCoverVariable < 7) {
-/* 17:13 */ aTileEntity.setOutputRedstoneSignal(aSide, aTileEntity.getInternalInputRedstoneSignal((byte)(aCoverVariable - 1)));
-/* 18: */ }
-/* 19:15 */ return aCoverVariable;
-/* 20: */ }
-/* 21: */
-/* 22: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 23: */ {
-/* 24:20 */ aCoverVariable = (aCoverVariable + 1) % 7;
-/* 25:21 */ switch (aCoverVariable)
-/* 26: */ {
-/* 27: */ case 0:
-/* 28:22 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts strongest Input"); break;
-/* 29: */ case 1:
-/* 30:23 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from bottom Input"); break;
-/* 31: */ case 2:
-/* 32:24 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from top Input"); break;
-/* 33: */ case 3:
-/* 34:25 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from north Input"); break;
-/* 35: */ case 4:
-/* 36:26 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from south Input"); break;
-/* 37: */ case 5:
-/* 38:27 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from west Input"); break;
-/* 39: */ case 6:
-/* 40:28 */ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from east Input");
-/* 41: */ }
-/* 42:30 */ return aCoverVariable;
-/* 43: */ }
-/* 44: */
-/* 45: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 46: */ {
-/* 47:35 */ return true;
-/* 48: */ }
-/* 49: */
-/* 50: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 51: */ {
-/* 52:40 */ return true;
-/* 53: */ }
-/* 54: */
-/* 55: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 56: */ {
-/* 57:45 */ return true;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 61: */ {
-/* 62:50 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 66: */ {
-/* 67:55 */ return true;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 71: */ {
-/* 72:60 */ return true;
-/* 73: */ }
-/* 74: */
-/* 75: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 76: */ {
-/* 77:65 */ return true;
-/* 78: */ }
-/* 79: */
-/* 80: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 81: */ {
-/* 82:70 */ return 1;
-/* 83: */ }
-/* 84: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_RedstoneConductor
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if (aCoverVariable == 0) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aTileEntity.getStrongestRedstone());
+ } else if (aCoverVariable < 7) {
+ aTileEntity.setOutputRedstoneSignal(aSide, aTileEntity.getInternalInputRedstoneSignal((byte)(aCoverVariable - 1)));
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 7;
+ switch (aCoverVariable)
+ {
+ case 0:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts strongest Input"); break;
+ case 1:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from bottom Input"); break;
+ case 2:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from top Input"); break;
+ case 3:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from north Input"); break;
+ case 4:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from south Input"); break;
+ case 5:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from west Input"); break;
+ case 6:
+ GT_Utility.sendChatToPlayer(aPlayer, "Conducts from east Input");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneReceiverExternal.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java index 7e8ee0d1ca..080b49a753 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java @@ -1,28 +1,28 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import java.util.Map;
-/* 6: */
-/* 7: */ public class GT_Cover_RedstoneReceiverExternal
-/* 8: */ extends GT_Cover_RedstoneWirelessBase
-/* 9: */ {
-/* 10: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 11: */ {
-/* 12: 9 */ aTileEntity.setOutputRedstoneSignal(aSide, GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable)) == null ? 0 : ((Byte)GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable))).byteValue());
-/* 13:10 */ return aCoverVariable;
-/* 14: */ }
-/* 15: */
-/* 16: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:15 */ return true;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 22: */ {
-/* 23:20 */ return 1;
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.covers;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import java.util.Map;
+
+public class GT_Cover_RedstoneReceiverExternal
+ extends GT_Cover_RedstoneWirelessBase
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ aTileEntity.setOutputRedstoneSignal(aSide, GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable)) == null ? 0 : ((Byte)GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable))).byteValue());
+ return aCoverVariable;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneReceiverInternal.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java index 3da8553810..4d9d660aa3 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java @@ -1,27 +1,27 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import java.util.Map;
-/* 6: */
-/* 7: */ public class GT_Cover_RedstoneReceiverInternal
-/* 8: */ extends GT_Cover_RedstoneWirelessBase
-/* 9: */ {
-/* 10: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 11: */ {
-/* 12: 9 */ return aCoverVariable;
-/* 13: */ }
-/* 14: */
-/* 15: */ public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 16: */ {
-/* 17:14 */ return GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable)) == null ? 0 : ((Byte)GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable))).byteValue();
-/* 18: */ }
-/* 19: */
-/* 20: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 21: */ {
-/* 22:19 */ return 1;
-/* 23: */ }
-/* 24: */ }
+package gregtech.common.covers;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import java.util.Map;
+
+public class GT_Cover_RedstoneReceiverInternal
+ extends GT_Cover_RedstoneWirelessBase
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ return aCoverVariable;
+ }
+
+ public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable)) == null ? 0 : ((Byte)GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable))).byteValue();
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneSignalizer.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java index e95b8b33ea..c37e91bdbf 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java @@ -1,84 +1,84 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_RedstoneSignalizer
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 14: */ {
-/* 15:13 */ aCoverVariable = (aCoverVariable + 1) % 48;
-/* 16:14 */ if (aCoverVariable / 16 == 0) {
-/* 17:15 */ GT_Utility.sendChatToPlayer(aPlayer, "Signal = " + (aCoverVariable & 0xF));
-/* 18:16 */ } else if (aCoverVariable / 16 == 1) {
-/* 19:17 */ GT_Utility.sendChatToPlayer(aPlayer, "Conditional Signal = " + (aCoverVariable & 0xF));
-/* 20:18 */ } else if (aCoverVariable / 16 == 2) {
-/* 21:19 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Conditional Signal = " + (aCoverVariable & 0xF));
-/* 22: */ }
-/* 23:20 */ return aCoverVariable;
-/* 24: */ }
-/* 25: */
-/* 26: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 27: */ {
-/* 28:25 */ return true;
-/* 29: */ }
-/* 30: */
-/* 31: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 32: */ {
-/* 33:30 */ return true;
-/* 34: */ }
-/* 35: */
-/* 36: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 37: */ {
-/* 38:35 */ return true;
-/* 39: */ }
-/* 40: */
-/* 41: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 42: */ {
-/* 43:40 */ return true;
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 47: */ {
-/* 48:45 */ return true;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 52: */ {
-/* 53:50 */ return true;
-/* 54: */ }
-/* 55: */
-/* 56: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 57: */ {
-/* 58:55 */ return true;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 62: */ {
-/* 63:60 */ if (aCoverVariable < 16) {
-/* 64:60 */ return (byte)(aCoverVariable & 0xF);
-/* 65: */ }
-/* 66:61 */ if ((aTileEntity instanceof IMachineProgress))
-/* 67: */ {
-/* 68:62 */ if (((IMachineProgress)aTileEntity).isAllowedToWork())
-/* 69: */ {
-/* 70:63 */ if (aCoverVariable / 16 == 1) {
-/* 71:64 */ return (byte)(aCoverVariable & 0xF);
-/* 72: */ }
-/* 73: */ }
-/* 74:67 */ else if (aCoverVariable / 16 == 2) {
-/* 75:68 */ return (byte)(aCoverVariable & 0xF);
-/* 76: */ }
-/* 77:71 */ return 0;
-/* 78: */ }
-/* 79:73 */ return (byte)(aCoverVariable & 0xF);
-/* 80: */ }
-/* 81: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_RedstoneSignalizer
+ extends GT_CoverBehavior
+{
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 48;
+ if (aCoverVariable / 16 == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Signal = " + (aCoverVariable & 0xF));
+ } else if (aCoverVariable / 16 == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Conditional Signal = " + (aCoverVariable & 0xF));
+ } else if (aCoverVariable / 16 == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted Conditional Signal = " + (aCoverVariable & 0xF));
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public byte getRedstoneInput(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ if (aCoverVariable < 16) {
+ return (byte)(aCoverVariable & 0xF);
+ }
+ if ((aTileEntity instanceof IMachineProgress))
+ {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork())
+ {
+ if (aCoverVariable / 16 == 1) {
+ return (byte)(aCoverVariable & 0xF);
+ }
+ }
+ else if (aCoverVariable / 16 == 2) {
+ return (byte)(aCoverVariable & 0xF);
+ }
+ return 0;
+ }
+ return (byte)(aCoverVariable & 0xF);
+ }
+}
/* 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/covers/GT_Cover_RedstoneTransmitterExternal.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java index 60e2d0fa9b..49b73738d4 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java @@ -1,28 +1,28 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import java.util.Map;
-/* 6: */
-/* 7: */ public class GT_Cover_RedstoneTransmitterExternal
-/* 8: */ extends GT_Cover_RedstoneWirelessBase
-/* 9: */ {
-/* 10: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 11: */ {
-/* 12: 9 */ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf(aInputRedstone));
-/* 13:10 */ return aCoverVariable;
-/* 14: */ }
-/* 15: */
-/* 16: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:15 */ return true;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 22: */ {
-/* 23:20 */ return 1;
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.covers;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import java.util.Map;
+
+public class GT_Cover_RedstoneTransmitterExternal
+ extends GT_Cover_RedstoneWirelessBase
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf(aInputRedstone));
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneTransmitterInternal.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java index 63ab9e4b78..28c87dbb0d 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java @@ -1,28 +1,28 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import java.util.Map;
-/* 6: */
-/* 7: */ public class GT_Cover_RedstoneTransmitterInternal
-/* 8: */ extends GT_Cover_RedstoneWirelessBase
-/* 9: */ {
-/* 10: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 11: */ {
-/* 12: 9 */ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf(aTileEntity.getOutputRedstoneSignal(aSide)));
-/* 13:10 */ return aCoverVariable;
-/* 14: */ }
-/* 15: */
-/* 16: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:15 */ return true;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 22: */ {
-/* 23:20 */ return 1;
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.covers;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import java.util.Map;
+
+public class GT_Cover_RedstoneTransmitterInternal
+ extends GT_Cover_RedstoneWirelessBase
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf(aTileEntity.getOutputRedstoneSignal(aSide)));
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_RedstoneWirelessBase.java b/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java index 4a778a875b..12f758a9f7 100644 --- a/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java +++ b/main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java @@ -1,101 +1,101 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import java.util.Map;
-/* 8: */ import net.minecraft.entity.player.EntityPlayer;
-/* 9: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 10: */ import net.minecraftforge.fluids.Fluid;
-/* 11: */
-/* 12: */ public abstract class GT_Cover_RedstoneWirelessBase
-/* 13: */ extends GT_CoverBehavior
-/* 14: */ {
-/* 15: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 16: */ {
-/* 17:13 */ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
-/* 18:14 */ return true;
-/* 19: */ }
-/* 20: */
-/* 21: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 22: */ {
-/* 23:19 */ if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && (((aY > 0.375D) && (aY < 0.625D)) || ((aSide < 2) && (((aZ > 0.375D) && (aZ < 0.625D)) || (aSide == 2) || (aSide == 3))))))
-/* 24: */ {
-/* 25:20 */ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
-/* 26:21 */ aCoverVariable = GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem());
-/* 27:22 */ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
-/* 28:23 */ GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + aCoverVariable);
-/* 29:24 */ return true;
-/* 30: */ }
-/* 31:26 */ return false;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 35: */ {
-/* 36:31 */ if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((aSide >= 2) || (((aZ <= 0.375D) || (aZ >= 0.625D)) && (aSide != 2) && (aSide != 3))))))
-/* 37: */ {
-/* 38:34 */ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
-/* 39:35 */ float[] tCoords = GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ);
-/* 40:36 */ switch ((byte)((byte)(int)(tCoords[0] * 2.0F) + 2 * (byte)(int)(tCoords[1] * 2.0F)))
-/* 41: */ {
-/* 42: */ case 0:
-/* 43:38 */ aCoverVariable -= 32;
-/* 44:39 */ break;
-/* 45: */ case 1:
-/* 46:41 */ aCoverVariable += 32;
-/* 47:42 */ break;
-/* 48: */ case 2:
-/* 49:44 */ aCoverVariable -= 1024;
-/* 50:45 */ break;
-/* 51: */ case 3:
-/* 52:47 */ aCoverVariable += 1024;
-/* 53: */ }
-/* 54: */ }
-/* 55:51 */ GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + aCoverVariable);
-/* 56:52 */ return aCoverVariable;
-/* 57: */ }
-/* 58: */
-/* 59: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 60: */ {
-/* 61:57 */ return true;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 65: */ {
-/* 66:62 */ return true;
-/* 67: */ }
-/* 68: */
-/* 69: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 70: */ {
-/* 71:67 */ return true;
-/* 72: */ }
-/* 73: */
-/* 74: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 75: */ {
-/* 76:72 */ return true;
-/* 77: */ }
-/* 78: */
-/* 79: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 80: */ {
-/* 81:77 */ return true;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 85: */ {
-/* 86:82 */ return true;
-/* 87: */ }
-/* 88: */
-/* 89: */ public String getDescription(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 90: */ {
-/* 91:87 */ return "Frequency: " + aCoverVariable;
-/* 92: */ }
-/* 93: */
-/* 94: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 95: */ {
-/* 96:92 */ return 1;
-/* 97: */ }
-/* 98: */ }
+package gregtech.common.covers;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import java.util.Map;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public abstract class GT_Cover_RedstoneWirelessBase
+ extends GT_CoverBehavior
+{
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
+ return true;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && (((aY > 0.375D) && (aY < 0.625D)) || ((aSide < 2) && (((aZ > 0.375D) && (aZ < 0.625D)) || (aSide == 2) || (aSide == 3))))))
+ {
+ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
+ aCoverVariable = GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem());
+ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
+ GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + aCoverVariable);
+ return true;
+ }
+ return false;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((aSide >= 2) || (((aZ <= 0.375D) || (aZ >= 0.625D)) && (aSide != 2) && (aSide != 3))))))
+ {
+ GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte)0));
+ float[] tCoords = GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ);
+ switch ((byte)((byte)(int)(tCoords[0] * 2.0F) + 2 * (byte)(int)(tCoords[1] * 2.0F)))
+ {
+ case 0:
+ aCoverVariable -= 32;
+ break;
+ case 1:
+ aCoverVariable += 32;
+ break;
+ case 2:
+ aCoverVariable -= 1024;
+ break;
+ case 3:
+ aCoverVariable += 1024;
+ }
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, "Frequency: " + aCoverVariable);
+ return aCoverVariable;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public String getDescription(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return "Frequency: " + aCoverVariable;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_Screen.java b/main/java/gregtech/common/covers/GT_Cover_Screen.java index f3d1f519be..ee41f91955 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Screen.java +++ b/main/java/gregtech/common/covers/GT_Cover_Screen.java @@ -1,83 +1,83 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import net.minecraft.entity.player.EntityPlayer;
-/* 6: */ import net.minecraftforge.fluids.Fluid;
-/* 7: */
-/* 8: */ public class GT_Cover_Screen
-/* 9: */ extends GT_CoverBehavior
-/* 10: */ {
-/* 11: */ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 12: */ {
-/* 13:11 */ return 20.0F;
-/* 14: */ }
-/* 15: */
-/* 16: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:16 */ return false;
-/* 19: */ }
-/* 20: */
-/* 21: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 22: */ {
-/* 23:21 */ return false;
-/* 24: */ }
-/* 25: */
-/* 26: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 27: */ {
-/* 28:26 */ return false;
-/* 29: */ }
-/* 30: */
-/* 31: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 32: */ {
-/* 33:31 */ return false;
-/* 34: */ }
-/* 35: */
-/* 36: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 37: */ {
-/* 38:36 */ return false;
-/* 39: */ }
-/* 40: */
-/* 41: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 42: */ {
-/* 43:41 */ return false;
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 47: */ {
-/* 48:46 */ return false;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 52: */ {
-/* 53:51 */ return false;
-/* 54: */ }
-/* 55: */
-/* 56: */ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 57: */ {
-/* 58:56 */ return true;
-/* 59: */ }
-/* 60: */
-/* 61: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 62: */ {
-/* 63:61 */ return false;
-/* 64: */ }
-/* 65: */
-/* 66: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 67: */ {
-/* 68:66 */ return false;
-/* 69: */ }
-/* 70: */
-/* 71: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 72: */ {
-/* 73:71 */ return true;
-/* 74: */ }
-/* 75: */
-/* 76: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 77: */ {
-/* 78:76 */ return 0;
-/* 79: */ }
-/* 80: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Screen
+ extends GT_CoverBehavior
+{
+ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 20.0F;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ return false;
+ }
+
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ return true;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ return 0;
+ }
+}
/* 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/covers/GT_Cover_Shutter.java b/main/java/gregtech/common/covers/GT_Cover_Shutter.java index 1defd5b62a..f11ac72bb7 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Shutter.java +++ b/main/java/gregtech/common/covers/GT_Cover_Shutter.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraftforge.fluids.Fluid;
-/* 8: */
-/* 9: */ public class GT_Cover_Shutter
-/* 10: */ extends GT_CoverBehavior
-/* 11: */ {
-/* 12: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 13: */ {
-/* 14:13 */ return aCoverVariable;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 18: */ {
-/* 19:18 */ aCoverVariable = (aCoverVariable + 1) % 4;
-/* 20:19 */ if (aCoverVariable == 0) {
-/* 21:19 */ GT_Utility.sendChatToPlayer(aPlayer, "Open if work enabled");
-/* 22: */ }
-/* 23:20 */ if (aCoverVariable == 1) {
-/* 24:20 */ GT_Utility.sendChatToPlayer(aPlayer, "Open if work disabled");
-/* 25: */ }
-/* 26:21 */ if (aCoverVariable == 2) {
-/* 27:21 */ GT_Utility.sendChatToPlayer(aPlayer, "Only Output allowed");
-/* 28: */ }
-/* 29:22 */ if (aCoverVariable == 3) {
-/* 30:22 */ GT_Utility.sendChatToPlayer(aPlayer, "Only Input allowed");
-/* 31: */ }
-/* 32:23 */ return aCoverVariable;
-/* 33: */ }
-/* 34: */
-/* 35: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Shutter
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 4;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Open if work enabled");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Open if work disabled");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Only Output allowed");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Only Input allowed");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
{
return aCoverVariable >= 2 ? aCoverVariable == 3 : (aTileEntity instanceof IMachineProgress) ? ((IMachineProgress)aTileEntity).isAllowedToWork() ? aCoverVariable % 2 == 0 : aCoverVariable % 2 != 0 : true;
}
@@ -72,17 +72,17 @@ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aS {
return aCoverVariable >= 2 ? aCoverVariable == 2 : (aTileEntity instanceof IMachineProgress) ? ((IMachineProgress)aTileEntity).isAllowedToWork() ? aCoverVariable % 2 == 0 : aCoverVariable % 2 != 0 : true;
}
-/* 74: */
-/* 75: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 76: */ {
-/* 77:68 */ return true;
-/* 78: */ }
-/* 79: */
-/* 80: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 81: */ {
-/* 82:73 */ return 0;
-/* 83: */ }
-/* 84: */ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 0;
+ }
+}
/* 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/covers/GT_Cover_SolarPanel.java b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java index 69f5ee5b61..38b227781d 100644 --- a/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java +++ b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java @@ -1,44 +1,44 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import net.minecraft.world.World;
-/* 6: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 7: */
-/* 8: */ public class GT_Cover_SolarPanel
-/* 9: */ extends GT_CoverBehavior
-/* 10: */ {
-/* 11: */ private final int mVoltage;
-/* 12: */
-/* 13: */ public GT_Cover_SolarPanel(int aVoltage)
-/* 14: */ {
-/* 15:11 */ this.mVoltage = aVoltage;
-/* 16: */ }
-/* 17: */
-/* 18: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 19: */ {
-/* 20:16 */ if (aTimer % 100L == 0L) {
-/* 21:17 */ if ((aSide != 1) || (aTileEntity.getWorld().isThundering()))
-/* 22: */ {
-/* 23:18 */ aCoverVariable = 0;
-/* 24: */ }
-/* 25: */ else
-/* 26: */ {
-/* 27:20 */ boolean bRain = (aTileEntity.getWorld().isRaining()) && (aTileEntity.getBiome().rainfall > 0.0F);
-/* 28:21 */ aCoverVariable = ((!bRain) || (aTileEntity.getWorld().skylightSubtracted < 4)) && (aTileEntity.getSkyAtSide(aSide)) ? 1 : (bRain) || (!aTileEntity.getWorld().isDaytime()) ? 2 : 0;
-/* 29: */ }
-/* 30: */ }
-/* 31:24 */ if ((aCoverVariable == 1) || ((aCoverVariable == 2) && (aTimer % 8L == 0L))) {
-/* 32:24 */ aTileEntity.injectEnergyUnits((byte)6, this.mVoltage, 1L);
-/* 33: */ }
-/* 34:25 */ return aCoverVariable;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 38: */ {
-/* 39:30 */ return 1;
-/* 40: */ }
-/* 41: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+
+public class GT_Cover_SolarPanel
+ extends GT_CoverBehavior
+{
+ private final int mVoltage;
+
+ public GT_Cover_SolarPanel(int aVoltage)
+ {
+ this.mVoltage = aVoltage;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if (aTimer % 100L == 0L) {
+ if ((aSide != 1) || (aTileEntity.getWorld().isThundering()))
+ {
+ aCoverVariable = 0;
+ }
+ else
+ {
+ boolean bRain = (aTileEntity.getWorld().isRaining()) && (aTileEntity.getBiome().rainfall > 0.0F);
+ aCoverVariable = ((!bRain) || (aTileEntity.getWorld().skylightSubtracted < 4)) && (aTileEntity.getSkyAtSide(aSide)) ? 1 : (bRain) || (!aTileEntity.getWorld().isDaytime()) ? 2 : 0;
+ }
+ }
+ if ((aCoverVariable == 1) || ((aCoverVariable == 2) && (aTimer % 8L == 0L))) {
+ aTileEntity.injectEnergyUnits((byte)6, this.mVoltage, 1L);
+ }
+ return aCoverVariable;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 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/covers/GT_Cover_Vent.java b/main/java/gregtech/common/covers/GT_Cover_Vent.java index 9cd753eda4..9e91bde7dd 100644 --- a/main/java/gregtech/common/covers/GT_Cover_Vent.java +++ b/main/java/gregtech/common/covers/GT_Cover_Vent.java @@ -1,43 +1,43 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */
-/* 8: */ public class GT_Cover_Vent
-/* 9: */ extends GT_CoverBehavior
-/* 10: */ {
-/* 11: */ private final int mEfficiency;
-/* 12: */
-/* 13: */ public GT_Cover_Vent(int aEfficiency)
-/* 14: */ {
-/* 15:13 */ this.mEfficiency = aEfficiency;
-/* 16: */ }
-/* 17: */
-/* 18: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 19: */ {
-/* 20:18 */ if ((aTileEntity instanceof IMachineProgress))
-/* 21: */ {
-/* 22:19 */ if ((((IMachineProgress)aTileEntity).hasThingsToDo()) && (aCoverVariable != ((IMachineProgress)aTileEntity).getProgress()) &&
-/* 23:20 */ (!GT_Utility.hasBlockHitBox(aTileEntity.getWorld(), aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1)))) {
-/* 24:21 */ ((IMachineProgress)aTileEntity).increaseProgress(this.mEfficiency);
-/* 25: */ }
-/* 26:24 */ return ((IMachineProgress)aTileEntity).getProgress();
-/* 27: */ }
-/* 28:26 */ return 0;
-/* 29: */ }
-/* 30: */
-/* 31: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 32: */ {
-/* 33:31 */ return true;
-/* 34: */ }
-/* 35: */
-/* 36: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 37: */ {
-/* 38:36 */ return 60;
-/* 39: */ }
-/* 40: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+
+public class GT_Cover_Vent
+ extends GT_CoverBehavior
+{
+ private final int mEfficiency;
+
+ public GT_Cover_Vent(int aEfficiency)
+ {
+ this.mEfficiency = aEfficiency;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aTileEntity instanceof IMachineProgress))
+ {
+ if ((((IMachineProgress)aTileEntity).hasThingsToDo()) && (aCoverVariable != ((IMachineProgress)aTileEntity).getProgress()) &&
+ (!GT_Utility.hasBlockHitBox(aTileEntity.getWorld(), aTileEntity.getOffsetX(aSide, 1), aTileEntity.getOffsetY(aSide, 1), aTileEntity.getOffsetZ(aSide, 1)))) {
+ ((IMachineProgress)aTileEntity).increaseProgress(this.mEfficiency);
+ }
+ return ((IMachineProgress)aTileEntity).getProgress();
+ }
+ return 0;
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 60;
+ }
+}
/* 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/entities/GT_Entity_Arrow.java b/main/java/gregtech/common/entities/GT_Entity_Arrow.java index 63a319f01a..83bb16d92b 100644 --- a/main/java/gregtech/common/entities/GT_Entity_Arrow.java +++ b/main/java/gregtech/common/entities/GT_Entity_Arrow.java @@ -1,394 +1,394 @@ -/* 1: */ package gregtech.common.entities;
-/* 2: */
-/* 3: */ import com.mojang.authlib.GameProfile;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.objects.ItemData;
-/* 6: */ import gregtech.api.objects.MaterialStack;
-/* 7: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import gregtech.api.util.GT_Utility.GT_EnchantmentHelper;
-/* 10: */ import java.util.List;
-/* 11: */ import java.util.Random;
-/* 12: */ import java.util.UUID;
-/* 13: */ import net.minecraft.block.Block;
-/* 14: */ import net.minecraft.block.material.Material;
-/* 15: */ import net.minecraft.enchantment.Enchantment;
-/* 16: */ import net.minecraft.enchantment.EnchantmentHelper;
-/* 17: */ import net.minecraft.entity.Entity;
-/* 18: */ import net.minecraft.entity.EntityLivingBase;
-/* 19: */ import net.minecraft.entity.monster.EntityCreeper;
-/* 20: */ import net.minecraft.entity.monster.EntityEnderman;
-/* 21: */ import net.minecraft.entity.player.EntityPlayer;
-/* 22: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 23: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 24: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 25: */ import net.minecraft.entity.projectile.EntityArrow;
-/* 26: */ import net.minecraft.init.Blocks;
-/* 27: */ import net.minecraft.init.Items;
-/* 28: */ import net.minecraft.item.ItemStack;
-/* 29: */ import net.minecraft.nbt.NBTTagCompound;
-/* 30: */ import net.minecraft.network.NetHandlerPlayServer;
-/* 31: */ import net.minecraft.network.play.server.S2BPacketChangeGameState;
-/* 32: */ import net.minecraft.potion.Potion;
-/* 33: */ import net.minecraft.util.AxisAlignedBB;
-/* 34: */ import net.minecraft.util.DamageSource;
-/* 35: */ import net.minecraft.util.MathHelper;
-/* 36: */ import net.minecraft.util.MovingObjectPosition;
-/* 37: */ import net.minecraft.util.Vec3;
-/* 38: */ import net.minecraft.world.World;
-/* 39: */ import net.minecraft.world.WorldServer;
-/* 40: */ import net.minecraftforge.common.util.FakePlayerFactory;
-/* 41: */
-/* 42: */ public class GT_Entity_Arrow
-/* 43: */ extends EntityArrow
-/* 44: */ {
-/* 45: 36 */ private int mHitBlockX = -1;
-/* 46: 37 */ private int mHitBlockY = -1;
-/* 47: 38 */ private int mHitBlockZ = -1;
-/* 48: 39 */ private Block mHitBlock = Blocks.air;
-/* 49: 40 */ private int mHitBlockMeta = 0;
-/* 50: 41 */ private boolean inGround = false;
-/* 51: 42 */ private int mTicksAlive = 0;
-/* 52: 43 */ private int ticksInAir = 0;
-/* 53: 44 */ private int mKnockback = 0;
-/* 54: 46 */ private ItemStack mArrow = null;
-/* 55: */
-/* 56: */ public GT_Entity_Arrow(World aWorld)
-/* 57: */ {
-/* 58: 49 */ super(aWorld);
-/* 59: */ }
-/* 60: */
-/* 61: */ public GT_Entity_Arrow(World aWorld, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 53 */ super(aWorld, aX, aY, aZ);
-/* 64: */ }
-/* 65: */
-/* 66: */ public GT_Entity_Arrow(World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 67: */ {
-/* 68: 57 */ super(aWorld, aEntity, aSpeed);
-/* 69: */ }
-/* 70: */
-/* 71: */ public GT_Entity_Arrow(EntityArrow aArrow, ItemStack aStack)
-/* 72: */ {
-/* 73: 61 */ super(aArrow.worldObj);
-/* 74: 62 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 75: 63 */ aArrow.writeToNBT(tNBT);
-/* 76: 64 */ readFromNBT(tNBT);
-/* 77: 65 */ setArrowItem(aStack);
-/* 78: */ }
-/* 79: */
-/* 80: */ public void onUpdate()
-/* 81: */ {
-/* 82: 70 */ onEntityUpdate();
-/* 83: 71 */ if ((this.mArrow == null) && (!this.worldObj.isRemote))
-/* 84: */ {
-/* 85: 72 */ setDead();
-/* 86: 73 */ return;
-/* 87: */ }
-/* 88: 76 */ Entity tShootingEntity = this.shootingEntity;
-/* 89: 78 */ if ((this.prevRotationPitch == 0.0F) && (this.prevRotationYaw == 0.0F))
-/* 90: */ {
-/* 91: 79 */ float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
-/* 92: 80 */ this.prevRotationYaw = (this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0D / 3.141592653589793D));
-/* 93: 81 */ this.prevRotationPitch = (this.rotationPitch = (float)(Math.atan2(this.motionY, f) * 180.0D / 3.141592653589793D));
-/* 94: */ }
-/* 95: 84 */ if (this.mTicksAlive++ == 3000) {
-/* 96: 84 */ setDead();
-/* 97: */ }
-/* 98: 86 */ Block tBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 99: 88 */ if (tBlock.getMaterial() != Material.air)
-/* 100: */ {
-/* 101: 89 */ tBlock.setBlockBoundsBasedOnState(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 102: 90 */ AxisAlignedBB axisalignedbb = tBlock.getCollisionBoundingBoxFromPool(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 103: 91 */ if ((axisalignedbb != null) && (axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ)))) {
-/* 104: 91 */ this.inGround = true;
-/* 105: */ }
-/* 106: */ }
-/* 107: 94 */ if (this.arrowShake > 0) {
-/* 108: 94 */ this.arrowShake -= 1;
-/* 109: */ }
-/* 110: 96 */ if (this.inGround)
-/* 111: */ {
-/* 112: 97 */ int j = this.worldObj.getBlockMetadata(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 113: 98 */ if ((tBlock != this.mHitBlock) || (j != this.mHitBlockMeta))
-/* 114: */ {
-/* 115: 99 */ this.inGround = false;
-/* 116:100 */ this.motionX *= this.rand.nextFloat() * 0.2F;
-/* 117:101 */ this.motionY *= this.rand.nextFloat() * 0.2F;
-/* 118:102 */ this.motionZ *= this.rand.nextFloat() * 0.2F;
-/* 119:103 */ this.mTicksAlive = 0;
-/* 120:104 */ this.ticksInAir = 0;
-/* 121: */ }
-/* 122: */ }
-/* 123: */ else
-/* 124: */ {
-/* 125:107 */ this.ticksInAir += 1;
-/* 126:108 */ Vec3 vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
-/* 127:109 */ Vec3 vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
-/* 128:110 */ MovingObjectPosition tVector = this.worldObj.func_147447_a(vec31, vec3, false, true, false);
-/* 129:111 */ vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
-/* 130:112 */ vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
-/* 131:114 */ if (tVector != null) {
-/* 132:114 */ vec3 = Vec3.createVectorHelper(tVector.hitVec.xCoord, tVector.hitVec.yCoord, tVector.hitVec.zCoord);
-/* 133: */ }
-/* 134:116 */ Entity tHitEntity = null;
-/* 135:117 */ List tAllPotentiallyHitEntities = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
-/* 136:118 */ double tLargestDistance = 1.7976931348623157E+308D;
-/* 137:120 */ for (int i = 0; i < tAllPotentiallyHitEntities.size(); i++)
-/* 138: */ {
-/* 139:121 */ Entity entity1 = (Entity)tAllPotentiallyHitEntities.get(i);
-/* 140:123 */ if ((entity1.canBeCollidedWith()) && ((entity1 != tShootingEntity) || (this.ticksInAir >= 5)))
-/* 141: */ {
-/* 142:124 */ AxisAlignedBB axisalignedbb1 = entity1.boundingBox.expand(0.3D, 0.3D, 0.3D);
-/* 143:125 */ MovingObjectPosition movingobjectposition1 = axisalignedbb1.calculateIntercept(vec31, vec3);
-/* 144:127 */ if (movingobjectposition1 != null)
-/* 145: */ {
-/* 146:128 */ double tDistance = vec31.distanceTo(movingobjectposition1.hitVec);
-/* 147:130 */ if (tDistance < tLargestDistance)
-/* 148: */ {
-/* 149:131 */ tHitEntity = entity1;
-/* 150:132 */ tLargestDistance = tDistance;
-/* 151: */ }
-/* 152: */ }
-/* 153: */ }
-/* 154: */ }
-/* 155:138 */ if (tHitEntity != null) {
-/* 156:138 */ tVector = new MovingObjectPosition(tHitEntity);
-/* 157: */ }
-/* 158:140 */ if ((tVector != null) && (tVector.entityHit != null) && ((tVector.entityHit instanceof EntityPlayer)))
-/* 159: */ {
-/* 160:141 */ EntityPlayer entityplayer = (EntityPlayer)tVector.entityHit;
-/* 161:142 */ if ((entityplayer.capabilities.disableDamage) || (((tShootingEntity instanceof EntityPlayer)) && (!((EntityPlayer)tShootingEntity).canAttackPlayer(entityplayer)))) {
-/* 162:142 */ tVector = null;
-/* 163: */ }
-/* 164: */ }
-/* 165:145 */ if (tVector != null) {
-/* 166:146 */ if (tVector.entityHit != null)
-/* 167: */ {
-/* 168:147 */ ItemData tData = GT_OreDictUnificator.getItemData(this.mArrow);
-/* 169: */
-/* 170: */
-/* 171:150 */ float tMagicDamage = (tVector.entityHit instanceof EntityLivingBase) ? EnchantmentHelper.func_152377_a(this.mArrow, ((EntityLivingBase)tVector.entityHit).getCreatureAttribute()) : 0.0F;
-/* 172:151 */ float tDamage = MathHelper.ceiling_double_int(MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ) * (getDamage() + ((tData != null) && (tData.mMaterial != null) && (tData.mMaterial.mMaterial != null) ? tData.mMaterial.mMaterial.mToolQuality / 2.0F - 1.0F : 0.0F)));
-/* 173:153 */ if (getIsCritical()) {
-/* 174:153 */ tDamage += this.rand.nextInt((int)(tDamage / 2.0D + 2.0D));
-/* 175: */ }
-/* 176:156 */ int tFireDamage = (isBurning() ? 5 : 0) + 4 * EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow);
-/* 177:157 */ int tKnockback = this.mKnockback + EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, this.mArrow);
-/* 178:158 */ int tHitTimer = -1;
-/* 179: */
-/* 180:160 */ int[] tDamages = onHitEntity(tVector.entityHit, tShootingEntity == null ? this : tShootingEntity, this.mArrow == null ? new ItemStack(Items.arrow, 1) : this.mArrow, (int)(tDamage * 2.0F), (int)(tMagicDamage * 2.0F), tKnockback, tFireDamage, tHitTimer);
-/* 181:162 */ if (tDamages != null)
-/* 182: */ {
-/* 183:163 */ tDamage = tDamages[0] / 2.0F;
-/* 184:164 */ tMagicDamage = tDamages[1] / 2.0F;
-/* 185:165 */ tKnockback = tDamages[2];
-/* 186:166 */ tFireDamage = tDamages[3];
-/* 187:167 */ tHitTimer = tDamages[4];
-/* 188:169 */ if ((tFireDamage > 0) && (!(tVector.entityHit instanceof EntityEnderman))) {
-/* 189:169 */ tVector.entityHit.setFire(tFireDamage);
-/* 190: */ }
-/* 191:171 */ if ((!(tHitEntity instanceof EntityPlayer)) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.looting.effectId, this.mArrow) > 0))
-/* 192: */ {
-/* 193:172 */ EntityPlayer tPlayer = null;
-/* 194:173 */ if ((this.worldObj instanceof WorldServer)) {
-/* 195:173 */ tPlayer = FakePlayerFactory.get((WorldServer)this.worldObj, new GameProfile(new UUID(0L, 0L), (tShootingEntity instanceof EntityLivingBase) ? ((EntityLivingBase)tShootingEntity).getCommandSenderName() : "Arrow"));
-/* 196: */ }
-/* 197:174 */ if (tPlayer != null)
-/* 198: */ {
-/* 199:175 */ tPlayer.inventory.currentItem = 0;
-/* 200:176 */ tPlayer.inventory.setInventorySlotContents(0, getArrowItem());
-/* 201:177 */ tShootingEntity = tPlayer;
-/* 202:178 */ tPlayer.setDead();
-/* 203: */ }
-/* 204: */ }
-/* 205:182 */ DamageSource tDamageSource = DamageSource.causeArrowDamage(this, tShootingEntity == null ? this : tShootingEntity);
-/* 206:184 */ if ((tDamage + tMagicDamage > 0.0F) && (tVector.entityHit.attackEntityFrom(tDamageSource, tDamage + tMagicDamage)))
-/* 207: */ {
-/* 208:185 */ if ((tVector.entityHit instanceof EntityLivingBase))
-/* 209: */ {
-/* 210:186 */ if (tHitTimer >= 0) {
-/* 211:186 */ tVector.entityHit.hurtResistantTime = tHitTimer;
-/* 212: */ }
-/* 213:188 */ if (((tVector.entityHit instanceof EntityCreeper)) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 0)) {
-/* 214:188 */ ((EntityCreeper)tVector.entityHit).func_146079_cb();
-/* 215: */ }
-/* 216:190 */ EntityLivingBase tHitLivingEntity = (EntityLivingBase)tVector.entityHit;
-/* 217:192 */ if (!this.worldObj.isRemote) {
-/* 218:192 */ tHitLivingEntity.setArrowCountInEntity(tHitLivingEntity.getArrowCountInEntity() + 1);
-/* 219: */ }
-/* 220:194 */ if (tKnockback > 0)
-/* 221: */ {
-/* 222:195 */ float tKnockbackDivider = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
-/* 223:196 */ if (tKnockbackDivider > 0.0F) {
-/* 224:196 */ tHitLivingEntity.addVelocity(this.motionX * tKnockback * 0.6000000238418579D / tKnockbackDivider, 0.1D, this.motionZ * tKnockback * 0.6000000238418579D / tKnockbackDivider);
-/* 225: */ }
-/* 226: */ }
-/* 227:199 */ GT_Utility.GT_EnchantmentHelper.applyBullshitA(tHitLivingEntity, tShootingEntity == null ? this : tShootingEntity, this.mArrow);
-/* 228:200 */ GT_Utility.GT_EnchantmentHelper.applyBullshitB((tShootingEntity instanceof EntityLivingBase) ? (EntityLivingBase)tShootingEntity : null, tHitLivingEntity, this.mArrow);
-/* 229:202 */ if ((tShootingEntity != null) && (tHitLivingEntity != tShootingEntity) && ((tHitLivingEntity instanceof EntityPlayer)) && ((tShootingEntity instanceof EntityPlayerMP))) {
-/* 230:203 */ ((EntityPlayerMP)tShootingEntity).playerNetServerHandler.sendPacket(new S2BPacketChangeGameState(6, 0.0F));
-/* 231: */ }
-/* 232: */ }
-/* 233:207 */ if (((tShootingEntity instanceof EntityPlayer)) && (tMagicDamage > 0.0F)) {
-/* 234:207 */ ((EntityPlayer)tShootingEntity).onEnchantmentCritical(tVector.entityHit);
-/* 235: */ }
-/* 236:209 */ if ((!(tVector.entityHit instanceof EntityEnderman)) || (((EntityEnderman)tVector.entityHit).getActivePotionEffect(Potion.weakness) != null))
-/* 237: */ {
-/* 238:210 */ if (tFireDamage > 0) {
-/* 239:210 */ tVector.entityHit.setFire(tFireDamage);
-/* 240: */ }
-/* 241:211 */ playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
-/* 242:212 */ setDead();
-/* 243: */ }
-/* 244: */ }
-/* 245: */ else
-/* 246: */ {
-/* 247:215 */ this.motionX *= -0.1000000014901161D;
-/* 248:216 */ this.motionY *= -0.1000000014901161D;
-/* 249:217 */ this.motionZ *= -0.1000000014901161D;
-/* 250:218 */ this.rotationYaw += 180.0F;
-/* 251:219 */ this.prevRotationYaw += 180.0F;
-/* 252:220 */ this.ticksInAir = 0;
-/* 253: */ }
-/* 254: */ }
-/* 255: */ }
-/* 256: */ else
-/* 257: */ {
-/* 258:224 */ this.mHitBlockX = tVector.blockX;
-/* 259:225 */ this.mHitBlockY = tVector.blockY;
-/* 260:226 */ this.mHitBlockZ = tVector.blockZ;
-/* 261:227 */ this.mHitBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 262:228 */ this.mHitBlockMeta = this.worldObj.getBlockMetadata(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
-/* 263:229 */ this.motionX = ((float)(tVector.hitVec.xCoord - this.posX));
-/* 264:230 */ this.motionY = ((float)(tVector.hitVec.yCoord - this.posY));
-/* 265:231 */ this.motionZ = ((float)(tVector.hitVec.zCoord - this.posZ));
-/* 266:232 */ float f2 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);
-/* 267:233 */ this.posX -= this.motionX / f2 * 0.0500000007450581D;
-/* 268:234 */ this.posY -= this.motionY / f2 * 0.0500000007450581D;
-/* 269:235 */ this.posZ -= this.motionZ / f2 * 0.0500000007450581D;
-/* 270:236 */ playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
-/* 271:237 */ this.inGround = true;
-/* 272:238 */ this.arrowShake = 7;
-/* 273:239 */ setIsCritical(false);
-/* 274:241 */ if (this.mHitBlock.getMaterial() != Material.air) {
-/* 275:241 */ this.mHitBlock.onEntityCollidedWithBlock(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ, this);
-/* 276: */ }
-/* 277:243 */ if ((!this.worldObj.isRemote) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 2)) {
-/* 278:243 */ GT_Utility.setCoordsOnFire(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ, true);
-/* 279: */ }
-/* 280:245 */ if (breaksOnImpact()) {
-/* 281:245 */ setDead();
-/* 282: */ }
-/* 283: */ }
-/* 284: */ }
-/* 285:249 */ if (getIsCritical()) {
-/* 286:249 */ for (int i = 0; i < 4; i++) {
-/* 287:249 */ this.worldObj.spawnParticle("crit", this.posX + this.motionX * i / 4.0D, this.posY + this.motionY * i / 4.0D, this.posZ + this.motionZ * i / 4.0D, -this.motionX, -this.motionY + 0.2D, -this.motionZ);
-/* 288: */ }
-/* 289: */ }
-/* 290:251 */ this.posX += this.motionX;this.posY += this.motionY;this.posZ += this.motionZ;
-/* 291: */
-/* 292:253 */ this.rotationYaw = ((float)(Math.atan2(this.motionX, this.motionZ) * 180.0D / 3.141592653589793D));
-/* 293:255 */ for (this.rotationPitch = ((float)(Math.atan2(this.motionY, MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ)) * 180.0D / 3.141592653589793D)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {}
-/* 294:257 */ while (this.rotationPitch - this.prevRotationPitch >= 180.0F) {
-/* 295:257 */ this.prevRotationPitch += 360.0F;
-/* 296: */ }
-/* 297:258 */ while (this.rotationYaw - this.prevRotationYaw < -180.0F) {
-/* 298:258 */ this.prevRotationYaw -= 360.0F;
-/* 299: */ }
-/* 300:259 */ while (this.rotationYaw - this.prevRotationYaw >= 180.0F) {
-/* 301:259 */ this.prevRotationYaw += 360.0F;
-/* 302: */ }
-/* 303:261 */ this.rotationPitch = (this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F);
-/* 304:262 */ this.rotationYaw = (this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F);
-/* 305:263 */ float tFrictionMultiplier = 0.99F;
-/* 306:265 */ if (isInWater())
-/* 307: */ {
-/* 308:266 */ for (int l = 0; l < 4; l++) {
-/* 309:266 */ this.worldObj.spawnParticle("bubble", this.posX - this.motionX * 0.25D, this.posY - this.motionY * 0.25D, this.posZ - this.motionZ * 0.25D, this.motionX, this.motionY, this.motionZ);
-/* 310: */ }
-/* 311:267 */ tFrictionMultiplier = 0.8F;
-/* 312: */ }
-/* 313:270 */ if (isWet()) {
-/* 314:270 */ extinguish();
-/* 315: */ }
-/* 316:272 */ this.motionX *= tFrictionMultiplier;
-/* 317:273 */ this.motionY *= tFrictionMultiplier;
-/* 318:274 */ this.motionZ *= tFrictionMultiplier;
-/* 319:275 */ this.motionY -= 0.0500000007450581D;
-/* 320:276 */ setPosition(this.posX, this.posY, this.posZ);
-/* 321:277 */ func_145775_I();
-/* 322: */ }
-/* 323: */ }
-/* 324: */
-/* 325: */ public void writeEntityToNBT(NBTTagCompound aNBT)
-/* 326: */ {
-/* 327:283 */ super.writeEntityToNBT(aNBT);
-/* 328:284 */ aNBT.setShort("xTile", (short)this.mHitBlockX);
-/* 329:285 */ aNBT.setShort("yTile", (short)this.mHitBlockY);
-/* 330:286 */ aNBT.setShort("zTile", (short)this.mHitBlockZ);
-/* 331:287 */ aNBT.setShort("life", (short)this.mTicksAlive);
-/* 332:288 */ aNBT.setByte("inTile", (byte)Block.getIdFromBlock(this.mHitBlock));
-/* 333:289 */ aNBT.setByte("inData", (byte)this.mHitBlockMeta);
-/* 334:290 */ aNBT.setByte("shake", (byte)this.arrowShake);
-/* 335:291 */ aNBT.setByte("inGround", (byte)(this.inGround ? 1 : 0));
-/* 336:292 */ aNBT.setByte("pickup", (byte)this.canBePickedUp);
-/* 337:293 */ aNBT.setDouble("damage", getDamage());
-/* 338:294 */ aNBT.setTag("mArrow", this.mArrow == null ? null : this.mArrow.writeToNBT(new NBTTagCompound()));
-/* 339: */ }
-/* 340: */
-/* 341: */ public void readEntityFromNBT(NBTTagCompound aNBT)
-/* 342: */ {
-/* 343:299 */ super.readEntityFromNBT(aNBT);
-/* 344:300 */ this.mHitBlockX = aNBT.getShort("xTile");
-/* 345:301 */ this.mHitBlockY = aNBT.getShort("yTile");
-/* 346:302 */ this.mHitBlockZ = aNBT.getShort("zTile");
-/* 347:303 */ this.mTicksAlive = aNBT.getShort("life");
-/* 348:304 */ this.mHitBlock = Block.getBlockById(aNBT.getByte("inTile") & 0xFF);
-/* 349:305 */ this.mHitBlockMeta = (aNBT.getByte("inData") & 0xFF);
-/* 350:306 */ this.arrowShake = (aNBT.getByte("shake") & 0xFF);
-/* 351:307 */ this.inGround = (aNBT.getByte("inGround") == 1);
-/* 352:308 */ setDamage(aNBT.getDouble("damage"));
-/* 353:309 */ this.canBePickedUp = aNBT.getByte("pickup");
-/* 354:310 */ this.mArrow = GT_Utility.loadItem(aNBT, "mArrow");
-/* 355: */ }
-/* 356: */
-/* 357: */ public void onCollideWithPlayer(EntityPlayer aPlayer)
-/* 358: */ {
-/* 359:315 */ if ((!this.worldObj.isRemote) && (this.inGround) && (this.arrowShake <= 0) && (this.canBePickedUp == 1) && (aPlayer.inventory.addItemStackToInventory(getArrowItem())))
-/* 360: */ {
-/* 361:316 */ playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
-/* 362:317 */ aPlayer.onItemPickup(this, 1);
-/* 363:318 */ setDead();
-/* 364: */ }
-/* 365: */ }
-/* 366: */
-/* 367: */ public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer)
-/* 368: */ {
-/* 369:333 */ return new int[] { aRegularDamage, aMagicDamage, aKnockback, aFireDamage, aHitTimer };
-/* 370: */ }
-/* 371: */
-/* 372: */ public void setArrowItem(ItemStack aStack)
-/* 373: */ {
-/* 374:337 */ this.mArrow = GT_Utility.updateItemStack(GT_Utility.copyAmount(1L, new Object[] { aStack }));
-/* 375: */ }
-/* 376: */
-/* 377: */ public ItemStack getArrowItem()
-/* 378: */ {
-/* 379:341 */ return GT_Utility.copy(new Object[] { this.mArrow });
-/* 380: */ }
-/* 381: */
-/* 382: */ public boolean breaksOnImpact()
-/* 383: */ {
-/* 384:345 */ return false;
-/* 385: */ }
-/* 386: */
-/* 387: */ public void setKnockbackStrength(int aKnockback)
-/* 388: */ {
-/* 389:350 */ this.mKnockback = aKnockback;
-/* 390: */ }
-/* 391: */ }
+package gregtech.common.entities;
+
+import com.mojang.authlib.GameProfile;
+import gregtech.api.enums.Materials;
+import gregtech.api.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.GT_EnchantmentHelper;
+import java.util.List;
+import java.util.Random;
+import java.util.UUID;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.enchantment.EnchantmentHelper;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntityCreeper;
+import net.minecraft.entity.monster.EntityEnderman;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.entity.projectile.EntityArrow;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.network.NetHandlerPlayServer;
+import net.minecraft.network.play.server.S2BPacketChangeGameState;
+import net.minecraft.potion.Potion;
+import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.DamageSource;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.MovingObjectPosition;
+import net.minecraft.util.Vec3;
+import net.minecraft.world.World;
+import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.util.FakePlayerFactory;
+
+public class GT_Entity_Arrow
+ extends EntityArrow
+{
+ private int mHitBlockX = -1;
+ private int mHitBlockY = -1;
+ private int mHitBlockZ = -1;
+ private Block mHitBlock = Blocks.air;
+ private int mHitBlockMeta = 0;
+ private boolean inGround = false;
+ private int mTicksAlive = 0;
+ private int ticksInAir = 0;
+ private int mKnockback = 0;
+ private ItemStack mArrow = null;
+
+ public GT_Entity_Arrow(World aWorld)
+ {
+ super(aWorld);
+ }
+
+ public GT_Entity_Arrow(World aWorld, double aX, double aY, double aZ)
+ {
+ super(aWorld, aX, aY, aZ);
+ }
+
+ public GT_Entity_Arrow(World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ super(aWorld, aEntity, aSpeed);
+ }
+
+ public GT_Entity_Arrow(EntityArrow aArrow, ItemStack aStack)
+ {
+ super(aArrow.worldObj);
+ NBTTagCompound tNBT = new NBTTagCompound();
+ aArrow.writeToNBT(tNBT);
+ readFromNBT(tNBT);
+ setArrowItem(aStack);
+ }
+
+ public void onUpdate()
+ {
+ onEntityUpdate();
+ if ((this.mArrow == null) && (!this.worldObj.isRemote))
+ {
+ setDead();
+ return;
+ }
+ Entity tShootingEntity = this.shootingEntity;
+ if ((this.prevRotationPitch == 0.0F) && (this.prevRotationYaw == 0.0F))
+ {
+ float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
+ this.prevRotationYaw = (this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0D / 3.141592653589793D));
+ this.prevRotationPitch = (this.rotationPitch = (float)(Math.atan2(this.motionY, f) * 180.0D / 3.141592653589793D));
+ }
+ if (this.mTicksAlive++ == 3000) {
+ setDead();
+ }
+ Block tBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ if (tBlock.getMaterial() != Material.air)
+ {
+ tBlock.setBlockBoundsBasedOnState(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ AxisAlignedBB axisalignedbb = tBlock.getCollisionBoundingBoxFromPool(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ if ((axisalignedbb != null) && (axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ)))) {
+ this.inGround = true;
+ }
+ }
+ if (this.arrowShake > 0) {
+ this.arrowShake -= 1;
+ }
+ if (this.inGround)
+ {
+ int j = this.worldObj.getBlockMetadata(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ if ((tBlock != this.mHitBlock) || (j != this.mHitBlockMeta))
+ {
+ this.inGround = false;
+ this.motionX *= this.rand.nextFloat() * 0.2F;
+ this.motionY *= this.rand.nextFloat() * 0.2F;
+ this.motionZ *= this.rand.nextFloat() * 0.2F;
+ this.mTicksAlive = 0;
+ this.ticksInAir = 0;
+ }
+ }
+ else
+ {
+ this.ticksInAir += 1;
+ Vec3 vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
+ Vec3 vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
+ MovingObjectPosition tVector = this.worldObj.func_147447_a(vec31, vec3, false, true, false);
+ vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
+ vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
+ if (tVector != null) {
+ vec3 = Vec3.createVectorHelper(tVector.hitVec.xCoord, tVector.hitVec.yCoord, tVector.hitVec.zCoord);
+ }
+ Entity tHitEntity = null;
+ List tAllPotentiallyHitEntities = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
+ double tLargestDistance = 1.7976931348623157E+308D;
+ for (int i = 0; i < tAllPotentiallyHitEntities.size(); i++)
+ {
+ Entity entity1 = (Entity)tAllPotentiallyHitEntities.get(i);
+ if ((entity1.canBeCollidedWith()) && ((entity1 != tShootingEntity) || (this.ticksInAir >= 5)))
+ {
+ AxisAlignedBB axisalignedbb1 = entity1.boundingBox.expand(0.3D, 0.3D, 0.3D);
+ MovingObjectPosition movingobjectposition1 = axisalignedbb1.calculateIntercept(vec31, vec3);
+ if (movingobjectposition1 != null)
+ {
+ double tDistance = vec31.distanceTo(movingobjectposition1.hitVec);
+ if (tDistance < tLargestDistance)
+ {
+ tHitEntity = entity1;
+ tLargestDistance = tDistance;
+ }
+ }
+ }
+ }
+ if (tHitEntity != null) {
+ tVector = new MovingObjectPosition(tHitEntity);
+ }
+ if ((tVector != null) && (tVector.entityHit != null) && ((tVector.entityHit instanceof EntityPlayer)))
+ {
+ EntityPlayer entityplayer = (EntityPlayer)tVector.entityHit;
+ if ((entityplayer.capabilities.disableDamage) || (((tShootingEntity instanceof EntityPlayer)) && (!((EntityPlayer)tShootingEntity).canAttackPlayer(entityplayer)))) {
+ tVector = null;
+ }
+ }
+ if (tVector != null) {
+ if (tVector.entityHit != null)
+ {
+ ItemData tData = GT_OreDictUnificator.getItemData(this.mArrow);
+
+
+ float tMagicDamage = (tVector.entityHit instanceof EntityLivingBase) ? EnchantmentHelper.func_152377_a(this.mArrow, ((EntityLivingBase)tVector.entityHit).getCreatureAttribute()) : 0.0F;
+ float tDamage = MathHelper.ceiling_double_int(MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ) * (getDamage() + ((tData != null) && (tData.mMaterial != null) && (tData.mMaterial.mMaterial != null) ? tData.mMaterial.mMaterial.mToolQuality / 2.0F - 1.0F : 0.0F)));
+ if (getIsCritical()) {
+ tDamage += this.rand.nextInt((int)(tDamage / 2.0D + 2.0D));
+ }
+ int tFireDamage = (isBurning() ? 5 : 0) + 4 * EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow);
+ int tKnockback = this.mKnockback + EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, this.mArrow);
+ int tHitTimer = -1;
+
+ int[] tDamages = onHitEntity(tVector.entityHit, tShootingEntity == null ? this : tShootingEntity, this.mArrow == null ? new ItemStack(Items.arrow, 1) : this.mArrow, (int)(tDamage * 2.0F), (int)(tMagicDamage * 2.0F), tKnockback, tFireDamage, tHitTimer);
+ if (tDamages != null)
+ {
+ tDamage = tDamages[0] / 2.0F;
+ tMagicDamage = tDamages[1] / 2.0F;
+ tKnockback = tDamages[2];
+ tFireDamage = tDamages[3];
+ tHitTimer = tDamages[4];
+ if ((tFireDamage > 0) && (!(tVector.entityHit instanceof EntityEnderman))) {
+ tVector.entityHit.setFire(tFireDamage);
+ }
+ if ((!(tHitEntity instanceof EntityPlayer)) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.looting.effectId, this.mArrow) > 0))
+ {
+ EntityPlayer tPlayer = null;
+ if ((this.worldObj instanceof WorldServer)) {
+ tPlayer = FakePlayerFactory.get((WorldServer)this.worldObj, new GameProfile(new UUID(0L, 0L), (tShootingEntity instanceof EntityLivingBase) ? ((EntityLivingBase)tShootingEntity).getCommandSenderName() : "Arrow"));
+ }
+ if (tPlayer != null)
+ {
+ tPlayer.inventory.currentItem = 0;
+ tPlayer.inventory.setInventorySlotContents(0, getArrowItem());
+ tShootingEntity = tPlayer;
+ tPlayer.setDead();
+ }
+ }
+ DamageSource tDamageSource = DamageSource.causeArrowDamage(this, tShootingEntity == null ? this : tShootingEntity);
+ if ((tDamage + tMagicDamage > 0.0F) && (tVector.entityHit.attackEntityFrom(tDamageSource, tDamage + tMagicDamage)))
+ {
+ if ((tVector.entityHit instanceof EntityLivingBase))
+ {
+ if (tHitTimer >= 0) {
+ tVector.entityHit.hurtResistantTime = tHitTimer;
+ }
+ if (((tVector.entityHit instanceof EntityCreeper)) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 0)) {
+ ((EntityCreeper)tVector.entityHit).func_146079_cb();
+ }
+ EntityLivingBase tHitLivingEntity = (EntityLivingBase)tVector.entityHit;
+ if (!this.worldObj.isRemote) {
+ tHitLivingEntity.setArrowCountInEntity(tHitLivingEntity.getArrowCountInEntity() + 1);
+ }
+ if (tKnockback > 0)
+ {
+ float tKnockbackDivider = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
+ if (tKnockbackDivider > 0.0F) {
+ tHitLivingEntity.addVelocity(this.motionX * tKnockback * 0.6000000238418579D / tKnockbackDivider, 0.1D, this.motionZ * tKnockback * 0.6000000238418579D / tKnockbackDivider);
+ }
+ }
+ GT_Utility.GT_EnchantmentHelper.applyBullshitA(tHitLivingEntity, tShootingEntity == null ? this : tShootingEntity, this.mArrow);
+ GT_Utility.GT_EnchantmentHelper.applyBullshitB((tShootingEntity instanceof EntityLivingBase) ? (EntityLivingBase)tShootingEntity : null, tHitLivingEntity, this.mArrow);
+ if ((tShootingEntity != null) && (tHitLivingEntity != tShootingEntity) && ((tHitLivingEntity instanceof EntityPlayer)) && ((tShootingEntity instanceof EntityPlayerMP))) {
+ ((EntityPlayerMP)tShootingEntity).playerNetServerHandler.sendPacket(new S2BPacketChangeGameState(6, 0.0F));
+ }
+ }
+ if (((tShootingEntity instanceof EntityPlayer)) && (tMagicDamage > 0.0F)) {
+ ((EntityPlayer)tShootingEntity).onEnchantmentCritical(tVector.entityHit);
+ }
+ if ((!(tVector.entityHit instanceof EntityEnderman)) || (((EntityEnderman)tVector.entityHit).getActivePotionEffect(Potion.weakness) != null))
+ {
+ if (tFireDamage > 0) {
+ tVector.entityHit.setFire(tFireDamage);
+ }
+ playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
+ setDead();
+ }
+ }
+ else
+ {
+ this.motionX *= -0.1000000014901161D;
+ this.motionY *= -0.1000000014901161D;
+ this.motionZ *= -0.1000000014901161D;
+ this.rotationYaw += 180.0F;
+ this.prevRotationYaw += 180.0F;
+ this.ticksInAir = 0;
+ }
+ }
+ }
+ else
+ {
+ this.mHitBlockX = tVector.blockX;
+ this.mHitBlockY = tVector.blockY;
+ this.mHitBlockZ = tVector.blockZ;
+ this.mHitBlock = this.worldObj.getBlock(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ this.mHitBlockMeta = this.worldObj.getBlockMetadata(this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ);
+ this.motionX = ((float)(tVector.hitVec.xCoord - this.posX));
+ this.motionY = ((float)(tVector.hitVec.yCoord - this.posY));
+ this.motionZ = ((float)(tVector.hitVec.zCoord - this.posZ));
+ float f2 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);
+ this.posX -= this.motionX / f2 * 0.0500000007450581D;
+ this.posY -= this.motionY / f2 * 0.0500000007450581D;
+ this.posZ -= this.motionZ / f2 * 0.0500000007450581D;
+ playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
+ this.inGround = true;
+ this.arrowShake = 7;
+ setIsCritical(false);
+ if (this.mHitBlock.getMaterial() != Material.air) {
+ this.mHitBlock.onEntityCollidedWithBlock(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ, this);
+ }
+ if ((!this.worldObj.isRemote) && (EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, this.mArrow) > 2)) {
+ GT_Utility.setCoordsOnFire(this.worldObj, this.mHitBlockX, this.mHitBlockY, this.mHitBlockZ, true);
+ }
+ if (breaksOnImpact()) {
+ setDead();
+ }
+ }
+ }
+ if (getIsCritical()) {
+ for (int i = 0; i < 4; i++) {
+ this.worldObj.spawnParticle("crit", this.posX + this.motionX * i / 4.0D, this.posY + this.motionY * i / 4.0D, this.posZ + this.motionZ * i / 4.0D, -this.motionX, -this.motionY + 0.2D, -this.motionZ);
+ }
+ }
+ this.posX += this.motionX;this.posY += this.motionY;this.posZ += this.motionZ;
+
+ this.rotationYaw = ((float)(Math.atan2(this.motionX, this.motionZ) * 180.0D / 3.141592653589793D));
+ for (this.rotationPitch = ((float)(Math.atan2(this.motionY, MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ)) * 180.0D / 3.141592653589793D)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {}
+ while (this.rotationPitch - this.prevRotationPitch >= 180.0F) {
+ this.prevRotationPitch += 360.0F;
+ }
+ while (this.rotationYaw - this.prevRotationYaw < -180.0F) {
+ this.prevRotationYaw -= 360.0F;
+ }
+ while (this.rotationYaw - this.prevRotationYaw >= 180.0F) {
+ this.prevRotationYaw += 360.0F;
+ }
+ this.rotationPitch = (this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F);
+ this.rotationYaw = (this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F);
+ float tFrictionMultiplier = 0.99F;
+ if (isInWater())
+ {
+ for (int l = 0; l < 4; l++) {
+ this.worldObj.spawnParticle("bubble", this.posX - this.motionX * 0.25D, this.posY - this.motionY * 0.25D, this.posZ - this.motionZ * 0.25D, this.motionX, this.motionY, this.motionZ);
+ }
+ tFrictionMultiplier = 0.8F;
+ }
+ if (isWet()) {
+ extinguish();
+ }
+ this.motionX *= tFrictionMultiplier;
+ this.motionY *= tFrictionMultiplier;
+ this.motionZ *= tFrictionMultiplier;
+ this.motionY -= 0.0500000007450581D;
+ setPosition(this.posX, this.posY, this.posZ);
+ func_145775_I();
+ }
+ }
+
+ public void writeEntityToNBT(NBTTagCompound aNBT)
+ {
+ super.writeEntityToNBT(aNBT);
+ aNBT.setShort("xTile", (short)this.mHitBlockX);
+ aNBT.setShort("yTile", (short)this.mHitBlockY);
+ aNBT.setShort("zTile", (short)this.mHitBlockZ);
+ aNBT.setShort("life", (short)this.mTicksAlive);
+ aNBT.setByte("inTile", (byte)Block.getIdFromBlock(this.mHitBlock));
+ aNBT.setByte("inData", (byte)this.mHitBlockMeta);
+ aNBT.setByte("shake", (byte)this.arrowShake);
+ aNBT.setByte("inGround", (byte)(this.inGround ? 1 : 0));
+ aNBT.setByte("pickup", (byte)this.canBePickedUp);
+ aNBT.setDouble("damage", getDamage());
+ aNBT.setTag("mArrow", this.mArrow == null ? null : this.mArrow.writeToNBT(new NBTTagCompound()));
+ }
+
+ public void readEntityFromNBT(NBTTagCompound aNBT)
+ {
+ super.readEntityFromNBT(aNBT);
+ this.mHitBlockX = aNBT.getShort("xTile");
+ this.mHitBlockY = aNBT.getShort("yTile");
+ this.mHitBlockZ = aNBT.getShort("zTile");
+ this.mTicksAlive = aNBT.getShort("life");
+ this.mHitBlock = Block.getBlockById(aNBT.getByte("inTile") & 0xFF);
+ this.mHitBlockMeta = (aNBT.getByte("inData") & 0xFF);
+ this.arrowShake = (aNBT.getByte("shake") & 0xFF);
+ this.inGround = (aNBT.getByte("inGround") == 1);
+ setDamage(aNBT.getDouble("damage"));
+ this.canBePickedUp = aNBT.getByte("pickup");
+ this.mArrow = GT_Utility.loadItem(aNBT, "mArrow");
+ }
+
+ public void onCollideWithPlayer(EntityPlayer aPlayer)
+ {
+ if ((!this.worldObj.isRemote) && (this.inGround) && (this.arrowShake <= 0) && (this.canBePickedUp == 1) && (aPlayer.inventory.addItemStackToInventory(getArrowItem())))
+ {
+ playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
+ aPlayer.onItemPickup(this, 1);
+ setDead();
+ }
+ }
+
+ public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer)
+ {
+ return new int[] { aRegularDamage, aMagicDamage, aKnockback, aFireDamage, aHitTimer };
+ }
+
+ public void setArrowItem(ItemStack aStack)
+ {
+ this.mArrow = GT_Utility.updateItemStack(GT_Utility.copyAmount(1L, new Object[] { aStack }));
+ }
+
+ public ItemStack getArrowItem()
+ {
+ return GT_Utility.copy(new Object[] { this.mArrow });
+ }
+
+ public boolean breaksOnImpact()
+ {
+ return false;
+ }
+
+ public void setKnockbackStrength(int aKnockback)
+ {
+ this.mKnockback = aKnockback;
+ }
+}
/* 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/entities/GT_Entity_Arrow_Potion.java b/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java index 8da5f11206..1deb2f3794 100644 --- a/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java +++ b/main/java/gregtech/common/entities/GT_Entity_Arrow_Potion.java @@ -1,74 +1,74 @@ -/* 1: */ package gregtech.common.entities;
-/* 2: */
-/* 3: */ import java.util.Random;
-/* 4: */ import net.minecraft.entity.Entity;
-/* 5: */ import net.minecraft.entity.EntityLivingBase;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */ import net.minecraft.nbt.NBTTagCompound;
-/* 8: */ import net.minecraft.potion.PotionEffect;
-/* 9: */ import net.minecraft.world.World;
-/* 10: */
-/* 11: */ public class GT_Entity_Arrow_Potion
-/* 12: */ extends GT_Entity_Arrow
-/* 13: */ {
-/* 14: */ public GT_Entity_Arrow_Potion(World aWorld)
-/* 15: */ {
-/* 16:13 */ super(aWorld);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_Entity_Arrow_Potion(World aWorld, double aX, double aY, double aZ)
-/* 20: */ {
-/* 21:17 */ super(aWorld, aX, aY, aZ);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_Entity_Arrow_Potion(World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 25: */ {
-/* 26:21 */ super(aWorld, aEntity, aSpeed);
-/* 27: */ }
-/* 28: */
-/* 29: */ public void writeEntityToNBT(NBTTagCompound aNBT)
-/* 30: */ {
-/* 31:26 */ super.writeEntityToNBT(aNBT);
-/* 32:27 */ aNBT.setIntArray("mPotions", this.mPotions);
-/* 33: */ }
-/* 34: */
-/* 35: */ public void readEntityFromNBT(NBTTagCompound aNBT)
-/* 36: */ {
-/* 37:32 */ super.readEntityFromNBT(aNBT);
-/* 38:33 */ setPotions(aNBT.getIntArray("mPotions"));
-/* 39: */ }
-/* 40: */
-/* 41: */ public boolean breaksOnImpact()
-/* 42: */ {
-/* 43:38 */ return true;
-/* 44: */ }
-/* 45: */
-/* 46: */ public void setPotions(int... aPotions)
-/* 47: */ {
-/* 48:49 */ if (aPotions != null) {
-/* 49:49 */ this.mPotions = aPotions;
-/* 50: */ }
-/* 51: */ }
-/* 52: */
-/* 53: */ public int[] getPotions()
-/* 54: */ {
-/* 55:53 */ return this.mPotions;
-/* 56: */ }
-/* 57: */
-/* 58:56 */ private int[] mPotions = new int[0];
-/* 59: */
-/* 60: */ public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer)
-/* 61: */ {
-/* 62:60 */ if ((aHitEntity instanceof EntityLivingBase)) {
-/* 63:60 */ for (int i = 3; i < this.mPotions.length; i += 4) {
-/* 64:61 */ if (aHitEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) {
-/* 65:62 */ ((EntityLivingBase)aHitEntity).addPotionEffect(new PotionEffect(this.mPotions[(i - 3)], this.mPotions[(i - 2)], this.mPotions[(i - 1)], false));
-/* 66: */ }
-/* 67: */ }
-/* 68: */ }
-/* 69:65 */ return super.onHitEntity(aHitEntity, aShootingEntity, aArrow, 1, aMagicDamage, aKnockback, aFireDamage, aHitTimer);
-/* 70: */ }
-/* 71: */ }
+package gregtech.common.entities;
+
+import java.util.Random;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.world.World;
+
+public class GT_Entity_Arrow_Potion
+ extends GT_Entity_Arrow
+{
+ public GT_Entity_Arrow_Potion(World aWorld)
+ {
+ super(aWorld);
+ }
+
+ public GT_Entity_Arrow_Potion(World aWorld, double aX, double aY, double aZ)
+ {
+ super(aWorld, aX, aY, aZ);
+ }
+
+ public GT_Entity_Arrow_Potion(World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ super(aWorld, aEntity, aSpeed);
+ }
+
+ public void writeEntityToNBT(NBTTagCompound aNBT)
+ {
+ super.writeEntityToNBT(aNBT);
+ aNBT.setIntArray("mPotions", this.mPotions);
+ }
+
+ public void readEntityFromNBT(NBTTagCompound aNBT)
+ {
+ super.readEntityFromNBT(aNBT);
+ setPotions(aNBT.getIntArray("mPotions"));
+ }
+
+ public boolean breaksOnImpact()
+ {
+ return true;
+ }
+
+ public void setPotions(int... aPotions)
+ {
+ if (aPotions != null) {
+ this.mPotions = aPotions;
+ }
+ }
+
+ public int[] getPotions()
+ {
+ return this.mPotions;
+ }
+
+ private int[] mPotions = new int[0];
+
+ public int[] onHitEntity(Entity aHitEntity, Entity aShootingEntity, ItemStack aArrow, int aRegularDamage, int aMagicDamage, int aKnockback, int aFireDamage, int aHitTimer)
+ {
+ if ((aHitEntity instanceof EntityLivingBase)) {
+ for (int i = 3; i < this.mPotions.length; i += 4) {
+ if (aHitEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) {
+ ((EntityLivingBase)aHitEntity).addPotionEffect(new PotionEffect(this.mPotions[(i - 3)], this.mPotions[(i - 2)], this.mPotions[(i - 1)], false));
+ }
+ }
+ }
+ return super.onHitEntity(aHitEntity, aShootingEntity, aArrow, 1, aMagicDamage, aKnockback, aFireDamage, aHitTimer);
+ }
+}
/* 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/gui/GT_Container_Boiler.java b/main/java/gregtech/common/gui/GT_Container_Boiler.java index 11aea0bc57..dc85189676 100644 --- a/main/java/gregtech/common/gui/GT_Container_Boiler.java +++ b/main/java/gregtech/common/gui/GT_Container_Boiler.java @@ -1,94 +1,94 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.common.tileentities.boilers.GT_MetaTileEntity_Boiler;
-/* 8: */ import java.util.Iterator;
-/* 9: */ import java.util.List;
-/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 11: */ import net.minecraft.inventory.ICrafting;
-/* 12: */ import net.minecraft.inventory.Slot;
-/* 13: */ import net.minecraftforge.fluids.FluidStack;
-/* 14: */
-/* 15: */ public class GT_Container_Boiler
-/* 16: */ extends GT_ContainerMetaTile_Machine
-/* 17: */ {
-/* 18: */ public GT_Container_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, int aSteamCapacity)
-/* 19: */ {
-/* 20:20 */ super(aInventoryPlayer, aTileEntity);
-/* 21:21 */ this.mSteamCapacity = aSteamCapacity;
-/* 22: */ }
-/* 23: */
-/* 24: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 25: */ {
-/* 26:26 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 116, 62));
-/* 27:27 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 44, 26));
-/* 28:28 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 44, 62));
-/* 29:29 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 116, 26));
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getSlotCount()
-/* 33: */ {
-/* 34:34 */ return 4;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getShiftClickSlotCount()
-/* 38: */ {
-/* 39:39 */ return 1;
-/* 40: */ }
-/* 41: */
-/* 42:42 */ public int mWaterAmount = 0;
-/* 43:42 */ public int mSteamAmount = 0;
-/* 44:42 */ public int mProcessingEnergy = 0;
-/* 45:42 */ public int mTemperature = 2;
-/* 46: */ private final int mSteamCapacity;
-/* 47: */
-/* 48: */ public void detectAndSendChanges()
-/* 49: */ {
-/* 50:46 */ super.detectAndSendChanges();
-/* 51:47 */ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
-/* 52:47 */ return;
-/* 53: */ }
-/* 54:49 */ this.mTemperature = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mTemperature;
-/* 55:50 */ this.mProcessingEnergy = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mProcessingEnergy;
-/* 56:51 */ this.mSteamAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam.amount);
-/* 57:52 */ this.mWaterAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid.amount);
-/* 58: */
-/* 59:54 */ this.mTemperature = Math.min(54, Math.max(0, this.mTemperature * 54 / (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).maxProgresstime() - 10)));
-/* 60:55 */ this.mSteamAmount = Math.min(54, Math.max(0, this.mSteamAmount * 54 / (this.mSteamCapacity - 100)));
-/* 61:56 */ this.mWaterAmount = Math.min(54, Math.max(0, this.mWaterAmount * 54 / 15900));
-/* 62:57 */ this.mProcessingEnergy = Math.min(14, Math.max(this.mProcessingEnergy > 0 ? 1 : 0, this.mProcessingEnergy * 14 / 1000));
-/* 63: */
-/* 64:59 */ Iterator var2 = this.crafters.iterator();
-/* 65:60 */ while (var2.hasNext())
-/* 66: */ {
-/* 67:61 */ ICrafting var1 = (ICrafting)var2.next();
-/* 68:62 */ var1.sendProgressBarUpdate(this, 100, this.mTemperature);
-/* 69:63 */ var1.sendProgressBarUpdate(this, 101, this.mProcessingEnergy);
-/* 70:64 */ var1.sendProgressBarUpdate(this, 102, this.mSteamAmount);
-/* 71:65 */ var1.sendProgressBarUpdate(this, 103, this.mWaterAmount);
-/* 72: */ }
-/* 73: */ }
-/* 74: */
-/* 75: */ @SideOnly(Side.CLIENT)
-/* 76: */ public void updateProgressBar(int par1, int par2)
-/* 77: */ {
-/* 78:72 */ super.updateProgressBar(par1, par2);
-/* 79:73 */ switch (par1)
-/* 80: */ {
-/* 81: */ case 100:
-/* 82:74 */ this.mTemperature = par2; break;
-/* 83: */ case 101:
-/* 84:75 */ this.mProcessingEnergy = par2; break;
-/* 85: */ case 102:
-/* 86:76 */ this.mSteamAmount = par2; break;
-/* 87: */ case 103:
-/* 88:77 */ this.mWaterAmount = par2;
-/* 89: */ }
-/* 90: */ }
-/* 91: */ }
+package gregtech.common.gui;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.common.tileentities.boilers.GT_MetaTileEntity_Boiler;
+import java.util.Iterator;
+import java.util.List;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.ICrafting;
+import net.minecraft.inventory.Slot;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_Container_Boiler
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, int aSteamCapacity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ this.mSteamCapacity = aSteamCapacity;
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ addSlotToContainer(new Slot(this.mTileEntity, 2, 116, 62));
+ addSlotToContainer(new Slot(this.mTileEntity, 0, 44, 26));
+ addSlotToContainer(new Slot(this.mTileEntity, 1, 44, 62));
+ addSlotToContainer(new Slot(this.mTileEntity, 3, 116, 26));
+ }
+
+ public int getSlotCount()
+ {
+ return 4;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 1;
+ }
+
+ public int mWaterAmount = 0;
+ public int mSteamAmount = 0;
+ public int mProcessingEnergy = 0;
+ public int mTemperature = 2;
+ private final int mSteamCapacity;
+
+ public void detectAndSendChanges()
+ {
+ super.detectAndSendChanges();
+ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
+ return;
+ }
+ this.mTemperature = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mTemperature;
+ this.mProcessingEnergy = ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mProcessingEnergy;
+ this.mSteamAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mSteam.amount);
+ this.mWaterAmount = (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid == null ? 0 : ((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).mFluid.amount);
+
+ this.mTemperature = Math.min(54, Math.max(0, this.mTemperature * 54 / (((GT_MetaTileEntity_Boiler)this.mTileEntity.getMetaTileEntity()).maxProgresstime() - 10)));
+ this.mSteamAmount = Math.min(54, Math.max(0, this.mSteamAmount * 54 / (this.mSteamCapacity - 100)));
+ this.mWaterAmount = Math.min(54, Math.max(0, this.mWaterAmount * 54 / 15900));
+ this.mProcessingEnergy = Math.min(14, Math.max(this.mProcessingEnergy > 0 ? 1 : 0, this.mProcessingEnergy * 14 / 1000));
+
+ Iterator var2 = this.crafters.iterator();
+ while (var2.hasNext())
+ {
+ ICrafting var1 = (ICrafting)var2.next();
+ var1.sendProgressBarUpdate(this, 100, this.mTemperature);
+ var1.sendProgressBarUpdate(this, 101, this.mProcessingEnergy);
+ var1.sendProgressBarUpdate(this, 102, this.mSteamAmount);
+ var1.sendProgressBarUpdate(this, 103, this.mWaterAmount);
+ }
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void updateProgressBar(int par1, int par2)
+ {
+ super.updateProgressBar(par1, par2);
+ switch (par1)
+ {
+ case 100:
+ this.mTemperature = par2; break;
+ case 101:
+ this.mProcessingEnergy = par2; break;
+ case 102:
+ this.mSteamAmount = par2; break;
+ case 103:
+ this.mWaterAmount = par2;
+ }
+ }
+}
/* 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/gui/GT_Container_BronzeBlastFurnace.java b/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java index d3f36ff115..be6bb35a7b 100644 --- a/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java +++ b/main/java/gregtech/common/gui/GT_Container_BronzeBlastFurnace.java @@ -1,37 +1,37 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_Slot_Output;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 7: */ import net.minecraft.inventory.Slot;
-/* 8: */
-/* 9: */ public class GT_Container_BronzeBlastFurnace
-/* 10: */ extends GT_ContainerMetaTile_Machine
-/* 11: */ {
-/* 12: */ public GT_Container_BronzeBlastFurnace(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 13: */ {
-/* 14:12 */ super(aInventoryPlayer, aTileEntity);
-/* 15: */ }
-/* 16: */
-/* 17: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 18: */ {
-/* 19:17 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 34, 16));
-/* 20:18 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 34, 34));
-/* 21:19 */ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 2, 86, 25));
-/* 22:20 */ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 3, 104, 25));
-/* 23: */ }
-/* 24: */
-/* 25: */ public int getSlotCount()
-/* 26: */ {
-/* 27:25 */ return 4;
-/* 28: */ }
-/* 29: */
-/* 30: */ public int getShiftClickSlotCount()
-/* 31: */ {
-/* 32:30 */ return 2;
-/* 33: */ }
-/* 34: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Output;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Slot;
+
+public class GT_Container_BronzeBlastFurnace
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_BronzeBlastFurnace(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ addSlotToContainer(new Slot(this.mTileEntity, 0, 34, 16));
+ addSlotToContainer(new Slot(this.mTileEntity, 1, 34, 34));
+ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 2, 86, 25));
+ addSlotToContainer(new GT_Slot_Output(this.mTileEntity, 3, 104, 25));
+ }
+
+ public int getSlotCount()
+ {
+ return 4;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 2;
+ }
+}
/* 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/gui/GT_Container_ChestBuffer.java b/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java index d1924183a4..ffe772bb2a 100644 --- a/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java +++ b/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java @@ -1,91 +1,91 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
-/* 8: */ import java.util.List;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 11: */ import net.minecraft.inventory.Slot;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */
-/* 14: */ public class GT_Container_ChestBuffer
-/* 15: */ extends GT_ContainerMetaTile_Machine
-/* 16: */ {
-/* 17: */ public GT_Container_ChestBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 18: */ {
-/* 19:16 */ super(aInventoryPlayer, aTileEntity);
-/* 20: */ }
-/* 21: */
-/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 23: */ {
-/* 24:21 */ for (int y = 0; y < 3; y++) {
-/* 25:21 */ for (int x = 0; x < 9; x++) {
-/* 26:21 */ addSlotToContainer(new Slot(this.mTileEntity, x + y * 9, 8 + x * 18, 5 + y * 18));
-/* 27: */ }
-/* 28: */ }
-/* 29:22 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 8, 63, false, true, 1));
-/* 30:23 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 26, 63, false, true, 1));
-/* 31:24 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 44, 63, false, true, 1));
-/* 32: */ }
-/* 33: */
-/* 34: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
-/* 35: */ {
-/* 36:29 */ if (aSlotIndex < 27) {
-/* 37:29 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 38: */ }
-/* 39:31 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
-/* 40:32 */ if (tSlot != null)
-/* 41: */ {
-/* 42:33 */ if (this.mTileEntity.getMetaTileEntity() == null) {
-/* 43:33 */ return null;
-/* 44: */ }
-/* 45:34 */ if (aSlotIndex == 27)
-/* 46: */ {
-/* 47:35 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
-/* 48:36 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
-/* 49:37 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
-/* 50: */ } else {
-/* 51:39 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
-/* 52: */ }
-/* 53:40 */ return null;
-/* 54: */ }
-/* 55:41 */ if (aSlotIndex == 28)
-/* 56: */ {
-/* 57:42 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
-/* 58:43 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
-/* 59:44 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
-/* 60: */ } else {
-/* 61:46 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
-/* 62: */ }
-/* 63:47 */ return null;
-/* 64: */ }
-/* 65:48 */ if (aSlotIndex == 29)
-/* 66: */ {
-/* 67:49 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
-/* 68:50 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
-/* 69:51 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
-/* 70: */ } else {
-/* 71:53 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
-/* 72: */ }
-/* 73:54 */ return null;
-/* 74: */ }
-/* 75: */ }
-/* 76:58 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 77: */ }
-/* 78: */
-/* 79: */ public int getSlotCount()
-/* 80: */ {
-/* 81:64 */ return 27;
-/* 82: */ }
-/* 83: */
-/* 84: */ public int getShiftClickSlotCount()
-/* 85: */ {
-/* 86:69 */ return 27;
-/* 87: */ }
-/* 88: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Holo;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+
+public class GT_Container_ChestBuffer
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_ChestBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ for (int y = 0; y < 3; y++) {
+ for (int x = 0; x < 9; x++) {
+ addSlotToContainer(new Slot(this.mTileEntity, x + y * 9, 8 + x * 18, 5 + y * 18));
+ }
+ }
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 8, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 26, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 44, 63, false, true, 1));
+ }
+
+ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+ {
+ if (aSlotIndex < 27) {
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+ if (tSlot != null)
+ {
+ if (this.mTileEntity.getMetaTileEntity() == null) {
+ return null;
+ }
+ if (aSlotIndex == 27)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+ }
+ return null;
+ }
+ if (aSlotIndex == 28)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 29)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+ }
+ return null;
+ }
+ }
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+
+ public int getSlotCount()
+ {
+ return 27;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 27;
+ }
+}
/* 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/gui/GT_Container_Filter.java b/main/java/gregtech/common/gui/GT_Container_Filter.java index 276b06d25d..76a267def4 100644 --- a/main/java/gregtech/common/gui/GT_Container_Filter.java +++ b/main/java/gregtech/common/gui/GT_Container_Filter.java @@ -1,146 +1,146 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_Filter;
-/* 8: */ import java.util.List;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 11: */ import net.minecraft.inventory.Slot;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */
-/* 14: */ public class GT_Container_Filter
-/* 15: */ extends GT_ContainerMetaTile_Machine
-/* 16: */ {
-/* 17: */ public GT_Container_Filter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 18: */ {
-/* 19: 17 */ super(aInventoryPlayer, aTileEntity);
-/* 20: */ }
-/* 21: */
-/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 23: */ {
-/* 24: 22 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 98, 5));
-/* 25: 23 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 116, 5));
-/* 26: 24 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 134, 5));
-/* 27: 25 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 98, 23));
-/* 28: 26 */ addSlotToContainer(new Slot(this.mTileEntity, 4, 116, 23));
-/* 29: 27 */ addSlotToContainer(new Slot(this.mTileEntity, 5, 134, 23));
-/* 30: 28 */ addSlotToContainer(new Slot(this.mTileEntity, 6, 98, 41));
-/* 31: 29 */ addSlotToContainer(new Slot(this.mTileEntity, 7, 116, 41));
-/* 32: 30 */ addSlotToContainer(new Slot(this.mTileEntity, 8, 134, 41));
-/* 33: */
-/* 34: 32 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 18, 6, false, true, 1));
-/* 35: 33 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 35, 6, false, true, 1));
-/* 36: 34 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 52, 6, false, true, 1));
-/* 37: 35 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 18, 23, false, true, 1));
-/* 38: 36 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 35, 23, false, true, 1));
-/* 39: 37 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 52, 23, false, true, 1));
-/* 40: 38 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 18, 40, false, true, 1));
-/* 41: 39 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 35, 40, false, true, 1));
-/* 42: 40 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 52, 40, false, true, 1));
-/* 43: */
-/* 44: 42 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
-/* 45: 43 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 26, 63, false, true, 1));
-/* 46: 44 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 44, 63, false, true, 1));
-/* 47: 45 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 62, 63, false, true, 1));
-/* 48: 46 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 80, 63, false, true, 1));
-/* 49: */ }
-/* 50: */
-/* 51: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
-/* 52: */ {
-/* 53: 51 */ if (aSlotIndex < 9) {
-/* 54: 51 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 55: */ }
-/* 56: 53 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
-/* 57: 54 */ if (tSlot != null)
-/* 58: */ {
-/* 59: 55 */ if (this.mTileEntity.getMetaTileEntity() == null) {
-/* 60: 55 */ return null;
-/* 61: */ }
-/* 62: 56 */ if (aSlotIndex < 18)
-/* 63: */ {
-/* 64: 57 */ ItemStack tStack = aPlayer.inventory.getItemStack();
-/* 65: 58 */ if (tStack == null)
-/* 66: */ {
-/* 67: 59 */ tStack = tSlot.getStack();
-/* 68: 60 */ if (aMouseclick == 0) {
-/* 69: 61 */ tSlot.putStack(null);
-/* 70: 63 */ } else if (tStack != null) {
-/* 71: 64 */ tStack.setItemDamage(32767);
-/* 72: */ }
-/* 73: */ }
-/* 74: */ else
-/* 75: */ {
-/* 76: 68 */ tSlot.putStack(GT_Utility.copyAmount(1L, new Object[] { tStack }));
-/* 77: */ }
-/* 78: 70 */ return null;
-/* 79: */ }
-/* 80: 71 */ if (aSlotIndex == 18)
-/* 81: */ {
-/* 82: 72 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput);
-/* 83: 73 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput) {
-/* 84: 74 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
-/* 85: */ } else {
-/* 86: 76 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
-/* 87: */ }
-/* 88: 77 */ return null;
-/* 89: */ }
-/* 90: 78 */ if (aSlotIndex == 19)
-/* 91: */ {
-/* 92: 79 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
-/* 93: 80 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
-/* 94: 81 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if slots contain something");
-/* 95: */ } else {
-/* 96: 83 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
-/* 97: */ }
-/* 98: 84 */ return null;
-/* 99: */ }
-/* 100: 85 */ if (aSlotIndex == 20)
-/* 101: */ {
-/* 102: 86 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert);
-/* 103: 87 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert) {
-/* 104: 88 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
-/* 105: */ } else {
-/* 106: 90 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
-/* 107: */ }
-/* 108: 91 */ return null;
-/* 109: */ }
-/* 110: 92 */ if (aSlotIndex == 21)
-/* 111: */ {
-/* 112: 93 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter);
-/* 113: 94 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter) {
-/* 114: 95 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Filter");
-/* 115: */ } else {
-/* 116: 97 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Filter");
-/* 117: */ }
-/* 118: 98 */ return null;
-/* 119: */ }
-/* 120: 99 */ if (aSlotIndex == 22)
-/* 121: */ {
-/* 122:100 */ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT);
-/* 123:101 */ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT) {
-/* 124:102 */ GT_Utility.sendChatToPlayer(aPlayer, "Ignore NBT");
-/* 125: */ } else {
-/* 126:104 */ GT_Utility.sendChatToPlayer(aPlayer, "NBT has to match");
-/* 127: */ }
-/* 128:105 */ return null;
-/* 129: */ }
-/* 130: */ }
-/* 131:108 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 132: */ }
-/* 133: */
-/* 134: */ public int getSlotCount()
-/* 135: */ {
-/* 136:113 */ return 9;
-/* 137: */ }
-/* 138: */
-/* 139: */ public int getShiftClickSlotCount()
-/* 140: */ {
-/* 141:118 */ return 9;
-/* 142: */ }
-/* 143: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Holo;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.tileentities.automation.GT_MetaTileEntity_Filter;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+
+public class GT_Container_Filter
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_Filter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ addSlotToContainer(new Slot(this.mTileEntity, 0, 98, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 1, 116, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 2, 134, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 3, 98, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 4, 116, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 5, 134, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 6, 98, 41));
+ addSlotToContainer(new Slot(this.mTileEntity, 7, 116, 41));
+ addSlotToContainer(new Slot(this.mTileEntity, 8, 134, 41));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 18, 6, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 35, 6, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 52, 6, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 18, 23, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 35, 23, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 52, 23, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 18, 40, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 35, 40, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 52, 40, false, true, 1));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 26, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 44, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 62, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 80, 63, false, true, 1));
+ }
+
+ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+ {
+ if (aSlotIndex < 9) {
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+ if (tSlot != null)
+ {
+ if (this.mTileEntity.getMetaTileEntity() == null) {
+ return null;
+ }
+ if (aSlotIndex < 18)
+ {
+ ItemStack tStack = aPlayer.inventory.getItemStack();
+ if (tStack == null)
+ {
+ tStack = tSlot.getStack();
+ if (aMouseclick == 0) {
+ tSlot.putStack(null);
+ } else if (tStack != null) {
+ tStack.setItemDamage(32767);
+ }
+ }
+ else
+ {
+ tSlot.putStack(GT_Utility.copyAmount(1L, new Object[] { tStack }));
+ }
+ return null;
+ }
+ if (aSlotIndex == 18)
+ {
+ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput);
+ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bOutput) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+ }
+ return null;
+ }
+ if (aSlotIndex == 19)
+ {
+ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if slots contain something");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 20)
+ {
+ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert);
+ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvert) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 21)
+ {
+ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter);
+ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bInvertFilter) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Filter");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Filter");
+ }
+ return null;
+ }
+ if (aSlotIndex == 22)
+ {
+ ((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT = (!((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT);
+ if (((GT_MetaTileEntity_Filter)this.mTileEntity.getMetaTileEntity()).bIgnoreNBT) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Ignore NBT");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "NBT has to match");
+ }
+ return null;
+ }
+ }
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+
+ public int getSlotCount()
+ {
+ return 9;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 9;
+ }
+}
/* 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/gui/GT_Container_Regulator.java b/main/java/gregtech/common/gui/GT_Container_Regulator.java index 2a9b305758..e19ad1b6c6 100644 --- a/main/java/gregtech/common/gui/GT_Container_Regulator.java +++ b/main/java/gregtech/common/gui/GT_Container_Regulator.java @@ -1,177 +1,177 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 6: */ import gregtech.api.gui.GT_Slot_Holo;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_Regulator;
-/* 10: */ import java.util.Iterator;
-/* 11: */ import java.util.List;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 14: */ import net.minecraft.inventory.ICrafting;
-/* 15: */ import net.minecraft.inventory.Slot;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */
-/* 18: */ public class GT_Container_Regulator
-/* 19: */ extends GT_ContainerMetaTile_Machine
-/* 20: */ {
-/* 21: */ public GT_Container_Regulator(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23: 22 */ super(aInventoryPlayer, aTileEntity);
-/* 24: */ }
-/* 25: */
-/* 26: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 27: */ {
-/* 28: 27 */ this.mTargetSlots = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-/* 29: */
-/* 30: 29 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 8, 6));
-/* 31: 30 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 26, 6));
-/* 32: 31 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 44, 6));
-/* 33: 32 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 8, 24));
-/* 34: 33 */ addSlotToContainer(new Slot(this.mTileEntity, 4, 26, 24));
-/* 35: 34 */ addSlotToContainer(new Slot(this.mTileEntity, 5, 44, 24));
-/* 36: 35 */ addSlotToContainer(new Slot(this.mTileEntity, 6, 8, 42));
-/* 37: 36 */ addSlotToContainer(new Slot(this.mTileEntity, 7, 26, 42));
-/* 38: 37 */ addSlotToContainer(new Slot(this.mTileEntity, 8, 44, 42));
-/* 39: */
-/* 40: 39 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 64, 7, false, true, 1));
-/* 41: 40 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 81, 7, false, true, 1));
-/* 42: 41 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 98, 7, false, true, 1));
-/* 43: 42 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 64, 24, false, true, 1));
-/* 44: 43 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 81, 24, false, true, 1));
-/* 45: 44 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 98, 24, false, true, 1));
-/* 46: 45 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 64, 41, false, true, 1));
-/* 47: 46 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 81, 41, false, true, 1));
-/* 48: 47 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 98, 41, false, true, 1));
-/* 49: */
-/* 50: 49 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 7, false, true, 1));
-/* 51: 50 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 7, false, true, 1));
-/* 52: 51 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 7, false, true, 1));
-/* 53: 52 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 24, false, true, 1));
-/* 54: 53 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 24, false, true, 1));
-/* 55: 54 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 24, false, true, 1));
-/* 56: 55 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 41, false, true, 1));
-/* 57: 56 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 41, false, true, 1));
-/* 58: 57 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 41, false, true, 1));
-/* 59: */
-/* 60: 59 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
-/* 61: */ }
-/* 62: */
-/* 63: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
-/* 64: */ {
-/* 65: 66 */ if (aSlotIndex < 9) {
-/* 66: 66 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 67: */ }
-/* 68: 67 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
-/* 69: 68 */ if (tSlot != null)
-/* 70: */ {
-/* 71: 69 */ if (this.mTileEntity.getMetaTileEntity() == null) {
-/* 72: 69 */ return null;
-/* 73: */ }
-/* 74: 70 */ if (aSlotIndex == 27)
-/* 75: */ {
-/* 76: 71 */ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput);
-/* 77: 72 */ if (((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput) {
-/* 78: 73 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
-/* 79: */ } else {
-/* 80: 75 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
-/* 81: */ }
-/* 82: 76 */ return null;
-/* 83: */ }
-/* 84: 77 */ if ((aSlotIndex >= 9) && (aSlotIndex < 18))
-/* 85: */ {
-/* 86: 78 */ ItemStack tStack = aPlayer.inventory.getItemStack();
-/* 87: 79 */ if (tStack != null) {
-/* 88: 80 */ tSlot.putStack(GT_Utility.copy(new Object[] { tStack }));
-/* 89: 82 */ } else if (tSlot.getStack() != null) {
-/* 90: 83 */ if (aMouseclick == 0)
-/* 91: */ {
-/* 92: 84 */ tSlot.getStack().stackSize -= (aShifthold == 1 ? 8 : 1);
-/* 93: 85 */ if (tSlot.getStack().stackSize <= 0) {
-/* 94: 86 */ tSlot.putStack(null);
-/* 95: */ }
-/* 96: */ }
-/* 97: */ else
-/* 98: */ {
-/* 99: 89 */ tSlot.getStack().stackSize += (aShifthold == 1 ? 8 : 1);
-/* 100: 90 */ if (tSlot.getStack().stackSize > tSlot.getStack().getMaxStackSize()) {
-/* 101: 91 */ tSlot.getStack().stackSize = tSlot.getStack().getMaxStackSize();
-/* 102: */ }
-/* 103: */ }
-/* 104: */ }
-/* 105: 96 */ return null;
-/* 106: */ }
-/* 107: 97 */ if ((aSlotIndex >= 18) && (aSlotIndex < 27))
-/* 108: */ {
-/* 109: 98 */ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] = Math.min(99, Math.max(0, ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] + (aMouseclick == 0 ? -1 : 1) * (aShifthold == 0 ? 1 : 16)));
-/* 110: 99 */ return null;
-/* 111: */ }
-/* 112: */ }
-/* 113:102 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 114: */ }
-/* 115: */
-/* 116:105 */ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-/* 117: */
-/* 118: */ public void detectAndSendChanges()
-/* 119: */ {
-/* 120:109 */ super.detectAndSendChanges();
-/* 121:110 */ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
-/* 122:110 */ return;
-/* 123: */ }
-/* 124:111 */ this.mTargetSlots = new int[9];
-/* 125:112 */ for (int i = 0; i < 9; i++) {
-/* 126:112 */ this.mTargetSlots[i] = ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[i];
-/* 127: */ }
-/* 128:114 */ Iterator var2 = this.crafters.iterator();
-/* 129:115 */ while (var2.hasNext())
-/* 130: */ {
-/* 131:116 */ ICrafting var1 = (ICrafting)var2.next();
-/* 132:117 */ for (int i = 0; i < 9; i++) {
-/* 133:117 */ var1.sendProgressBarUpdate(this, 100 + i, this.mTargetSlots[i]);
-/* 134: */ }
-/* 135: */ }
-/* 136: */ }
-/* 137: */
-/* 138: */ @SideOnly(Side.CLIENT)
-/* 139: */ public void updateProgressBar(int par1, int par2)
-/* 140: */ {
-/* 141:124 */ super.updateProgressBar(par1, par2);
-/* 142:125 */ switch (par1)
-/* 143: */ {
-/* 144: */ case 100:
-/* 145:126 */ this.mTargetSlots[0] = par2; break;
-/* 146: */ case 101:
-/* 147:127 */ this.mTargetSlots[1] = par2; break;
-/* 148: */ case 102:
-/* 149:128 */ this.mTargetSlots[2] = par2; break;
-/* 150: */ case 103:
-/* 151:129 */ this.mTargetSlots[3] = par2; break;
-/* 152: */ case 104:
-/* 153:130 */ this.mTargetSlots[4] = par2; break;
-/* 154: */ case 105:
-/* 155:131 */ this.mTargetSlots[5] = par2; break;
-/* 156: */ case 106:
-/* 157:132 */ this.mTargetSlots[6] = par2; break;
-/* 158: */ case 107:
-/* 159:133 */ this.mTargetSlots[7] = par2; break;
-/* 160: */ case 108:
-/* 161:134 */ this.mTargetSlots[8] = par2;
-/* 162: */ }
-/* 163: */ }
-/* 164: */
-/* 165: */ public int getSlotCount()
-/* 166: */ {
-/* 167:140 */ return 9;
-/* 168: */ }
-/* 169: */
-/* 170: */ public int getShiftClickSlotCount()
-/* 171: */ {
-/* 172:145 */ return 9;
-/* 173: */ }
-/* 174: */ }
+package gregtech.common.gui;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Holo;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.tileentities.automation.GT_MetaTileEntity_Regulator;
+import java.util.Iterator;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.ICrafting;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+
+public class GT_Container_Regulator
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_Regulator(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ this.mTargetSlots = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ addSlotToContainer(new Slot(this.mTileEntity, 0, 8, 6));
+ addSlotToContainer(new Slot(this.mTileEntity, 1, 26, 6));
+ addSlotToContainer(new Slot(this.mTileEntity, 2, 44, 6));
+ addSlotToContainer(new Slot(this.mTileEntity, 3, 8, 24));
+ addSlotToContainer(new Slot(this.mTileEntity, 4, 26, 24));
+ addSlotToContainer(new Slot(this.mTileEntity, 5, 44, 24));
+ addSlotToContainer(new Slot(this.mTileEntity, 6, 8, 42));
+ addSlotToContainer(new Slot(this.mTileEntity, 7, 26, 42));
+ addSlotToContainer(new Slot(this.mTileEntity, 8, 44, 42));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 9, 64, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 81, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 11, 98, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 12, 64, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 13, 81, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 14, 98, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 15, 64, 41, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 16, 81, 41, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 17, 98, 41, false, true, 1));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 7, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 24, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 119, 41, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 136, 41, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 153, 41, false, true, 1));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 18, 8, 63, false, true, 1));
+ }
+
+ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+ {
+ if (aSlotIndex < 9) {
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+ if (tSlot != null)
+ {
+ if (this.mTileEntity.getMetaTileEntity() == null) {
+ return null;
+ }
+ if (aSlotIndex == 27)
+ {
+ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput);
+ if (((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).bOutput) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+ }
+ return null;
+ }
+ if ((aSlotIndex >= 9) && (aSlotIndex < 18))
+ {
+ ItemStack tStack = aPlayer.inventory.getItemStack();
+ if (tStack != null) {
+ tSlot.putStack(GT_Utility.copy(new Object[] { tStack }));
+ } else if (tSlot.getStack() != null) {
+ if (aMouseclick == 0)
+ {
+ tSlot.getStack().stackSize -= (aShifthold == 1 ? 8 : 1);
+ if (tSlot.getStack().stackSize <= 0) {
+ tSlot.putStack(null);
+ }
+ }
+ else
+ {
+ tSlot.getStack().stackSize += (aShifthold == 1 ? 8 : 1);
+ if (tSlot.getStack().stackSize > tSlot.getStack().getMaxStackSize()) {
+ tSlot.getStack().stackSize = tSlot.getStack().getMaxStackSize();
+ }
+ }
+ }
+ return null;
+ }
+ if ((aSlotIndex >= 18) && (aSlotIndex < 27))
+ {
+ ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] = Math.min(99, Math.max(0, ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] + (aMouseclick == 0 ? -1 : 1) * (aShifthold == 0 ? 1 : 16)));
+ return null;
+ }
+ }
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+
+ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ public void detectAndSendChanges()
+ {
+ super.detectAndSendChanges();
+ if ((this.mTileEntity.isClientSide()) || (this.mTileEntity.getMetaTileEntity() == null)) {
+ return;
+ }
+ this.mTargetSlots = new int[9];
+ for (int i = 0; i < 9; i++) {
+ this.mTargetSlots[i] = ((GT_MetaTileEntity_Regulator)this.mTileEntity.getMetaTileEntity()).mTargetSlots[i];
+ }
+ Iterator var2 = this.crafters.iterator();
+ while (var2.hasNext())
+ {
+ ICrafting var1 = (ICrafting)var2.next();
+ for (int i = 0; i < 9; i++) {
+ var1.sendProgressBarUpdate(this, 100 + i, this.mTargetSlots[i]);
+ }
+ }
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void updateProgressBar(int par1, int par2)
+ {
+ super.updateProgressBar(par1, par2);
+ switch (par1)
+ {
+ case 100:
+ this.mTargetSlots[0] = par2; break;
+ case 101:
+ this.mTargetSlots[1] = par2; break;
+ case 102:
+ this.mTargetSlots[2] = par2; break;
+ case 103:
+ this.mTargetSlots[3] = par2; break;
+ case 104:
+ this.mTargetSlots[4] = par2; break;
+ case 105:
+ this.mTargetSlots[5] = par2; break;
+ case 106:
+ this.mTargetSlots[6] = par2; break;
+ case 107:
+ this.mTargetSlots[7] = par2; break;
+ case 108:
+ this.mTargetSlots[8] = par2;
+ }
+ }
+
+ public int getSlotCount()
+ {
+ return 9;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 9;
+ }
+}
/* 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/gui/GT_Container_SuperBuffer.java b/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java index 1c390f2da2..0755237d8c 100644 --- a/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java +++ b/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java @@ -1,86 +1,86 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
-/* 8: */ import java.util.List;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 11: */ import net.minecraft.inventory.Slot;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */
-/* 14: */ public class GT_Container_SuperBuffer
-/* 15: */ extends GT_ContainerMetaTile_Machine
-/* 16: */ {
-/* 17: */ public GT_Container_SuperBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 18: */ {
-/* 19:16 */ super(aInventoryPlayer, aTileEntity);
-/* 20: */ }
-/* 21: */
-/* 22: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 23: */ {
-/* 24:21 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 8, 63, false, true, 1));
-/* 25:22 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 26, 63, false, true, 1));
-/* 26:23 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 44, 63, false, true, 1));
-/* 27: */ }
-/* 28: */
-/* 29: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
-/* 30: */ {
-/* 31:28 */ if (aSlotIndex < 0) {
-/* 32:28 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 33: */ }
-/* 34:30 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
-/* 35:31 */ if (tSlot != null)
-/* 36: */ {
-/* 37:32 */ if (this.mTileEntity.getMetaTileEntity() == null) {
-/* 38:32 */ return null;
-/* 39: */ }
-/* 40:33 */ if (aSlotIndex == 0)
-/* 41: */ {
-/* 42:34 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
-/* 43:35 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
-/* 44:36 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
-/* 45: */ } else {
-/* 46:38 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
-/* 47: */ }
-/* 48:39 */ return null;
-/* 49: */ }
-/* 50:40 */ if (aSlotIndex == 1)
-/* 51: */ {
-/* 52:41 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
-/* 53:42 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
-/* 54:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
-/* 55: */ } else {
-/* 56:45 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
-/* 57: */ }
-/* 58:46 */ return null;
-/* 59: */ }
-/* 60:47 */ if (aSlotIndex == 2)
-/* 61: */ {
-/* 62:48 */ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
-/* 63:49 */ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
-/* 64:50 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
-/* 65: */ } else {
-/* 66:52 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
-/* 67: */ }
-/* 68:53 */ return null;
-/* 69: */ }
-/* 70: */ }
-/* 71:57 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 72: */ }
-/* 73: */
-/* 74: */ public int getSlotCount()
-/* 75: */ {
-/* 76:62 */ return 0;
-/* 77: */ }
-/* 78: */
-/* 79: */ public int getShiftClickSlotCount()
-/* 80: */ {
-/* 81:67 */ return 0;
-/* 82: */ }
-/* 83: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Holo;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.tileentities.automation.GT_MetaTileEntity_ChestBuffer;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+
+public class GT_Container_SuperBuffer
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_SuperBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 8, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 26, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 44, 63, false, true, 1));
+ }
+
+ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+ {
+ if (aSlotIndex < 0) {
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+ if (tSlot != null)
+ {
+ if (this.mTileEntity.getMetaTileEntity() == null) {
+ return null;
+ }
+ if (aSlotIndex == 0)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bOutput) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+ }
+ return null;
+ }
+ if (aSlotIndex == 1)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if no Slot is free");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 2)
+ {
+ ((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert);
+ if (((GT_MetaTileEntity_ChestBuffer)this.mTileEntity.getMetaTileEntity()).bInvert) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+ }
+ return null;
+ }
+ }
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+
+ public int getSlotCount()
+ {
+ return 0;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 0;
+ }
+}
/* 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/gui/GT_Container_TypeFilter.java b/main/java/gregtech/common/gui/GT_Container_TypeFilter.java index ae3df0e9bd..964fffa47d 100644 --- a/main/java/gregtech/common/gui/GT_Container_TypeFilter.java +++ b/main/java/gregtech/common/gui/GT_Container_TypeFilter.java @@ -1,126 +1,126 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_Slot_Holo;
-/* 5: */ import gregtech.api.gui.GT_Slot_Render;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import gregtech.common.tileentities.automation.GT_MetaTileEntity_TypeFilter;
-/* 9: */ import java.util.List;
-/* 10: */ import net.minecraft.entity.player.EntityPlayer;
-/* 11: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 12: */ import net.minecraft.inventory.Slot;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */
-/* 15: */ public class GT_Container_TypeFilter
-/* 16: */ extends GT_ContainerMetaTile_Machine
-/* 17: */ {
-/* 18: */ public GT_Container_TypeFilter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 19: */ {
-/* 20:17 */ super(aInventoryPlayer, aTileEntity);
-/* 21: */ }
-/* 22: */
-/* 23: */ public void addSlots(InventoryPlayer aInventoryPlayer)
-/* 24: */ {
-/* 25:22 */ addSlotToContainer(new Slot(this.mTileEntity, 0, 98, 5));
-/* 26:23 */ addSlotToContainer(new Slot(this.mTileEntity, 1, 116, 5));
-/* 27:24 */ addSlotToContainer(new Slot(this.mTileEntity, 2, 134, 5));
-/* 28:25 */ addSlotToContainer(new Slot(this.mTileEntity, 3, 98, 23));
-/* 29:26 */ addSlotToContainer(new Slot(this.mTileEntity, 4, 116, 23));
-/* 30:27 */ addSlotToContainer(new Slot(this.mTileEntity, 5, 134, 23));
-/* 31:28 */ addSlotToContainer(new Slot(this.mTileEntity, 6, 98, 41));
-/* 32:29 */ addSlotToContainer(new Slot(this.mTileEntity, 7, 116, 41));
-/* 33:30 */ addSlotToContainer(new Slot(this.mTileEntity, 8, 134, 41));
-/* 34: */
-/* 35:32 */ addSlotToContainer(new GT_Slot_Render(this.mTileEntity, 9, 35, 23));
-/* 36: */
-/* 37:34 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 8, 63, false, true, 1));
-/* 38:35 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 26, 63, false, true, 1));
-/* 39:36 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 44, 63, false, true, 1));
-/* 40:37 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 62, 63, false, true, 1));
-/* 41:38 */ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 80, 63, false, true, 1));
-/* 42: */ }
-/* 43: */
-/* 44: */ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
-/* 45: */ {
-/* 46:43 */ if (aSlotIndex < 9) {
-/* 47:43 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* 48: */ }
-/* 49:45 */ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
-/* 50:46 */ if (tSlot != null)
-/* 51: */ {
-/* 52:47 */ if (this.mTileEntity.getMetaTileEntity() == null) {
-/* 53:47 */ return null;
-/* 54: */ }
-/* 55:48 */ if (aSlotIndex == 9)
-/* 56: */ {
-/* 57:49 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).clickTypeIcon(aMouseclick != 0);
-/* 58:50 */ return null;
-/* 59: */ }
-/* 60:51 */ if (aSlotIndex == 10)
-/* 61: */ {
-/* 62:52 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput);
-/* 63:53 */ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput) {
-/* 64:54 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
-/* 65: */ } else {
-/* 66:56 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
-/* 67: */ }
-/* 68:57 */ return null;
-/* 69: */ }
-/* 70:58 */ if (aSlotIndex == 11)
-/* 71: */ {
-/* 72:59 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
-/* 73:60 */ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
-/* 74:61 */ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if slots contain something");
-/* 75: */ } else {
-/* 76:63 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
-/* 77: */ }
-/* 78:64 */ return null;
-/* 79: */ }
-/* 80:65 */ if (aSlotIndex == 12)
-/* 81: */ {
-/* 82:66 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert);
-/* 83:67 */ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert) {
-/* 84:68 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
-/* 85: */ } else {
-/* 86:70 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
-/* 87: */ }
-/* 88:71 */ return null;
-/* 89: */ }
-/* 90:72 */ if (aSlotIndex == 13)
-/* 91: */ {
-/* 92:73 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter);
-/* 93:74 */ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter) {
-/* 94:75 */ GT_Utility.sendChatToPlayer(aPlayer, "Invert Filter");
-/* 95: */ } else {
-/* 96:77 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Filter");
-/* 97: */ }
-/* 98:78 */ return null;
-/* 99: */ }
-/* :0:79 */ if (aSlotIndex == 14)
-/* :1: */ {
-/* :2:80 */ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed);
-/* :3:81 */ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed) {
-/* :4:82 */ GT_Utility.sendChatToPlayer(aPlayer, "Allow Items with NBT");
-/* :5: */ } else {
-/* :6:84 */ GT_Utility.sendChatToPlayer(aPlayer, "Don't allow Items with NBT");
-/* :7: */ }
-/* :8:85 */ return null;
-/* :9: */ }
-/* ;0: */ }
-/* ;1:88 */ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
-/* ;2: */ }
-/* ;3: */
-/* ;4: */ public int getSlotCount()
-/* ;5: */ {
-/* ;6:93 */ return 9;
-/* ;7: */ }
-/* ;8: */
-/* ;9: */ public int getShiftClickSlotCount()
-/* <0: */ {
-/* <1:98 */ return 9;
-/* <2: */ }
-/* <3: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_Slot_Holo;
+import gregtech.api.gui.GT_Slot_Render;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.tileentities.automation.GT_MetaTileEntity_TypeFilter;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.inventory.Slot;
+import net.minecraft.item.ItemStack;
+
+public class GT_Container_TypeFilter
+ extends GT_ContainerMetaTile_Machine
+{
+ public GT_Container_TypeFilter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(aInventoryPlayer, aTileEntity);
+ }
+
+ public void addSlots(InventoryPlayer aInventoryPlayer)
+ {
+ addSlotToContainer(new Slot(this.mTileEntity, 0, 98, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 1, 116, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 2, 134, 5));
+ addSlotToContainer(new Slot(this.mTileEntity, 3, 98, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 4, 116, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 5, 134, 23));
+ addSlotToContainer(new Slot(this.mTileEntity, 6, 98, 41));
+ addSlotToContainer(new Slot(this.mTileEntity, 7, 116, 41));
+ addSlotToContainer(new Slot(this.mTileEntity, 8, 134, 41));
+
+ addSlotToContainer(new GT_Slot_Render(this.mTileEntity, 9, 35, 23));
+
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 8, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 26, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 44, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 62, 63, false, true, 1));
+ addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 10, 80, 63, false, true, 1));
+ }
+
+ public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer)
+ {
+ if (aSlotIndex < 9) {
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+ Slot tSlot = (Slot)this.inventorySlots.get(aSlotIndex);
+ if (tSlot != null)
+ {
+ if (this.mTileEntity.getMetaTileEntity() == null) {
+ return null;
+ }
+ if (aSlotIndex == 9)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).clickTypeIcon(aMouseclick != 0);
+ return null;
+ }
+ if (aSlotIndex == 10)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput);
+ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bOutput) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Energy to Outputside");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Energy");
+ }
+ return null;
+ }
+ if (aSlotIndex == 11)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull);
+ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bRedstoneIfFull) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Emit Redstone if slots contain something");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't emit Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 12)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert);
+ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvert) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Redstone");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Redstone");
+ }
+ return null;
+ }
+ if (aSlotIndex == 13)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter);
+ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bInvertFilter) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Invert Filter");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't invert Filter");
+ }
+ return null;
+ }
+ if (aSlotIndex == 14)
+ {
+ ((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed = (!((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed);
+ if (((GT_MetaTileEntity_TypeFilter)this.mTileEntity.getMetaTileEntity()).bNBTAllowed) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Allow Items with NBT");
+ } else {
+ GT_Utility.sendChatToPlayer(aPlayer, "Don't allow Items with NBT");
+ }
+ return null;
+ }
+ }
+ return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer);
+ }
+
+ public int getSlotCount()
+ {
+ return 9;
+ }
+
+ public int getShiftClickSlotCount()
+ {
+ return 9;
+ }
+}
/* 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/gui/GT_GUIContainer_Boiler.java b/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java index 58b520fc48..2a22eb42ed 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_Boiler.java @@ -1,50 +1,50 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.client.gui.FontRenderer;
-/* 6: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 7: */
-/* 8: */ public class GT_GUIContainer_Boiler
-/* 9: */ extends GT_GUIContainerMetaTile_Machine
-/* 10: */ {
-/* 11: */ public GT_GUIContainer_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aTextureName, int aSteamCapacity)
-/* 12: */ {
-/* 13:10 */ super(new GT_Container_Boiler(aInventoryPlayer, aTileEntity, aSteamCapacity), "gregtech:textures/gui/" + aTextureName);
-/* 14: */ }
-/* 15: */
-/* 16: */ protected void drawGuiContainerForegroundLayer(int par1, int par2)
-/* 17: */ {
-/* 18:15 */ this.fontRendererObj.drawString("Boiler", 8, 4, 4210752);
-/* 19: */ }
-/* 20: */
-/* 21: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 22: */ {
-/* 23:20 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 24:21 */ int x = (this.width - this.xSize) / 2;
-/* 25:22 */ int y = (this.height - this.ySize) / 2;
-/* 26:23 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 27:25 */ if (this.mContainer != null)
-/* 28: */ {
-/* 29:27 */ int tScale = ((GT_Container_Boiler)this.mContainer).mSteamAmount;
-/* 30:28 */ if (tScale > 0) {
-/* 31:28 */ drawTexturedModalRect(x + 70, y + 25 + 54 - tScale, 194, 54 - tScale, 10, tScale);
-/* 32: */ }
-/* 33:29 */ tScale = ((GT_Container_Boiler)this.mContainer).mWaterAmount;
-/* 34:30 */ if (tScale > 0) {
-/* 35:30 */ drawTexturedModalRect(x + 83, y + 25 + 54 - tScale, 204, 54 - tScale, 10, tScale);
-/* 36: */ }
-/* 37:31 */ tScale = ((GT_Container_Boiler)this.mContainer).mTemperature;
-/* 38:32 */ if (tScale > 0) {
-/* 39:32 */ drawTexturedModalRect(x + 96, y + 25 + 54 - tScale, 214, 54 - tScale, 10, tScale);
-/* 40: */ }
-/* 41:33 */ tScale = ((GT_Container_Boiler)this.mContainer).mProcessingEnergy;
-/* 42:34 */ if (tScale > 0) {
-/* 43:34 */ drawTexturedModalRect(x + 117, y + 44 + 14 - tScale, 177, 14 - tScale, 15, tScale + 1);
-/* 44: */ }
-/* 45: */ }
-/* 46: */ }
-/* 47: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.client.gui.FontRenderer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_Boiler
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_Boiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aTextureName, int aSteamCapacity)
+ {
+ super(new GT_Container_Boiler(aInventoryPlayer, aTileEntity, aSteamCapacity), "gregtech:textures/gui/" + aTextureName);
+ }
+
+ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+ {
+ this.fontRendererObj.drawString("Boiler", 8, 4, 4210752);
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ if (this.mContainer != null)
+ {
+ int tScale = ((GT_Container_Boiler)this.mContainer).mSteamAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 70, y + 25 + 54 - tScale, 194, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler)this.mContainer).mWaterAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 83, y + 25 + 54 - tScale, 204, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler)this.mContainer).mTemperature;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 96, y + 25 + 54 - tScale, 214, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler)this.mContainer).mProcessingEnergy;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 117, y + 44 + 14 - tScale, 177, 14 - tScale, 15, tScale + 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/gui/GT_GUIContainer_BronzeBlastFurnace.java b/main/java/gregtech/common/gui/GT_GUIContainer_BronzeBlastFurnace.java index 581e6b43f8..fbd663c24c 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_BronzeBlastFurnace.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_BronzeBlastFurnace.java @@ -1,36 +1,36 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_ContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.client.gui.FontRenderer;
-/* 7: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 8: */
-/* 9: */ public class GT_GUIContainer_BronzeBlastFurnace
-/* 10: */ extends GT_GUIContainerMetaTile_Machine
-/* 11: */ {
-/* 12: */ public GT_GUIContainer_BronzeBlastFurnace(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 13: */ {
-/* 14:11 */ super(new GT_Container_BronzeBlastFurnace(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/BronzeBlastFurnace.png");
-/* 15: */ }
-/* 16: */
-/* 17: */ protected void drawGuiContainerForegroundLayer(int par1, int par2)
-/* 18: */ {
-/* 19:16 */ this.fontRendererObj.drawString("Bronze Blast Furnace", 8, 4, 4210752);
-/* 20: */ }
-/* 21: */
-/* 22: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 23: */ {
-/* 24:21 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 25:22 */ int x = (this.width - this.xSize) / 2;
-/* 26:23 */ int y = (this.height - this.ySize) / 2;
-/* 27:24 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 28:26 */ if ((this.mContainer != null) &&
-/* 29:27 */ (this.mContainer.mProgressTime > 0)) {
-/* 30:27 */ drawTexturedModalRect(x + 58, y + 28, 176, 0, Math.max(0, Math.min(20, (this.mContainer.mProgressTime > 0 ? 1 : 0) + this.mContainer.mProgressTime * 20 / (this.mContainer.mMaxProgressTime < 1 ? 1 : this.mContainer.mMaxProgressTime))), 11);
-/* 31: */ }
-/* 32: */ }
-/* 33: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_ContainerMetaTile_Machine;
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.client.gui.FontRenderer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_BronzeBlastFurnace
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_BronzeBlastFurnace(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_BronzeBlastFurnace(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/BronzeBlastFurnace.png");
+ }
+
+ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+ {
+ this.fontRendererObj.drawString("Bronze Blast Furnace", 8, 4, 4210752);
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ if ((this.mContainer != null) &&
+ (this.mContainer.mProgressTime > 0)) {
+ drawTexturedModalRect(x + 58, y + 28, 176, 0, Math.max(0, Math.min(20, (this.mContainer.mProgressTime > 0 ? 1 : 0) + this.mContainer.mProgressTime * 20 / (this.mContainer.mMaxProgressTime < 1 ? 1 : this.mContainer.mMaxProgressTime))), 11);
+ }
+ }
+}
/* 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/gui/GT_GUIContainer_ChestBuffer.java b/main/java/gregtech/common/gui/GT_GUIContainer_ChestBuffer.java index 0528980387..c00914698f 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_ChestBuffer.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_ChestBuffer.java @@ -1,25 +1,25 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 6: */
-/* 7: */ public class GT_GUIContainer_ChestBuffer
-/* 8: */ extends GT_GUIContainerMetaTile_Machine
-/* 9: */ {
-/* 10: */ public GT_GUIContainer_ChestBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 11: */ {
-/* 12:11 */ super(new GT_Container_ChestBuffer(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/ChestBuffer.png");
-/* 13: */ }
-/* 14: */
-/* 15: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 16: */ {
-/* 17:16 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 18:17 */ int x = (this.width - this.xSize) / 2;
-/* 19:18 */ int y = (this.height - this.ySize) / 2;
-/* 20:19 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 21: */ }
-/* 22: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_ChestBuffer
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_ChestBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_ChestBuffer(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/ChestBuffer.png");
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ }
+}
/* 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/gui/GT_GUIContainer_Filter.java b/main/java/gregtech/common/gui/GT_GUIContainer_Filter.java index c2e3778672..9730558f1a 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_Filter.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_Filter.java @@ -1,25 +1,25 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 6: */
-/* 7: */ public class GT_GUIContainer_Filter
-/* 8: */ extends GT_GUIContainerMetaTile_Machine
-/* 9: */ {
-/* 10: */ public GT_GUIContainer_Filter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 11: */ {
-/* 12:10 */ super(new GT_Container_Filter(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/Filter.png");
-/* 13: */ }
-/* 14: */
-/* 15: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 16: */ {
-/* 17:15 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 18:16 */ int x = (this.width - this.xSize) / 2;
-/* 19:17 */ int y = (this.height - this.ySize) / 2;
-/* 20:18 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 21: */ }
-/* 22: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_Filter
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_Filter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_Filter(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/Filter.png");
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ }
+}
/* 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/gui/GT_GUIContainer_Regulator.java b/main/java/gregtech/common/gui/GT_GUIContainer_Regulator.java index f23d854d03..54a197f688 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_Regulator.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_Regulator.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.client.gui.FontRenderer;
-/* 6: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 7: */
-/* 8: */ public class GT_GUIContainer_Regulator
-/* 9: */ extends GT_GUIContainerMetaTile_Machine
-/* 10: */ {
-/* 11: */ public GT_GUIContainer_Regulator(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 12: */ {
-/* 13:11 */ super(new GT_Container_Regulator(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/Regulator.png");
-/* 14: */ }
-/* 15: */
-/* 16: */ protected void drawGuiContainerForegroundLayer(int par1, int par2)
-/* 17: */ {
-/* 18:16 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[0], 120, 9, 16448255);
-/* 19:17 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[1], 137, 9, 16448255);
-/* 20:18 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[2], 155, 9, 16448255);
-/* 21:19 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[3], 120, 26, 16448255);
-/* 22:20 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[4], 137, 26, 16448255);
-/* 23:21 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[5], 155, 26, 16448255);
-/* 24:22 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[6], 120, 43, 16448255);
-/* 25:23 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[7], 137, 43, 16448255);
-/* 26:24 */ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[8], 155, 43, 16448255);
-/* 27: */ }
-/* 28: */
-/* 29: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 30: */ {
-/* 31:29 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 32:30 */ int x = (this.width - this.xSize) / 2;
-/* 33:31 */ int y = (this.height - this.ySize) / 2;
-/* 34:32 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 35: */ }
-/* 36: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.client.gui.FontRenderer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_Regulator
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_Regulator(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_Regulator(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/Regulator.png");
+ }
+
+ protected void drawGuiContainerForegroundLayer(int par1, int par2)
+ {
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[0], 120, 9, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[1], 137, 9, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[2], 155, 9, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[3], 120, 26, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[4], 137, 26, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[5], 155, 26, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[6], 120, 43, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[7], 137, 43, 16448255);
+ this.fontRendererObj.drawString("" + ((GT_Container_Regulator)this.mContainer).mTargetSlots[8], 155, 43, 16448255);
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ }
+}
/* 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/gui/GT_GUIContainer_SuperBuffer.java b/main/java/gregtech/common/gui/GT_GUIContainer_SuperBuffer.java index 3cecff99bc..af167ddf14 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_SuperBuffer.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_SuperBuffer.java @@ -1,25 +1,25 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 6: */
-/* 7: */ public class GT_GUIContainer_SuperBuffer
-/* 8: */ extends GT_GUIContainerMetaTile_Machine
-/* 9: */ {
-/* 10: */ public GT_GUIContainer_SuperBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 11: */ {
-/* 12:11 */ super(new GT_Container_SuperBuffer(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/SuperBuffer.png");
-/* 13: */ }
-/* 14: */
-/* 15: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 16: */ {
-/* 17:16 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 18:17 */ int x = (this.width - this.xSize) / 2;
-/* 19:18 */ int y = (this.height - this.ySize) / 2;
-/* 20:19 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 21: */ }
-/* 22: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_SuperBuffer
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_SuperBuffer(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_SuperBuffer(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/SuperBuffer.png");
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ }
+}
/* 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/gui/GT_GUIContainer_TypeFilter.java b/main/java/gregtech/common/gui/GT_GUIContainer_TypeFilter.java index 23025e909b..46ade86bd9 100644 --- a/main/java/gregtech/common/gui/GT_GUIContainer_TypeFilter.java +++ b/main/java/gregtech/common/gui/GT_GUIContainer_TypeFilter.java @@ -1,25 +1,25 @@ -/* 1: */ package gregtech.common.gui;
-/* 2: */
-/* 3: */ import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 5: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 6: */
-/* 7: */ public class GT_GUIContainer_TypeFilter
-/* 8: */ extends GT_GUIContainerMetaTile_Machine
-/* 9: */ {
-/* 10: */ public GT_GUIContainer_TypeFilter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
-/* 11: */ {
-/* 12:10 */ super(new GT_Container_TypeFilter(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/TypeFilter.png");
-/* 13: */ }
-/* 14: */
-/* 15: */ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
-/* 16: */ {
-/* 17:15 */ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
-/* 18:16 */ int x = (this.width - this.xSize) / 2;
-/* 19:17 */ int y = (this.height - this.ySize) / 2;
-/* 20:18 */ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
-/* 21: */ }
-/* 22: */ }
+package gregtech.common.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_GUIContainer_TypeFilter
+ extends GT_GUIContainerMetaTile_Machine
+{
+ public GT_GUIContainer_TypeFilter(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity)
+ {
+ super(new GT_Container_TypeFilter(aInventoryPlayer, aTileEntity), "gregtech:textures/gui/TypeFilter.png");
+ }
+
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
+ {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ }
+}
/* 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/items/GT_FluidDisplayItem.java b/main/java/gregtech/common/items/GT_FluidDisplayItem.java index 15623bdc0f..10f56c46f5 100644 --- a/main/java/gregtech/common/items/GT_FluidDisplayItem.java +++ b/main/java/gregtech/common/items/GT_FluidDisplayItem.java @@ -1,105 +1,105 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.enums.GT_Values;
-/* 6: */ import gregtech.api.enums.ItemList;
-/* 7: */ import gregtech.api.items.GT_Generic_Item;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import java.util.List;
-/* 10: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 11: */ import net.minecraft.creativetab.CreativeTabs;
-/* 12: */ import net.minecraft.item.Item;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.nbt.NBTTagCompound;
-/* 15: */ import net.minecraft.util.EnumChatFormatting;
-/* 16: */ import net.minecraft.util.IIcon;
-/* 17: */ import net.minecraftforge.fluids.Fluid;
-/* 18: */ import net.minecraftforge.fluids.FluidRegistry;
-/* 19: */
-/* 20: */ public class GT_FluidDisplayItem
-/* 21: */ extends GT_Generic_Item
-/* 22: */ {
-/* 23: */ public GT_FluidDisplayItem()
-/* 24: */ {
-/* 25:24 */ super("GregTech_FluidDisplay", "Fluid Display", null);
-/* 26:25 */ ItemList.Display_Fluid.set(this);
-/* 27: */ }
-/* 28: */
-/* 29: */ protected void addAdditionalToolTips(List aList, ItemStack aStack)
-/* 30: */ {
-/* 31:30 */ NBTTagCompound aNBT = aStack.getTagCompound();
-/* 32:31 */ if (GT_Values.D1)
-/* 33: */ {
-/* 34:32 */ Fluid tFluid = FluidRegistry.getFluid(aStack.getItemDamage());
-/* 35:33 */ if (tFluid != null) {
-/* 36:33 */ aList.add("Registry: " + tFluid.getName());
-/* 37: */ }
-/* 38: */ }
-/* 39:35 */ if (aNBT != null)
-/* 40: */ {
-/* 41:36 */ long tToolTipAmount = aNBT.getLong("mFluidDisplayAmount");
-/* 42:37 */ if (tToolTipAmount > 0L) {
-/* 43:38 */ aList.add(EnumChatFormatting.BLUE + "Amount: " + tToolTipAmount + EnumChatFormatting.GRAY);
-/* 44: */ }
-/* 45:39 */ aList.add(EnumChatFormatting.RED + "Temperature: " + aNBT.getLong("mFluidDisplayHeat") + " K" + EnumChatFormatting.GRAY);
-/* 46:40 */ aList.add(EnumChatFormatting.GREEN + "State: " + (aNBT.getBoolean("mFluidState") ? "Gas" : "Liquid") + EnumChatFormatting.GRAY);
-/* 47: */ }
-/* 48: */ }
-/* 49: */
-/* 50: */ @SideOnly(Side.CLIENT)
-/* 51: */ public void registerIcons(IIconRegister aIconRegister) {}
-/* 52: */
-/* 53: */ public IIcon getIconFromDamage(int aMeta)
-/* 54: */ {
-/* 55:52 */ Fluid tFluid = FluidRegistry.getFluid(aMeta);
-/* 56:53 */ return tFluid == null ? FluidRegistry.WATER.getStillIcon() : tFluid.getStillIcon();
-/* 57: */ }
-/* 58: */
-/* 59: */ @SideOnly(Side.CLIENT)
-/* 60: */ public int getColorFromItemStack(ItemStack aStack, int aRenderPass)
-/* 61: */ {
-/* 62:59 */ Fluid tFluid = FluidRegistry.getFluid(aStack.getItemDamage());
-/* 63:60 */ return tFluid == null ? 16777215 : tFluid.getColor();
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getSpriteNumber()
-/* 67: */ {
-/* 68:65 */ return 0;
-/* 69: */ }
-/* 70: */
-/* 71: */ public String getUnlocalizedName(ItemStack aStack)
-/* 72: */ {
-/* 73:70 */ if (aStack != null) {
-/* 74:70 */ return GT_Utility.getFluidName(FluidRegistry.getFluid(aStack.getItemDamage()), false);
-/* 75: */ }
-/* 76:71 */ return "";
-/* 77: */ }
-/* 78: */
-/* 79: */ public String getItemStackDisplayName(ItemStack aStack)
-/* 80: */ {
-/* 81:76 */ if (aStack != null) {
-/* 82:76 */ return GT_Utility.getFluidName(FluidRegistry.getFluid(aStack.getItemDamage()), true);
-/* 83: */ }
-/* 84:77 */ return "";
-/* 85: */ }
-/* 86: */
-/* 87: */ @SideOnly(Side.CLIENT)
-/* 88: */ public void getSubItems(Item aItem, CreativeTabs aTab, List aList)
-/* 89: */ {
-/* 90:83 */ if (GT_Values.D1)
-/* 91: */ {
-/* 92:83 */ int i = 0;
-/* 93:83 */ for (int j = FluidRegistry.getMaxID(); i < j; i++)
-/* 94: */ {
-/* 95:84 */ ItemStack tStack = GT_Utility.getFluidDisplayStack(FluidRegistry.getFluid(i));
-/* 96:85 */ if (tStack != null) {
-/* 97:85 */ aList.add(tStack);
-/* 98: */ }
-/* 99: */ }
-/* :0: */ }
-/* :1: */ }
-/* :2: */ }
+package gregtech.common.items;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.items.GT_Generic_Item;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+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.nbt.NBTTagCompound;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidRegistry;
+
+public class GT_FluidDisplayItem
+ extends GT_Generic_Item
+{
+ public GT_FluidDisplayItem()
+ {
+ super("GregTech_FluidDisplay", "Fluid Display", null);
+ ItemList.Display_Fluid.set(this);
+ }
+
+ protected void addAdditionalToolTips(List aList, ItemStack aStack)
+ {
+ NBTTagCompound aNBT = aStack.getTagCompound();
+ if (GT_Values.D1)
+ {
+ Fluid tFluid = FluidRegistry.getFluid(aStack.getItemDamage());
+ if (tFluid != null) {
+ aList.add("Registry: " + tFluid.getName());
+ }
+ }
+ if (aNBT != null)
+ {
+ long tToolTipAmount = aNBT.getLong("mFluidDisplayAmount");
+ if (tToolTipAmount > 0L) {
+ aList.add(EnumChatFormatting.BLUE + "Amount: " + tToolTipAmount + EnumChatFormatting.GRAY);
+ }
+ aList.add(EnumChatFormatting.RED + "Temperature: " + aNBT.getLong("mFluidDisplayHeat") + " K" + EnumChatFormatting.GRAY);
+ aList.add(EnumChatFormatting.GREEN + "State: " + (aNBT.getBoolean("mFluidState") ? "Gas" : "Liquid") + EnumChatFormatting.GRAY);
+ }
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister aIconRegister) {}
+
+ public IIcon getIconFromDamage(int aMeta)
+ {
+ Fluid tFluid = FluidRegistry.getFluid(aMeta);
+ return tFluid == null ? FluidRegistry.WATER.getStillIcon() : tFluid.getStillIcon();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public int getColorFromItemStack(ItemStack aStack, int aRenderPass)
+ {
+ Fluid tFluid = FluidRegistry.getFluid(aStack.getItemDamage());
+ return tFluid == null ? 16777215 : tFluid.getColor();
+ }
+
+ public int getSpriteNumber()
+ {
+ return 0;
+ }
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ if (aStack != null) {
+ return GT_Utility.getFluidName(FluidRegistry.getFluid(aStack.getItemDamage()), false);
+ }
+ return "";
+ }
+
+ public String getItemStackDisplayName(ItemStack aStack)
+ {
+ if (aStack != null) {
+ return GT_Utility.getFluidName(FluidRegistry.getFluid(aStack.getItemDamage()), true);
+ }
+ return "";
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void getSubItems(Item aItem, CreativeTabs aTab, List aList)
+ {
+ if (GT_Values.D1)
+ {
+ int i = 0;
+ for (int j = FluidRegistry.getMaxID(); i < j; i++)
+ {
+ ItemStack tStack = GT_Utility.getFluidDisplayStack(FluidRegistry.getFluid(i));
+ if (tStack != null) {
+ aList.add(tStack);
+ }
+ }
+ }
+ }
+}
/* 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/items/GT_IntegratedCircuit_Item.java b/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java index 2dd807de4e..7bd8668016 100644 --- a/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java +++ b/main/java/gregtech/common/items/GT_IntegratedCircuit_Item.java @@ -1,128 +1,128 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.GregTech_API;
-/* 6: */ import gregtech.api.enums.ItemList;
-/* 7: */ import gregtech.api.enums.Materials;
-/* 8: */ import gregtech.api.enums.OrePrefixes;
-/* 9: */ import gregtech.api.items.GT_Generic_Item;
-/* 10: */ import gregtech.api.util.GT_LanguageManager;
-/* 11: */ import gregtech.api.util.GT_Log;
-/* 12: */ import gregtech.api.util.GT_ModHandler;
-/* 13: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
-/* 14: */ import java.io.PrintStream;
-/* 15: */ import java.util.List;
-/* 16: */ import net.minecraft.client.renderer.texture.IIconRegister;
-/* 17: */ import net.minecraft.creativetab.CreativeTabs;
-/* 18: */ import net.minecraft.item.Item;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */
-/* 21: */ public class GT_IntegratedCircuit_Item
-/* 22: */ extends GT_Generic_Item
-/* 23: */ {
-/* 24: */ public GT_IntegratedCircuit_Item()
-/* 25: */ {
-/* 26: 23 */ super("integrated_circuit", "Integrated Circuit", "");
-/* 27: 24 */ setHasSubtypes(true);
-/* 28: 25 */ setMaxDamage(0);
-/* 29: */
-/* 30: 27 */ ItemList.Circuit_Integrated.set(this);
-/* 31: */
-/* 32: */
-/* 33: 30 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 0L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { OrePrefixes.circuit.get(Materials.Basic) });
-/* 34: */
-/* 35: 32 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 36: 33 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 2L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 37: 34 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 3L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 38: 35 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 4L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " Pd", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 39: 36 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 5L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 40: 37 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 6L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 41: 38 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 7L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", "d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 42: 39 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 8L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", "dP ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 43: */
-/* 44: 41 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 9L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P d", " ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 45: 42 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 10L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " d", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 46: 43 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 11L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 47: 44 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 12L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 48: 45 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 13L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 49: 46 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 14L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 50: 47 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 15L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", "d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 51: 48 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 16L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", "d ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 52: 49 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 17L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " ", "d P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 53: 50 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 18L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", "d ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 54: 51 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 19L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 55: 52 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 20L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 56: 53 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 21L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 57: 54 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 22L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 58: 55 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 23L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 59: 56 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 24L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " d", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
-/* 60: */ }
-/* 61: */
-/* 62: */ public void addAdditionalToolTips(List aList, ItemStack aStack)
-/* 63: */ {
-/* 64: 61 */ super.addAdditionalToolTips(aList, aStack);
-/* 65: 62 */ aList.add(GT_LanguageManager.addStringLocalization(new StringBuilder().append(getUnlocalizedName()).append(".configuration").toString(), "Configuration: ") + getConfigurationString(getDamage(aStack)));
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getUnlocalizedName(ItemStack aStack)
-/* 69: */ {
-/* 70: 67 */ return getUnlocalizedName();
-/* 71: */ }
-/* 72: */
-/* 73: */ @SideOnly(Side.CLIENT)
-/* 74: */ public final void getSubItems(Item var1, CreativeTabs aCreativeTab, List aList)
-/* 75: */ {
-/* 76: 73 */ aList.add(new ItemStack(this, 1, 0));
-/* 77: */ }
-/* 78: */
-/* 79: */ @SideOnly(Side.CLIENT)
-/* 80: */ public void registerIcons(IIconRegister aIconRegister)
-/* 81: */ {
-/* 82: 79 */ super.registerIcons(aIconRegister);
-/* 83: 80 */ if (GregTech_API.sPostloadFinished)
-/* 84: */ {
-/* 85: 81 */ GT_Log.out.println("GT_Mod: Starting Item Icon Load Phase");
-/* 86: 82 */ System.out.println("GT_Mod: Starting Item Icon Load Phase");
-/* 87: 83 */ GregTech_API.sItemIcons = aIconRegister;
-/* 88: 84 */ for (Runnable tRunnable : GregTech_API.sGTItemIconload) {
-/* 89: */ try
-/* 90: */ {
-/* 91: 86 */ tRunnable.run();
-/* 92: */ }
-/* 93: */ catch (Throwable e)
-/* 94: */ {
-/* 95: 88 */ e.printStackTrace(GT_Log.err);
-/* 96: */ }
-/* 97: */ }
-/* 98: 91 */ GT_Log.out.println("GT_Mod: Finished Item Icon Load Phase");
-/* 99: 92 */ System.out.println("GT_Mod: Finished Item Icon Load Phase");
-/* 100: */ }
-/* 101: */ }
-/* 102: */
-/* 103: */ private static String getModeString(int aMetaData)
-/* 104: */ {
-/* 105: 97 */ switch ((byte)(aMetaData >>> 8))
-/* 106: */ {
-/* 107: */ case 0:
-/* 108: 98 */ return "==";
-/* 109: */ case 1:
-/* 110: 99 */ return "<=";
-/* 111: */ case 2:
-/* 112:100 */ return ">=";
-/* 113: */ case 3:
-/* 114:101 */ return "<";
-/* 115: */ case 4:
-/* 116:102 */ return ">";
-/* 117: */ }
-/* 118:103 */ return "";
-/* 119: */ }
-/* 120: */
-/* 121: */ private static String getConfigurationString(int aMetaData)
-/* 122: */ {
-/* 123:108 */ return getModeString(aMetaData) + " " + (byte)(aMetaData & 0xFF);
-/* 124: */ }
-/* 125: */ }
+package gregtech.common.items;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.items.GT_Generic_Item;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler.RecipeBits;
+import java.io.PrintStream;
+import java.util.List;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+
+public class GT_IntegratedCircuit_Item
+ extends GT_Generic_Item
+{
+ public GT_IntegratedCircuit_Item()
+ {
+ super("integrated_circuit", "Integrated Circuit", "");
+ setHasSubtypes(true);
+ setMaxDamage(0);
+
+ ItemList.Circuit_Integrated.set(this);
+
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 0L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { OrePrefixes.circuit.get(Materials.Basic) });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 2L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 3L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " P ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 4L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " Pd", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 5L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 6L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 7L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", "d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 8L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", "dP ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 9L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P d", " ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 10L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " d", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 11L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 12L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "P ", " ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 13L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", " d", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 14L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", " d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 15L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", " ", "d ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 16L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " P", "d ", " ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 17L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " ", "d P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 18L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", "d ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 19L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 20L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " ", " P", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 21L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 22L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 23L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " ", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Integrated.getWithDamage(1L, 24L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " d", "P ", Character.valueOf('P'), ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) });
+ }
+
+ public void addAdditionalToolTips(List aList, ItemStack aStack)
+ {
+ super.addAdditionalToolTips(aList, aStack);
+ aList.add(GT_LanguageManager.addStringLocalization(new StringBuilder().append(getUnlocalizedName()).append(".configuration").toString(), "Configuration: ") + getConfigurationString(getDamage(aStack)));
+ }
+
+ public String getUnlocalizedName(ItemStack aStack)
+ {
+ return getUnlocalizedName();
+ }
+
+ @SideOnly(Side.CLIENT)
+ public final void getSubItems(Item var1, CreativeTabs aCreativeTab, List aList)
+ {
+ aList.add(new ItemStack(this, 1, 0));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister aIconRegister)
+ {
+ super.registerIcons(aIconRegister);
+ if (GregTech_API.sPostloadFinished)
+ {
+ GT_Log.out.println("GT_Mod: Starting Item Icon Load Phase");
+ System.out.println("GT_Mod: Starting Item Icon Load Phase");
+ GregTech_API.sItemIcons = aIconRegister;
+ for (Runnable tRunnable : GregTech_API.sGTItemIconload) {
+ try
+ {
+ tRunnable.run();
+ }
+ catch (Throwable e)
+ {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ GT_Log.out.println("GT_Mod: Finished Item Icon Load Phase");
+ System.out.println("GT_Mod: Finished Item Icon Load Phase");
+ }
+ }
+
+ private static String getModeString(int aMetaData)
+ {
+ switch ((byte)(aMetaData >>> 8))
+ {
+ case 0:
+ return "==";
+ case 1:
+ return "<=";
+ case 2:
+ return ">=";
+ case 3:
+ return "<";
+ case 4:
+ return ">";
+ }
+ return "";
+ }
+
+ private static String getConfigurationString(int aMetaData)
+ {
+ return getModeString(aMetaData) + " " + (byte)(aMetaData & 0xFF);
+ }
+}
/* 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/items/GT_MetaGenerated_Item_01.java b/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java index 638236dd20..273de13eac 100644 --- a/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java +++ b/main/java/gregtech/common/items/GT_MetaGenerated_Item_01.java @@ -1,378 +1,378 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.items;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ConfigCategories.Recipes;
-/* 5: */ import gregtech.api.enums.Dyes;
-/* 6: */ import gregtech.api.enums.GT_Values;
-/* 7: */ import gregtech.api.enums.ItemList;
-/* 8: */ import gregtech.api.enums.Materials;
-/* 9: */ import gregtech.api.enums.OreDictNames;
-/* 10: */ import gregtech.api.enums.OrePrefixes;
-/* 11: */ import gregtech.api.enums.SubTag;
-/* 12: */ import gregtech.api.enums.TC_Aspects;
-/* 13: */ import gregtech.api.enums.TC_Aspects.TC_AspectStack;
+import gregtech.api.enums.ConfigCategories.Recipes;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OreDictNames;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.SubTag;
+import gregtech.api.enums.TC_Aspects;
+import gregtech.api.enums.TC_Aspects.TC_AspectStack;
import gregtech.api.enums.Textures;
-/* 14: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 15: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 16: */ import gregtech.api.interfaces.ITexture;
-/* 17: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder;
-/* 18: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 19: */ import gregtech.api.items.GT_MetaGenerated_Item_X32;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.internal.IGT_RecipeAdder;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Item_X32;
import gregtech.api.objects.GT_ItemStack;
-/* 20: */ import gregtech.api.objects.GT_MultiTexture;
-/* 21: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 22: */ import gregtech.api.objects.ItemData;
-/* 23: */ import gregtech.api.objects.MaterialStack;
-/* 24: */ import gregtech.api.util.GT_Config;
-/* 25: */ import gregtech.api.util.GT_FoodStat;
-/* 26: */ import gregtech.api.util.GT_LanguageManager;
-/* 27: */ import gregtech.api.util.GT_ModHandler;
-/* 28: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
-/* 29: */ import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.objects.GT_MultiTexture;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_Config;
+import gregtech.api.util.GT_FoodStat;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler.RecipeBits;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;
-/* 30: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 31: */ import gregtech.common.covers.GT_Cover_Arm;
-/* 32: */ import gregtech.common.covers.GT_Cover_ControlsWork;
-/* 33: */ import gregtech.common.covers.GT_Cover_Conveyor;
-/* 34: */ import gregtech.common.covers.GT_Cover_Crafting;
-/* 35: */ import gregtech.common.covers.GT_Cover_DoesWork;
-/* 36: */ import gregtech.common.covers.GT_Cover_Drain;
-/* 37: */ import gregtech.common.covers.GT_Cover_EUMeter;
-/* 38: */ import gregtech.common.covers.GT_Cover_ItemMeter;
-/* 39: */ import gregtech.common.covers.GT_Cover_LiquidMeter;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import gregtech.common.covers.GT_Cover_Arm;
+import gregtech.common.covers.GT_Cover_ControlsWork;
+import gregtech.common.covers.GT_Cover_Conveyor;
+import gregtech.common.covers.GT_Cover_Crafting;
+import gregtech.common.covers.GT_Cover_DoesWork;
+import gregtech.common.covers.GT_Cover_Drain;
+import gregtech.common.covers.GT_Cover_EUMeter;
+import gregtech.common.covers.GT_Cover_ItemMeter;
+import gregtech.common.covers.GT_Cover_LiquidMeter;
import gregtech.common.covers.GT_Cover_NeedMaintainance;
import gregtech.common.covers.GT_Cover_PlayerDetector;
-/* 40: */ import gregtech.common.covers.GT_Cover_Pump;
+import gregtech.common.covers.GT_Cover_Pump;
import gregtech.common.covers.GT_Cover_RedstoneReceiverExternal;
import gregtech.common.covers.GT_Cover_RedstoneReceiverInternal;
import gregtech.common.covers.GT_Cover_RedstoneTransmitterExternal;
import gregtech.common.covers.GT_Cover_RedstoneTransmitterInternal;
-/* 41: */ import gregtech.common.covers.GT_Cover_Screen;
-/* 42: */ import gregtech.common.covers.GT_Cover_Shutter;
-/* 43: */ import gregtech.common.covers.GT_Cover_SolarPanel;
-/* 44: */ import gregtech.common.items.behaviors.Behaviour_Arrow_Potion;
-/* 45: */ import gregtech.common.items.behaviors.Behaviour_DataOrb;
-/* 46: */ import gregtech.common.items.behaviors.Behaviour_DataStick;
-/* 47: */ import gregtech.common.items.behaviors.Behaviour_Lighter;
-/* 48: */ import gregtech.common.items.behaviors.Behaviour_PrintedPages;
-/* 49: */ import gregtech.common.items.behaviors.Behaviour_Scanner;
-/* 50: */ import gregtech.common.items.behaviors.Behaviour_SensorKit;
-/* 51: */ import gregtech.common.items.behaviors.Behaviour_Sonictron;
-/* 52: */ import gregtech.common.items.behaviors.Behaviour_Spray_Color;
-/* 53: */ import gregtech.common.items.behaviors.Behaviour_WrittenBook;
+import gregtech.common.covers.GT_Cover_Screen;
+import gregtech.common.covers.GT_Cover_Shutter;
+import gregtech.common.covers.GT_Cover_SolarPanel;
+import gregtech.common.items.behaviors.Behaviour_Arrow_Potion;
+import gregtech.common.items.behaviors.Behaviour_DataOrb;
+import gregtech.common.items.behaviors.Behaviour_DataStick;
+import gregtech.common.items.behaviors.Behaviour_Lighter;
+import gregtech.common.items.behaviors.Behaviour_PrintedPages;
+import gregtech.common.items.behaviors.Behaviour_Scanner;
+import gregtech.common.items.behaviors.Behaviour_SensorKit;
+import gregtech.common.items.behaviors.Behaviour_Sonictron;
+import gregtech.common.items.behaviors.Behaviour_Spray_Color;
+import gregtech.common.items.behaviors.Behaviour_WrittenBook;
-/* 54: */ import java.util.List;
+import java.util.List;
import cpw.mods.fml.common.Loader;
-/* 55: */ import net.minecraft.block.Block;
-/* 56: */ import net.minecraft.enchantment.Enchantment;
-/* 57: */ import net.minecraft.entity.item.EntityItem;
-/* 58: */ import net.minecraft.init.Blocks;
-/* 59: */ import net.minecraft.init.Items;
-/* 60: */ import net.minecraft.item.EnumAction;
-/* 61: */ import net.minecraft.item.ItemStack;
-/* 62: */ import net.minecraft.potion.Potion;
-/* 63: */ import net.minecraft.util.MathHelper;
-/* 64: */ import net.minecraft.world.World;
+import net.minecraft.block.Block;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.EnumAction;
+import net.minecraft.item.ItemStack;
+import net.minecraft.potion.Potion;
+import net.minecraft.util.MathHelper;
+import net.minecraft.world.World;
import net.minecraftforge.common.ForgeModContainer;
-/* 65: */
-/* 66: */ public class GT_MetaGenerated_Item_01
-/* 67: */ extends GT_MetaGenerated_Item_X32
-/* 68: */ {
-/* 69: */ public static GT_MetaGenerated_Item_01 INSTANCE;
-/* 70: 36 */ private final String mToolTipPurify = GT_LanguageManager.addStringLocalization("metaitem.01.tooltip.purify", "Throw into Cauldron to get clean Dust");
-/* 71: */
-/* 72: */ public GT_MetaGenerated_Item_01()
-/* 73: */ {
-/* 74: 39 */ super("metaitem.01", new OrePrefixes[] { OrePrefixes.dustTiny, OrePrefixes.dustSmall, OrePrefixes.dust, OrePrefixes.dustImpure, OrePrefixes.dustPure, OrePrefixes.crushed, OrePrefixes.crushedPurified, OrePrefixes.crushedCentrifuged, OrePrefixes.gem, OrePrefixes.nugget, null, OrePrefixes.ingot, OrePrefixes.ingotHot, OrePrefixes.ingotDouble, OrePrefixes.ingotTriple, OrePrefixes.ingotQuadruple, OrePrefixes.ingotQuintuple, OrePrefixes.plate, OrePrefixes.plateDouble, OrePrefixes.plateTriple, OrePrefixes.plateQuadruple, OrePrefixes.plateQuintuple, OrePrefixes.plateDense, OrePrefixes.stick, OrePrefixes.lens, OrePrefixes.round, OrePrefixes.bolt, OrePrefixes.screw, OrePrefixes.ring, OrePrefixes.foil, OrePrefixes.cell, OrePrefixes.cellPlasma });
-/* 75: 40 */ INSTANCE = this;
-/* 76: */
-/* 77: 42 */ int tLastID = 0;
-/* 78: */
-/* 79: 44 */ setBurnValue(17000 + Materials.Wood.mMetaItemSubID, 1600);
-/* 80: 45 */ GT_OreDictUnificator.addToBlacklist(new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID));
-/* 81: 46 */ GT_ModHandler.addCompressionRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 8L), new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID));
-/* 82: 47 */ GregTech_API.registerCover(new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID), new GT_RenderedTexture(Textures.BlockIcons.COVER_WOOD_PLATE), null);
-/* 83: */
-/* 84: 49 */ ItemStack tStack = new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID);
-/* 85: 50 */ tStack.setStackDisplayName("The holy Planks of Sengir");
-/* 86: 51 */ GT_Utility.ItemNBT.addEnchantment(tStack, Enchantment.smite, 10);
-/* 87: 52 */ GT_ModHandler.addCraftingRecipe(tStack, GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XXX", "XDX", "XXX", Character.valueOf('X'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('D'), new ItemStack(Blocks.dragon_egg, 1, 32767) });
-/* 88: */
-/* 89: 54 */ ItemList.Credit_Greg_Copper.set(addItem(tLastID = 0, "Copper GT Credit", "0.125 Credits", new Object[0]));
-/* 90: 55 */ ItemList.Credit_Greg_Cupronickel.set(addItem(tLastID = 1, "Cupronickel GT Credit", "1 Credit", new Object[] { new ItemData(Materials.Cupronickel, 907200L, new MaterialStack[0]) }));
-/* 91: 56 */ ItemList.Credit_Greg_Silver.set(addItem(tLastID = 2, "Silver GT Credit", "8 Credits", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 92: 57 */ ItemList.Credit_Greg_Gold.set(addItem(tLastID = 3, "Gold GT Credit", "64 Credits", new Object[0]));
-/* 93: 58 */ ItemList.Credit_Greg_Platinum.set(addItem(tLastID = 4, "Platinum GT Credit", "512 Credits", new Object[0]));
-/* 94: 59 */ ItemList.Credit_Greg_Osmium.set(addItem(tLastID = 5, "Osmium GT Credit", "4096 Credits", new Object[0]));
-/* 95: 60 */ ItemList.Credit_Greg_Naquadah.set(addItem(tLastID = 6, "Naquadah GT Credit", "32768 Credits", new Object[0]));
-/* 96: 61 */ ItemList.Credit_Greg_Neutronium.set(addItem(tLastID = 7, "Neutronium GT Credit", "262144 Credits", new Object[0]));
-/* 97: 62 */ ItemList.Coin_Gold_Ancient.set(addItem(tLastID = 8, "Ancient Gold Coin", "Found in ancient Ruins", new Object[] { new ItemData(Materials.Gold, 907200L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 8L) }));
-/* 98: 63 */ ItemList.Coin_Doge.set(addItem(tLastID = 9, "Doge Coin", "wow much coin how money so crypto plz mine v rich very currency wow", new Object[] { new ItemData(Materials.Brass, 907200L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 99: 64 */ ItemList.Coin_Chocolate.set(addItem(tLastID = 10, "Chocolate Coin", "Wrapped in Gold", new Object[] { new ItemData(Materials.Gold, OrePrefixes.foil.mMaterialAmount, new MaterialStack[0]), new GT_FoodStat(1, 0.1F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, 1L), true, false, false, new int[] { Potion.moveSpeed.id, 200, 1, 100 }) }));
-/* 100: 65 */ ItemList.Credit_Copper.set(addItem(tLastID = 11, "Industrial Copper Credit", "0.125 Credits", new Object[0]));
-/* 101: */
-/* 102: 67 */ ItemList.Credit_Silver.set(addItem(tLastID = 13, "Industrial Silver Credit", "8 Credits", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 103: 68 */ ItemList.Credit_Gold.set(addItem(tLastID = 14, "Industrial Gold Credit", "64 Credits", new Object[0]));
-/* 104: 69 */ ItemList.Credit_Platinum.set(addItem(tLastID = 15, "Industrial Platinum Credit", "512 Credits", new Object[0]));
-/* 105: 70 */ ItemList.Credit_Osmium.set(addItem(tLastID = 16, "Industrial Osmium Credit", "4096 Credits", new Object[0]));
-/* 106: */
-/* 107: 72 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Coin_Chocolate.get(1L, new Object[0]), new Object[] { OrePrefixes.dust.get(Materials.Cocoa), OrePrefixes.dust.get(Materials.Milk), OrePrefixes.dust.get(Materials.Sugar), OrePrefixes.foil.get(Materials.Gold) });
-/* 108: */
-/* 109: 74 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Copper.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Iron });
-/* 110: 75 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Iron.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Silver });
-/* 111: 76 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Silver.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Gold });
-/* 112: 77 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Gold.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Platinum });
-/* 113: 78 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Platinum.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Osmium });
-/* 114: */
-/* 115: 80 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Iron.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper });
-/* 116: 81 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Silver.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron });
-/* 117: 82 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Gold.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver });
-/* 118: 83 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Platinum.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold });
-/* 119: 84 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Osmium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum });
-/* 120: */
-/* 121: 86 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Copper.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Cupronickel });
-/* 122: 87 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Cupronickel.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Silver });
-/* 123: 88 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Silver.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Gold });
-/* 124: 89 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Gold.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Platinum });
-/* 125: 90 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Platinum.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Osmium });
-/* 126: 91 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Osmium.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Naquadah });
-/* 127: 92 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Naquadah.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Neutronium });
-/* 128: */
-/* 129: 94 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Cupronickel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper });
-/* 130: 95 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Silver.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel });
-/* 131: 96 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Gold.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver });
-/* 132: 97 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Platinum.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold });
-/* 133: 98 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Osmium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum });
-/* 134: 99 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Naquadah.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium });
-/* 135:100 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Neutronium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah });
-/* 136: */
-/* 137:102 */ ItemList.Component_Minecart_Wheels_Iron.set(addItem(tLastID = 100, "Iron Minecart Wheels", "To get things rolling", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
-/* 138:103 */ ItemList.Component_Minecart_Wheels_Steel.set(addItem(tLastID = 101, "Steel Minecart Wheels", "To get things rolling", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
-/* 139: */
-/* 140:105 */ GT_ModHandler.addCraftingRecipe(ItemList.Component_Minecart_Wheels_Iron.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", "RSR", " w ", Character.valueOf('R'), OrePrefixes.ring.get(Materials.AnyIron), Character.valueOf('S'), OrePrefixes.stick.get(Materials.AnyIron) });
-/* 141:106 */ GT_ModHandler.addCraftingRecipe(ItemList.Component_Minecart_Wheels_Steel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", "RSR", " w ", Character.valueOf('R'), OrePrefixes.ring.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel) });
-/* 142: */
-/* 143:108 */ ItemList.Arrow_Head_Glass_Emtpy.set(addItem(tLastID = 200, "Empty Glass Arrow Head", "Fill with Potions before use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 144:109 */ ItemList.Arrow_Head_Glass_Poison.set(addItem(tLastID = 201, "Poison Glass Arrow Head", "Glass Arrow filled with Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 145:110 */ ItemList.Arrow_Head_Glass_Poison_Long.set(addItem(tLastID = 202, "Poison Glass Arrow Head", "Glass Arrow filled with stretched Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 146:111 */ ItemList.Arrow_Head_Glass_Poison_Strong.set(addItem(tLastID = 203, "Poison Glass Arrow Head", "Glass Arrow filled with strong Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 147:112 */ ItemList.Arrow_Head_Glass_Slowness.set(addItem(tLastID = 204, "Slowness Glass Arrow Head", "Glass Arrow filled with Laming Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 148:113 */ ItemList.Arrow_Head_Glass_Slowness_Long.set(addItem(tLastID = 205, "Slowness Glass Arrow Head", "Glass Arrow filled with stretched Laming Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 149:114 */ ItemList.Arrow_Head_Glass_Weakness.set(addItem(tLastID = 206, "Weakness Glass Arrow Head", "Glass Arrow filled with Weakening Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 150:115 */ ItemList.Arrow_Head_Glass_Weakness_Long.set(addItem(tLastID = 207, "Weakness Glass Arrow Head", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 151:116 */ ItemList.Arrow_Head_Glass_Holy_Water.set(addItem(tLastID = 208, "Holy Water Glass Arrow Head", "Glass Arrow filled with Holy Water", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
-/* 152: */
-/* 153:118 */ ItemList.Arrow_Wooden_Glass_Emtpy.set(addItem(tLastID = 225, "Regular Glass Vial Arrow", "Empty Glass Arrow", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 154:119 */ ItemList.Arrow_Wooden_Glass_Poison.set(addItem(tLastID = 226, "Regular Poison Arrow", "Glass Arrow filled with Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 450, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 155:120 */ ItemList.Arrow_Wooden_Glass_Poison_Long.set(addItem(tLastID = 227, "Regular Poison Arrow", "Glass Arrow filled with stretched Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 156:121 */ ItemList.Arrow_Wooden_Glass_Poison_Strong.set(addItem(tLastID = 228, "Regular Poison Arrow", "Glass Arrow filled with strong Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 450, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 157:122 */ ItemList.Arrow_Wooden_Glass_Slowness.set(addItem(tLastID = 229, "Regular Slowness Arrow", "Glass Arrow filled with Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.moveSlowdown.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 158:123 */ ItemList.Arrow_Wooden_Glass_Slowness_Long.set(addItem(tLastID = 230, "Regular Slowness Arrow", "Glass Arrow filled with stretched Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.moveSlowdown.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 159:124 */ ItemList.Arrow_Wooden_Glass_Weakness.set(addItem(tLastID = 231, "Regular Weakness Arrow", "Glass Arrow filled with Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.weakness.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 160:125 */ ItemList.Arrow_Wooden_Glass_Weakness_Long.set(addItem(tLastID = 232, "Regular Weakness Arrow", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.weakness.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 161:126 */ ItemList.Arrow_Wooden_Glass_Holy_Water.set(addItem(tLastID = 233, "Regular Holy Water Arrow", "Glass Arrow filled with Holy Water", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, Enchantment.smite, 10, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
-/* 162: */
-/* 163:128 */ ItemList.Arrow_Plastic_Glass_Emtpy.set(addItem(tLastID = 250, "Light Glass Vial Arrow", "Empty Glass Arrow", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 164:129 */ ItemList.Arrow_Plastic_Glass_Poison.set(addItem(tLastID = 251, "Light Poison Arrow", "Glass Arrow filled with Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 450, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 165:130 */ ItemList.Arrow_Plastic_Glass_Poison_Long.set(addItem(tLastID = 252, "Light Poison Arrow", "Glass Arrow filled with stretched Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 166:131 */ ItemList.Arrow_Plastic_Glass_Poison_Strong.set(addItem(tLastID = 253, "Light Poison Arrow", "Glass Arrow filled with strong Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 450, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 167:132 */ ItemList.Arrow_Plastic_Glass_Slowness.set(addItem(tLastID = 254, "Light Slowness Arrow", "Glass Arrow filled with Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.moveSlowdown.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 168:133 */ ItemList.Arrow_Plastic_Glass_Slowness_Long.set(addItem(tLastID = 255, "Light Slowness Arrow", "Glass Arrow filled with stretched Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.moveSlowdown.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 169:134 */ ItemList.Arrow_Plastic_Glass_Weakness.set(addItem(tLastID = 256, "Light Weakness Arrow", "Glass Arrow filled with Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.weakness.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 170:135 */ ItemList.Arrow_Plastic_Glass_Weakness_Long.set(addItem(tLastID = 257, "Light Weakness Arrow", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.weakness.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
-/* 171:136 */ ItemList.Arrow_Plastic_Glass_Holy_Water.set(addItem(tLastID = 258, "Light Holy Water Arrow", "Glass Arrow filled with Holy Water", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, Enchantment.smite, 10, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
-/* 172: */
-/* 173:138 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Emtpy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Emtpy, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 174:139 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 175:140 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 176:141 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Strong, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 177:142 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Slowness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 178:143 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 179:144 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Weakness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 180:145 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 181:146 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Holy_Water, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* 182: */
-/* 183:148 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Emtpy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Emtpy, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 184:149 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 185:150 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 186:151 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Strong, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 187:152 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Slowness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 188:153 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 189:154 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Weakness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 190:155 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 191:156 */ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Holy_Water, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* 192: */
-/* 193:158 */ ItemList.Shape_Empty.set(addItem(tLastID = 300, "Empty Shape Plate", "Raw Plate to make Molds and Extruder Shapes", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L) }));
-/* 194: */
-/* 195:160 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Empty.get(1L, new Object[0]), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hf", "PP", "PP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) });
-/* 196: */
-/* 197:162 */ ItemList.Shape_Mold_Plate.set(addItem(tLastID = 301, "Mold (Plate)", "Mold for making Plates", new Object[0]));
-/* 198:163 */ ItemList.Shape_Mold_Casing.set(addItem(tLastID = 302, "Mold (Casing)", "Mold for making Item Casings", new Object[0]));
-/* 199:164 */ ItemList.Shape_Mold_Gear.set(addItem(tLastID = 303, "Mold (Gear)", "Mold for making Gears", new Object[0]));
-/* 200:165 */ ItemList.Shape_Mold_Credit.set(addItem(tLastID = 304, "Mold (Coinage)", "Secure Mold for making Coins (Don't lose it!)", new Object[0]));
-/* 201:166 */ ItemList.Shape_Mold_Bottle.set(addItem(tLastID = 305, "Mold (Bottle)", "Mold for making Bottles", new Object[0]));
-/* 202:167 */ ItemList.Shape_Mold_Ingot.set(addItem(tLastID = 306, "Mold (Ingot)", "Mold for making Ingots", new Object[0]));
-/* 203:168 */ ItemList.Shape_Mold_Ball.set(addItem(tLastID = 307, "Mold (Ball)", "Mold for making Balls", new Object[0]));
-/* 204:169 */ ItemList.Shape_Mold_Block.set(addItem(tLastID = 308, "Mold (Block)", "Mold for making Blocks", new Object[0]));
-/* 205:170 */ ItemList.Shape_Mold_Nugget.set(addItem(tLastID = 309, "Mold (Nuggets)", "Mold for making Nuggets", new Object[0]));
-/* 206:171 */ ItemList.Shape_Mold_Bun.set(addItem(tLastID = 310, "Mold (Buns)", "Mold for shaping Buns", new Object[0]));
-/* 207:172 */ ItemList.Shape_Mold_Bread.set(addItem(tLastID = 311, "Mold (Bread)", "Mold for shaping Breads", new Object[0]));
-/* 208:173 */ ItemList.Shape_Mold_Baguette.set(addItem(tLastID = 312, "Mold (Baguette)", "Mold for shaping Baguettes", new Object[0]));
-/* 209:174 */ ItemList.Shape_Mold_Cylinder.set(addItem(tLastID = 313, "Mold (Cylinder)", "Mold for shaping Cylinders", new Object[0]));
-/* 210:175 */ ItemList.Shape_Mold_Anvil.set(addItem(tLastID = 314, "Mold (Anvil)", "Mold for shaping Anvils", new Object[0]));
-/* 211:176 */ ItemList.Shape_Mold_Name.set(addItem(tLastID = 315, "Mold (Name)", "Mold for naming Items (rename Mold with Anvil)", new Object[0]));
-/* 212:177 */ ItemList.Shape_Mold_Arrow.set(addItem(tLastID = 316, "Mold (Arrow Head)", "Mold for making Arrow Heads", new Object[0]));
-/* 213:178 */ ItemList.Shape_Mold_Gear_Small.set(addItem(tLastID = 317, "Mold (Small Gear)", "Mold for making small Gears", new Object[0]));
-/* 214: */
-/* 215:180 */ GT_ModHandler.removeRecipe(new ItemStack[] { new ItemStack(Blocks.glass), null, new ItemStack(Blocks.glass), null, new ItemStack(Blocks.glass) });
-/* 216: */
-/* 217:182 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Credit.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "h ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 218:183 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Plate.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 219:184 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Casing.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 220:185 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Gear.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " Ph", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 221:186 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bottle.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 222:187 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Ingot.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 223:188 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Ball.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", "h ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 224:189 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Block.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "hP ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 225: */
-/* 226:191 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Nugget.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P h", " ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 227:192 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bun.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " h", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 228:193 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bread.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 229:194 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Baguette.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 230:195 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Cylinder.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 231:196 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Anvil.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 232:197 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Name.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", "h ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 233:198 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Arrow.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", "h ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 234:199 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Gear_Small.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " ", "h P", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 235: */
-/* 236:201 */ ItemList.Shape_Extruder_Plate.set(addItem(tLastID = 350, "Extruder Shape (Plate)", "Extruder Shape for making Plates", new Object[0]));
-/* 237:202 */ ItemList.Shape_Extruder_Rod.set(addItem(tLastID = 351, "Extruder Shape (Rod)", "Extruder Shape for making Rods", new Object[0]));
-/* 238:203 */ ItemList.Shape_Extruder_Bolt.set(addItem(tLastID = 352, "Extruder Shape (Bolt)", "Extruder Shape for making Bolts", new Object[0]));
-/* 239:204 */ ItemList.Shape_Extruder_Ring.set(addItem(tLastID = 353, "Extruder Shape (Ring)", "Extruder Shape for making Rings", new Object[0]));
-/* 240:205 */ ItemList.Shape_Extruder_Cell.set(addItem(tLastID = 354, "Extruder Shape (Cell)", "Extruder Shape for making Cells", new Object[0]));
-/* 241:206 */ ItemList.Shape_Extruder_Ingot.set(addItem(tLastID = 355, "Extruder Shape (Ingot)", "Extruder Shape for, wait, can't we just use a Furnace?", new Object[0]));
-/* 242:207 */ ItemList.Shape_Extruder_Wire.set(addItem(tLastID = 356, "Extruder Shape (Wire)", "Extruder Shape for making Wires", new Object[0]));
-/* 243:208 */ ItemList.Shape_Extruder_Casing.set(addItem(tLastID = 357, "Extruder Shape (Casing)", "Extruder Shape for making Item Casings", new Object[0]));
-/* 244:209 */ ItemList.Shape_Extruder_Pipe_Tiny.set(addItem(tLastID = 358, "Extruder Shape (Tiny Pipe)", "Extruder Shape for making tiny Pipes", new Object[0]));
-/* 245:210 */ ItemList.Shape_Extruder_Pipe_Small.set(addItem(tLastID = 359, "Extruder Shape (Small Pipe)", "Extruder Shape for making small Pipes", new Object[0]));
-/* 246:211 */ ItemList.Shape_Extruder_Pipe_Medium.set(addItem(tLastID = 360, "Extruder Shape (Normal Pipe)", "Extruder Shape for making Pipes", new Object[0]));
-/* 247:212 */ ItemList.Shape_Extruder_Pipe_Large.set(addItem(tLastID = 361, "Extruder Shape (Large Pipe)", "Extruder Shape for making large Pipes", new Object[0]));
-/* 248:213 */ ItemList.Shape_Extruder_Pipe_Huge.set(addItem(tLastID = 362, "Extruder Shape (Huge Pipe)", "Extruder Shape for making full Block Pipes", new Object[0]));
-/* 249:214 */ ItemList.Shape_Extruder_Block.set(addItem(tLastID = 363, "Extruder Shape (Block)", "Extruder Shape for making Blocks", new Object[0]));
-/* 250:215 */ ItemList.Shape_Extruder_Sword.set(addItem(tLastID = 364, "Extruder Shape (Sword Blade)", "Extruder Shape for making Swords", new Object[0]));
-/* 251:216 */ ItemList.Shape_Extruder_Pickaxe.set(addItem(tLastID = 365, "Extruder Shape (Pickaxe Head)", "Extruder Shape for making Pickaxes", new Object[0]));
-/* 252:217 */ ItemList.Shape_Extruder_Shovel.set(addItem(tLastID = 366, "Extruder Shape (Shovel Head)", "Extruder Shape for making Shovels", new Object[0]));
-/* 253:218 */ ItemList.Shape_Extruder_Axe.set(addItem(tLastID = 367, "Extruder Shape (Axe Head)", "Extruder Shape for making Axes", new Object[0]));
-/* 254:219 */ ItemList.Shape_Extruder_Hoe.set(addItem(tLastID = 368, "Extruder Shape (Hoe Head)", "Extruder Shape for making Hoes", new Object[0]));
-/* 255:220 */ ItemList.Shape_Extruder_Hammer.set(addItem(tLastID = 369, "Extruder Shape (Hammer Head)", "Extruder Shape for making Hammers", new Object[0]));
-/* 256:221 */ ItemList.Shape_Extruder_File.set(addItem(tLastID = 370, "Extruder Shape (File Head)", "Extruder Shape for making Files", new Object[0]));
-/* 257:222 */ ItemList.Shape_Extruder_Saw.set(addItem(tLastID = 371, "Extruder Shape (Saw Blade)", "Extruder Shape for making Saws", new Object[0]));
-/* 258:223 */ ItemList.Shape_Extruder_Gear.set(addItem(tLastID = 372, "Extruder Shape (Gear)", "Extruder Shape for making Gears", new Object[0]));
-/* 259:224 */ ItemList.Shape_Extruder_Bottle.set(addItem(tLastID = 373, "Extruder Shape (Bottle)", "Extruder Shape for making Bottles", new Object[0]));
-/* 260: */
-/* 261:226 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Bolt.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 262:227 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Cell.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 263:228 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Ingot.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 264:229 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Ring.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " Px", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 265:230 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Rod.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 266:231 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Wire.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 267:232 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Casing.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", "x ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 268:233 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Plate.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "xP ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 269: */
-/* 270:235 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Block.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P x", " ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 271:236 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Small.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " x", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 272:237 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Large.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 273:238 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Medium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 274:239 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Sword.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 275:240 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pickaxe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 276:241 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Shovel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", "x ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 277:242 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Axe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", "x ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 278:243 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Hoe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " ", "x P", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 279:244 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Hammer.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "x ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 280:245 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_File.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 281:246 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Saw.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 282:247 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Gear.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 283:248 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Tiny.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 284:249 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Huge.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 285:250 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Bottle.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " x", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
-/* 286: */
-/* 287:252 */ ItemList.Shape_Slicer_Flat.set(addItem(tLastID = 398, "Slicer Blade (Flat)", "Slicer Blade for cutting Flat", new Object[0]));
-/* 288:253 */ ItemList.Shape_Slicer_Stripes.set(addItem(tLastID = 399, "Slicer Blade (Stripes)", "Slicer Blade for cutting Stripes", new Object[0]));
-/* 289: */
-/* 290:255 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Slicer_Flat.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hXS", " P ", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Block, Character.valueOf('X'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel) });
-/* 291:256 */ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Slicer_Stripes.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Block, Character.valueOf('X'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel) });
-/* 292: */
-/* 293:258 */ ItemList.Fuel_Can_Plastic_Empty.set(addItem(tLastID = 400, "Empty Plastic Fuel Can", "Used to store Fuels", new Object[] { new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
-/* 294:259 */ ItemList.Fuel_Can_Plastic_Filled.set(addItem(tLastID = 401, "Plastic Fuel Can", "Burns well in Diesel Generators", new Object[] { new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
-/* 295: */
-/* 296:261 */ GT_ModHandler.addCraftingRecipe(ItemList.Fuel_Can_Plastic_Empty.get(7L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " PP", "P P", "PPP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Plastic) });
-/* 297: */
-/* 298:263 */ ItemList.Spray_Empty.set(addItem(tLastID = 402, "Empty Spray Can", "Used for making Sprays", new Object[] { new ItemData(Materials.Tin, OrePrefixes.plate.mMaterialAmount * 2L, Materials.Redstone, OrePrefixes.dust.mMaterialAmount), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
-/* 299: */
-/* 300:265 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), ItemList.Spray_Empty.get(1L, new Object[0]), 800, 1);
-/* 301: */
-/* 302:267 */ ItemList.Crate_Empty.set(addItem(tLastID = 403, "Empty Crate", "To Package lots of Material", new Object[] { new ItemData(Materials.Wood, 3628800L, Materials.Iron, OrePrefixes.screw.mMaterialAmount), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) }));
-/* 303: */
-/* 304:269 */ GT_ModHandler.addCraftingRecipe(ItemList.Crate_Empty.get(4L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "SWS", "WdW", "SWS", Character.valueOf('W'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.screw.get(Materials.AnyIron) });
-/* 305:270 */ GT_ModHandler.addCraftingRecipe(ItemList.Crate_Empty.get(4L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "SWS", "WdW", "SWS", Character.valueOf('W'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Steel) });
-/* 306: */
-/* 307:272 */ ItemList.ThermosCan_Empty.set(addItem(tLastID = 404, "Empty Thermos Can", "Keeping hot things hot and cold things cold", new Object[] { new ItemData(Materials.Aluminium, OrePrefixes.plate.mMaterialAmount * 1L + 2L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L) }));
-/* 308: */
-/* 309:274 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Aluminium, 2L), ItemList.ThermosCan_Empty.get(1L, new Object[0]), 800, 1);
-/* 310: */
-/* 311:276 */ ItemList.Large_Fluid_Cell_Steel.set(addItem(tLastID = 405, "Large Steel Fluid Cell", "", new Object[] { new ItemData(Materials.Steel, OrePrefixes.plate.mMaterialAmount * 8L + 4L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 312:277 */ setFluidContainerStats(32000 + tLastID, 16000L, 4L);
-/* 313: */
-/* 314:279 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Steel, 4L), ItemList.Large_Fluid_Cell_Steel.get(1L, new Object[0]), 100, 64);
-/* 315: */
-/* 316:281 */ ItemList.Large_Fluid_Cell_TungstenSteel.set(addItem(tLastID = 406, "Large Tungstensteel Fluid Cell", "", new Object[] { new ItemData(Materials.TungstenSteel, OrePrefixes.plate.mMaterialAmount * 8L + 4L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 6L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L) }));
-/* 317:282 */ setFluidContainerStats(32000 + tLastID, 64000L, 4L);
-/* 318: */
-/* 319:284 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.TungstenSteel, 4L), ItemList.Large_Fluid_Cell_TungstenSteel.get(1L, new Object[0]), 200, 256);
-/* 320:288 */ for (byte i = 0; i < 16; i = (byte)(i + 1))
-/* 321: */ {
-/* 322:289 */ ItemList.SPRAY_CAN_DYES[i].set(addItem(tLastID = 430 + 2 * i, "Spray Can (" + Dyes.get(i).mName + ")", "Full", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
-/* 323:290 */ ItemList.SPRAY_CAN_DYES_USED[i].set(addItem(tLastID + 1, "Spray Can (" + Dyes.get(i).mName + ")", "Used", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 3L), SubTag.INVISIBLE }));
-/* 324:291 */ IItemBehaviour<GT_MetaBase_Item> tBehaviour = new Behaviour_Spray_Color(ItemList.Spray_Empty.get(1L, new Object[0]), ItemList.SPRAY_CAN_DYES_USED[i].get(1L, new Object[0]), ItemList.SPRAY_CAN_DYES[i].get(1L, new Object[0]), 512L, i);
-/* 325:292 */ addItemBehavior(32000 + tLastID, tBehaviour);
-/* 326:293 */ addItemBehavior(32001 + tLastID, tBehaviour);
-/* 327: */ }
-/* 328:296 */ ItemList.Tool_Matches.set(addItem(tLastID = 471, "Match", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 329:297 */ ItemList.Tool_MatchBox_Used.set(addItem(tLastID = 472, "Match Box", "This is not a Car", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
-/* 330:298 */ ItemList.Tool_MatchBox_Full.set(addItem(tLastID = 473, "Match Box (Full)", "This is not a Car", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 331: */
-/* 332:300 */ IItemBehaviour<GT_MetaBase_Item> tBehaviour = new Behaviour_Lighter(null, ItemList.Tool_Matches.get(1L, new Object[0]), ItemList.Tool_Matches.get(1L, new Object[0]), 1L);
-/* 333:301 */ addItemBehavior(32471, tBehaviour);
-/* 334:302 */ tBehaviour = new Behaviour_Lighter(null, ItemList.Tool_MatchBox_Used.get(1L, new Object[0]), ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), 16L);
-/* 335:303 */ addItemBehavior(32472, tBehaviour);addItemBehavior(32473, tBehaviour);
-/* 336: */
-/* 337:305 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphor, 1L), ItemList.Tool_Matches.get(1L, new Object[0]), 16, 16);
-/* 338:306 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1L), ItemList.Tool_Matches.get(1L, new Object[0]), 16, 16);
-/* 339:307 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphor, 1L), ItemList.Tool_Matches.get(4L, new Object[0]), 64, 16);
-/* 340:308 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L), ItemList.Tool_Matches.get(4L, new Object[0]), 64, 16);
-/* 341:309 */ GT_Values.RA.addBoxingRecipe(ItemList.Tool_Matches.get(16L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L), ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), 64, 16);
-/* 342:310 */ GT_Values.RA.addUnboxingRecipe(ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), ItemList.Tool_Matches.get(16L, new Object[0]), null, 32, 16);
-/* 343: */
-/* 344:312 */ ItemList.Tool_Lighter_Invar_Empty.set(addItem(tLastID = 474, "Lighter (Empty)", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 345:313 */ ItemList.Tool_Lighter_Invar_Used.set(addItem(tLastID = 475, "Lighter", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
-/* 346:314 */ ItemList.Tool_Lighter_Invar_Full.set(addItem(tLastID = 476, "Lighter (Full)", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 347: */
-/* 348:316 */ tBehaviour = new Behaviour_Lighter(ItemList.Tool_Lighter_Invar_Empty.get(1L, new Object[0]), ItemList.Tool_Lighter_Invar_Used.get(1L, new Object[0]), ItemList.Tool_Lighter_Invar_Full.get(1L, new Object[0]), 100L);
-/* 349:317 */ addItemBehavior(32475, tBehaviour);addItemBehavior(32476, tBehaviour);
-/* 350: */
-/* 351:319 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 2L), new ItemStack(Items.flint, 1), ItemList.Tool_Lighter_Invar_Empty.get(1L, new Object[0]), 256, 16);
-/* 352: */
-/* 353:321 */ ItemList.Tool_Lighter_Platinum_Empty.set(addItem(tLastID = 477, "Platinum Lighter (Empty)", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 354:322 */ ItemList.Tool_Lighter_Platinum_Used.set(addItem(tLastID = 478, "Platinum Lighter", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
-/* 355:323 */ ItemList.Tool_Lighter_Platinum_Full.set(addItem(tLastID = 479, "Platinum Lighter (Full)", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 356: */
-/* 357:325 */ tBehaviour = new Behaviour_Lighter(ItemList.Tool_Lighter_Platinum_Empty.get(1L, new Object[0]), ItemList.Tool_Lighter_Platinum_Used.get(1L, new Object[0]), ItemList.Tool_Lighter_Platinum_Full.get(1L, new Object[0]), 1000L);
-/* 358:326 */ addItemBehavior(32478, tBehaviour);addItemBehavior(32479, tBehaviour);
-/* 359: */
-/* 360:328 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Platinum, 2L), new ItemStack(Items.flint, 1), ItemList.Tool_Lighter_Platinum_Empty.get(1L, new Object[0]), 256, 256);
-/* 361: */
+
+public class GT_MetaGenerated_Item_01
+ extends GT_MetaGenerated_Item_X32
+{
+ public static GT_MetaGenerated_Item_01 INSTANCE;
+ private final String mToolTipPurify = GT_LanguageManager.addStringLocalization("metaitem.01.tooltip.purify", "Throw into Cauldron to get clean Dust");
+
+ public GT_MetaGenerated_Item_01()
+ {
+ super("metaitem.01", new OrePrefixes[] { OrePrefixes.dustTiny, OrePrefixes.dustSmall, OrePrefixes.dust, OrePrefixes.dustImpure, OrePrefixes.dustPure, OrePrefixes.crushed, OrePrefixes.crushedPurified, OrePrefixes.crushedCentrifuged, OrePrefixes.gem, OrePrefixes.nugget, null, OrePrefixes.ingot, OrePrefixes.ingotHot, OrePrefixes.ingotDouble, OrePrefixes.ingotTriple, OrePrefixes.ingotQuadruple, OrePrefixes.ingotQuintuple, OrePrefixes.plate, OrePrefixes.plateDouble, OrePrefixes.plateTriple, OrePrefixes.plateQuadruple, OrePrefixes.plateQuintuple, OrePrefixes.plateDense, OrePrefixes.stick, OrePrefixes.lens, OrePrefixes.round, OrePrefixes.bolt, OrePrefixes.screw, OrePrefixes.ring, OrePrefixes.foil, OrePrefixes.cell, OrePrefixes.cellPlasma });
+ INSTANCE = this;
+
+ int tLastID = 0;
+
+ setBurnValue(17000 + Materials.Wood.mMetaItemSubID, 1600);
+ GT_OreDictUnificator.addToBlacklist(new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID));
+ GT_ModHandler.addCompressionRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 8L), new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID));
+ GregTech_API.registerCover(new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID), new GT_RenderedTexture(Textures.BlockIcons.COVER_WOOD_PLATE), null);
+
+ ItemStack tStack = new ItemStack(this, 1, 17000 + Materials.Wood.mMetaItemSubID);
+ tStack.setStackDisplayName("The holy Planks of Sengir");
+ GT_Utility.ItemNBT.addEnchantment(tStack, Enchantment.smite, 10);
+ GT_ModHandler.addCraftingRecipe(tStack, GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "XXX", "XDX", "XXX", Character.valueOf('X'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('D'), new ItemStack(Blocks.dragon_egg, 1, 32767) });
+
+ ItemList.Credit_Greg_Copper.set(addItem(tLastID = 0, "Copper GT Credit", "0.125 Credits", new Object[0]));
+ ItemList.Credit_Greg_Cupronickel.set(addItem(tLastID = 1, "Cupronickel GT Credit", "1 Credit", new Object[] { new ItemData(Materials.Cupronickel, 907200L, new MaterialStack[0]) }));
+ ItemList.Credit_Greg_Silver.set(addItem(tLastID = 2, "Silver GT Credit", "8 Credits", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Credit_Greg_Gold.set(addItem(tLastID = 3, "Gold GT Credit", "64 Credits", new Object[0]));
+ ItemList.Credit_Greg_Platinum.set(addItem(tLastID = 4, "Platinum GT Credit", "512 Credits", new Object[0]));
+ ItemList.Credit_Greg_Osmium.set(addItem(tLastID = 5, "Osmium GT Credit", "4096 Credits", new Object[0]));
+ ItemList.Credit_Greg_Naquadah.set(addItem(tLastID = 6, "Naquadah GT Credit", "32768 Credits", new Object[0]));
+ ItemList.Credit_Greg_Neutronium.set(addItem(tLastID = 7, "Neutronium GT Credit", "262144 Credits", new Object[0]));
+ ItemList.Coin_Gold_Ancient.set(addItem(tLastID = 8, "Ancient Gold Coin", "Found in ancient Ruins", new Object[] { new ItemData(Materials.Gold, 907200L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 8L) }));
+ ItemList.Coin_Doge.set(addItem(tLastID = 9, "Doge Coin", "wow much coin how money so crypto plz mine v rich very currency wow", new Object[] { new ItemData(Materials.Brass, 907200L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Coin_Chocolate.set(addItem(tLastID = 10, "Chocolate Coin", "Wrapped in Gold", new Object[] { new ItemData(Materials.Gold, OrePrefixes.foil.mMaterialAmount, new MaterialStack[0]), new GT_FoodStat(1, 0.1F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Gold, 1L), true, false, false, new int[] { Potion.moveSpeed.id, 200, 1, 100 }) }));
+ ItemList.Credit_Copper.set(addItem(tLastID = 11, "Industrial Copper Credit", "0.125 Credits", new Object[0]));
+
+ ItemList.Credit_Silver.set(addItem(tLastID = 13, "Industrial Silver Credit", "8 Credits", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Credit_Gold.set(addItem(tLastID = 14, "Industrial Gold Credit", "64 Credits", new Object[0]));
+ ItemList.Credit_Platinum.set(addItem(tLastID = 15, "Industrial Platinum Credit", "512 Credits", new Object[0]));
+ ItemList.Credit_Osmium.set(addItem(tLastID = 16, "Industrial Osmium Credit", "4096 Credits", new Object[0]));
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Coin_Chocolate.get(1L, new Object[0]), new Object[] { OrePrefixes.dust.get(Materials.Cocoa), OrePrefixes.dust.get(Materials.Milk), OrePrefixes.dust.get(Materials.Sugar), OrePrefixes.foil.get(Materials.Gold) });
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Copper.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Iron });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Iron.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Silver });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Silver.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Gold });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Gold.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Platinum });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Platinum.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Osmium });
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Iron.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper, ItemList.Credit_Copper });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Silver.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron, ItemList.Credit_Iron });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Gold.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver, ItemList.Credit_Silver });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Platinum.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold, ItemList.Credit_Gold });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Osmium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum, ItemList.Credit_Platinum });
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Copper.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Cupronickel });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Cupronickel.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Silver });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Silver.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Gold });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Gold.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Platinum });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Platinum.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Osmium });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Osmium.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Naquadah });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Naquadah.get(8L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Neutronium });
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Cupronickel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper, ItemList.Credit_Greg_Copper });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Silver.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel, ItemList.Credit_Greg_Cupronickel });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Gold.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver, ItemList.Credit_Greg_Silver });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Platinum.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold, ItemList.Credit_Greg_Gold });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Osmium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum, ItemList.Credit_Greg_Platinum });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Naquadah.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium, ItemList.Credit_Greg_Osmium });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Credit_Greg_Neutronium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.KEEPNBT | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah, ItemList.Credit_Greg_Naquadah });
+
+ ItemList.Component_Minecart_Wheels_Iron.set(addItem(tLastID = 100, "Iron Minecart Wheels", "To get things rolling", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
+ ItemList.Component_Minecart_Wheels_Steel.set(addItem(tLastID = 101, "Steel Minecart Wheels", "To get things rolling", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Component_Minecart_Wheels_Iron.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", "RSR", " w ", Character.valueOf('R'), OrePrefixes.ring.get(Materials.AnyIron), Character.valueOf('S'), OrePrefixes.stick.get(Materials.AnyIron) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Component_Minecart_Wheels_Steel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", "RSR", " w ", Character.valueOf('R'), OrePrefixes.ring.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel) });
+
+ ItemList.Arrow_Head_Glass_Emtpy.set(addItem(tLastID = 200, "Empty Glass Arrow Head", "Fill with Potions before use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Arrow_Head_Glass_Poison.set(addItem(tLastID = 201, "Poison Glass Arrow Head", "Glass Arrow filled with Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Poison_Long.set(addItem(tLastID = 202, "Poison Glass Arrow Head", "Glass Arrow filled with stretched Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Poison_Strong.set(addItem(tLastID = 203, "Poison Glass Arrow Head", "Glass Arrow filled with strong Poison", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Slowness.set(addItem(tLastID = 204, "Slowness Glass Arrow Head", "Glass Arrow filled with Laming Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Slowness_Long.set(addItem(tLastID = 205, "Slowness Glass Arrow Head", "Glass Arrow filled with stretched Laming Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Weakness.set(addItem(tLastID = 206, "Weakness Glass Arrow Head", "Glass Arrow filled with Weakening Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Weakness_Long.set(addItem(tLastID = 207, "Weakness Glass Arrow Head", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Head_Glass_Holy_Water.set(addItem(tLastID = 208, "Holy Water Glass Arrow Head", "Glass Arrow filled with Holy Water", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
+
+ ItemList.Arrow_Wooden_Glass_Emtpy.set(addItem(tLastID = 225, "Regular Glass Vial Arrow", "Empty Glass Arrow", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Poison.set(addItem(tLastID = 226, "Regular Poison Arrow", "Glass Arrow filled with Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 450, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Poison_Long.set(addItem(tLastID = 227, "Regular Poison Arrow", "Glass Arrow filled with stretched Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Poison_Strong.set(addItem(tLastID = 228, "Regular Poison Arrow", "Glass Arrow filled with strong Poison", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.poison.id, 450, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Slowness.set(addItem(tLastID = 229, "Regular Slowness Arrow", "Glass Arrow filled with Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.moveSlowdown.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Slowness_Long.set(addItem(tLastID = 230, "Regular Slowness Arrow", "Glass Arrow filled with stretched Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.moveSlowdown.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Weakness.set(addItem(tLastID = 231, "Regular Weakness Arrow", "Glass Arrow filled with Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.weakness.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Weakness_Long.set(addItem(tLastID = 232, "Regular Weakness Arrow", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, new int[] { Potion.weakness.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Wooden_Glass_Holy_Water.set(addItem(tLastID = 233, "Regular Holy Water Arrow", "Glass Arrow filled with Holy Water", new Object[] { new Behaviour_Arrow_Potion(1.0F, 6.0F, Enchantment.smite, 10, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
+
+ ItemList.Arrow_Plastic_Glass_Emtpy.set(addItem(tLastID = 250, "Light Glass Vial Arrow", "Empty Glass Arrow", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Poison.set(addItem(tLastID = 251, "Light Poison Arrow", "Glass Arrow filled with Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 450, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Poison_Long.set(addItem(tLastID = 252, "Light Poison Arrow", "Glass Arrow filled with stretched Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Poison_Strong.set(addItem(tLastID = 253, "Light Poison Arrow", "Glass Arrow filled with strong Poison", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.poison.id, 450, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Slowness.set(addItem(tLastID = 254, "Light Slowness Arrow", "Glass Arrow filled with Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.moveSlowdown.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Slowness_Long.set(addItem(tLastID = 255, "Light Slowness Arrow", "Glass Arrow filled with stretched Laming Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.moveSlowdown.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Weakness.set(addItem(tLastID = 256, "Light Weakness Arrow", "Glass Arrow filled with Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.weakness.id, 900, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Weakness_Long.set(addItem(tLastID = 257, "Light Weakness Arrow", "Glass Arrow filled with stretched Weakening Brew", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, new int[] { Potion.weakness.id, 1800, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L) }));
+ ItemList.Arrow_Plastic_Glass_Holy_Water.set(addItem(tLastID = 258, "Light Holy Water Arrow", "Glass Arrow filled with Holy Water", new Object[] { new Behaviour_Arrow_Potion(1.5F, 6.0F, Enchantment.smite, 10, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Emtpy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Emtpy, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Poison_Strong.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Strong, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Slowness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Slowness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Weakness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Weakness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Wooden_Glass_Holy_Water.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Holy_Water, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Emtpy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Emtpy, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Poison_Strong.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Poison_Strong, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Slowness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Slowness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Slowness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Weakness.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Weakness_Long.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Weakness_Long, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Arrow_Plastic_Glass_Holy_Water.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " A", " S ", "F ", Character.valueOf('A'), ItemList.Arrow_Head_Glass_Holy_Water, Character.valueOf('F'), OreDictNames.craftingFeather, Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+
+ ItemList.Shape_Empty.set(addItem(tLastID = 300, "Empty Shape Plate", "Raw Plate to make Molds and Extruder Shapes", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Empty.get(1L, new Object[0]), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hf", "PP", "PP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) });
+
+ ItemList.Shape_Mold_Plate.set(addItem(tLastID = 301, "Mold (Plate)", "Mold for making Plates", new Object[0]));
+ ItemList.Shape_Mold_Casing.set(addItem(tLastID = 302, "Mold (Casing)", "Mold for making Item Casings", new Object[0]));
+ ItemList.Shape_Mold_Gear.set(addItem(tLastID = 303, "Mold (Gear)", "Mold for making Gears", new Object[0]));
+ ItemList.Shape_Mold_Credit.set(addItem(tLastID = 304, "Mold (Coinage)", "Secure Mold for making Coins (Don't lose it!)", new Object[0]));
+ ItemList.Shape_Mold_Bottle.set(addItem(tLastID = 305, "Mold (Bottle)", "Mold for making Bottles", new Object[0]));
+ ItemList.Shape_Mold_Ingot.set(addItem(tLastID = 306, "Mold (Ingot)", "Mold for making Ingots", new Object[0]));
+ ItemList.Shape_Mold_Ball.set(addItem(tLastID = 307, "Mold (Ball)", "Mold for making Balls", new Object[0]));
+ ItemList.Shape_Mold_Block.set(addItem(tLastID = 308, "Mold (Block)", "Mold for making Blocks", new Object[0]));
+ ItemList.Shape_Mold_Nugget.set(addItem(tLastID = 309, "Mold (Nuggets)", "Mold for making Nuggets", new Object[0]));
+ ItemList.Shape_Mold_Bun.set(addItem(tLastID = 310, "Mold (Buns)", "Mold for shaping Buns", new Object[0]));
+ ItemList.Shape_Mold_Bread.set(addItem(tLastID = 311, "Mold (Bread)", "Mold for shaping Breads", new Object[0]));
+ ItemList.Shape_Mold_Baguette.set(addItem(tLastID = 312, "Mold (Baguette)", "Mold for shaping Baguettes", new Object[0]));
+ ItemList.Shape_Mold_Cylinder.set(addItem(tLastID = 313, "Mold (Cylinder)", "Mold for shaping Cylinders", new Object[0]));
+ ItemList.Shape_Mold_Anvil.set(addItem(tLastID = 314, "Mold (Anvil)", "Mold for shaping Anvils", new Object[0]));
+ ItemList.Shape_Mold_Name.set(addItem(tLastID = 315, "Mold (Name)", "Mold for naming Items (rename Mold with Anvil)", new Object[0]));
+ ItemList.Shape_Mold_Arrow.set(addItem(tLastID = 316, "Mold (Arrow Head)", "Mold for making Arrow Heads", new Object[0]));
+ ItemList.Shape_Mold_Gear_Small.set(addItem(tLastID = 317, "Mold (Small Gear)", "Mold for making small Gears", new Object[0]));
+
+ GT_ModHandler.removeRecipe(new ItemStack[] { new ItemStack(Blocks.glass), null, new ItemStack(Blocks.glass), null, new ItemStack(Blocks.glass) });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Credit.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "h ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Plate.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Casing.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " h", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Gear.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " Ph", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bottle.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Ingot.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Ball.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", "h ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Block.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "hP ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Nugget.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P h", " ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bun.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " h", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Bread.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Baguette.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Cylinder.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " h", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Anvil.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " h ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Name.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", "h ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Arrow.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", "h ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Mold_Gear_Small.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " ", "h P", Character.valueOf('P'), ItemList.Shape_Empty });
+
+ ItemList.Shape_Extruder_Plate.set(addItem(tLastID = 350, "Extruder Shape (Plate)", "Extruder Shape for making Plates", new Object[0]));
+ ItemList.Shape_Extruder_Rod.set(addItem(tLastID = 351, "Extruder Shape (Rod)", "Extruder Shape for making Rods", new Object[0]));
+ ItemList.Shape_Extruder_Bolt.set(addItem(tLastID = 352, "Extruder Shape (Bolt)", "Extruder Shape for making Bolts", new Object[0]));
+ ItemList.Shape_Extruder_Ring.set(addItem(tLastID = 353, "Extruder Shape (Ring)", "Extruder Shape for making Rings", new Object[0]));
+ ItemList.Shape_Extruder_Cell.set(addItem(tLastID = 354, "Extruder Shape (Cell)", "Extruder Shape for making Cells", new Object[0]));
+ ItemList.Shape_Extruder_Ingot.set(addItem(tLastID = 355, "Extruder Shape (Ingot)", "Extruder Shape for, wait, can't we just use a Furnace?", new Object[0]));
+ ItemList.Shape_Extruder_Wire.set(addItem(tLastID = 356, "Extruder Shape (Wire)", "Extruder Shape for making Wires", new Object[0]));
+ ItemList.Shape_Extruder_Casing.set(addItem(tLastID = 357, "Extruder Shape (Casing)", "Extruder Shape for making Item Casings", new Object[0]));
+ ItemList.Shape_Extruder_Pipe_Tiny.set(addItem(tLastID = 358, "Extruder Shape (Tiny Pipe)", "Extruder Shape for making tiny Pipes", new Object[0]));
+ ItemList.Shape_Extruder_Pipe_Small.set(addItem(tLastID = 359, "Extruder Shape (Small Pipe)", "Extruder Shape for making small Pipes", new Object[0]));
+ ItemList.Shape_Extruder_Pipe_Medium.set(addItem(tLastID = 360, "Extruder Shape (Normal Pipe)", "Extruder Shape for making Pipes", new Object[0]));
+ ItemList.Shape_Extruder_Pipe_Large.set(addItem(tLastID = 361, "Extruder Shape (Large Pipe)", "Extruder Shape for making large Pipes", new Object[0]));
+ ItemList.Shape_Extruder_Pipe_Huge.set(addItem(tLastID = 362, "Extruder Shape (Huge Pipe)", "Extruder Shape for making full Block Pipes", new Object[0]));
+ ItemList.Shape_Extruder_Block.set(addItem(tLastID = 363, "Extruder Shape (Block)", "Extruder Shape for making Blocks", new Object[0]));
+ ItemList.Shape_Extruder_Sword.set(addItem(tLastID = 364, "Extruder Shape (Sword Blade)", "Extruder Shape for making Swords", new Object[0]));
+ ItemList.Shape_Extruder_Pickaxe.set(addItem(tLastID = 365, "Extruder Shape (Pickaxe Head)", "Extruder Shape for making Pickaxes", new Object[0]));
+ ItemList.Shape_Extruder_Shovel.set(addItem(tLastID = 366, "Extruder Shape (Shovel Head)", "Extruder Shape for making Shovels", new Object[0]));
+ ItemList.Shape_Extruder_Axe.set(addItem(tLastID = 367, "Extruder Shape (Axe Head)", "Extruder Shape for making Axes", new Object[0]));
+ ItemList.Shape_Extruder_Hoe.set(addItem(tLastID = 368, "Extruder Shape (Hoe Head)", "Extruder Shape for making Hoes", new Object[0]));
+ ItemList.Shape_Extruder_Hammer.set(addItem(tLastID = 369, "Extruder Shape (Hammer Head)", "Extruder Shape for making Hammers", new Object[0]));
+ ItemList.Shape_Extruder_File.set(addItem(tLastID = 370, "Extruder Shape (File Head)", "Extruder Shape for making Files", new Object[0]));
+ ItemList.Shape_Extruder_Saw.set(addItem(tLastID = 371, "Extruder Shape (Saw Blade)", "Extruder Shape for making Saws", new Object[0]));
+ ItemList.Shape_Extruder_Gear.set(addItem(tLastID = 372, "Extruder Shape (Gear)", "Extruder Shape for making Gears", new Object[0]));
+ ItemList.Shape_Extruder_Bottle.set(addItem(tLastID = 373, "Extruder Shape (Bottle)", "Extruder Shape for making Bottles", new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Bolt.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Cell.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Ingot.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x", " P ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Ring.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " Px", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Rod.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Wire.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Casing.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " P ", "x ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Plate.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "xP ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Block.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P x", " ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Small.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " x", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Large.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Medium.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P ", " ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Sword.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " x", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pickaxe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", " x ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Shovel.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", " ", "x ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Axe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " P", "x ", " ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Hoe.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " ", "x P", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Hammer.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", "x ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_File.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Saw.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " ", " P", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Gear.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "x ", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Tiny.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x ", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Pipe_Huge.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " x", " ", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Extruder_Bottle.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " ", " x", "P ", Character.valueOf('P'), ItemList.Shape_Empty });
+
+ ItemList.Shape_Slicer_Flat.set(addItem(tLastID = 398, "Slicer Blade (Flat)", "Slicer Blade for cutting Flat", new Object[0]));
+ ItemList.Shape_Slicer_Stripes.set(addItem(tLastID = 399, "Slicer Blade (Stripes)", "Slicer Blade for cutting Stripes", new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Slicer_Flat.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hXS", " P ", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Block, Character.valueOf('X'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Shape_Slicer_Stripes.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "hXS", "XPX", "fXd", Character.valueOf('P'), ItemList.Shape_Extruder_Block, Character.valueOf('X'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel) });
+
+ ItemList.Fuel_Can_Plastic_Empty.set(addItem(tLastID = 400, "Empty Plastic Fuel Can", "Used to store Fuels", new Object[] { new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
+ ItemList.Fuel_Can_Plastic_Filled.set(addItem(tLastID = 401, "Plastic Fuel Can", "Burns well in Diesel Generators", new Object[] { new ItemData(Materials.Plastic, OrePrefixes.plate.mMaterialAmount * 1L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Fuel_Can_Plastic_Empty.get(7L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " PP", "P P", "PPP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Plastic) });
+
+ ItemList.Spray_Empty.set(addItem(tLastID = 402, "Empty Spray Can", "Used for making Sprays", new Object[] { new ItemData(Materials.Tin, OrePrefixes.plate.mMaterialAmount * 2L, Materials.Redstone, OrePrefixes.dust.mMaterialAmount), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), ItemList.Spray_Empty.get(1L, new Object[0]), 800, 1);
+
+ ItemList.Crate_Empty.set(addItem(tLastID = 403, "Empty Crate", "To Package lots of Material", new Object[] { new ItemData(Materials.Wood, 3628800L, Materials.Iron, OrePrefixes.screw.mMaterialAmount), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Crate_Empty.get(4L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "SWS", "WdW", "SWS", Character.valueOf('W'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.screw.get(Materials.AnyIron) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Crate_Empty.get(4L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "SWS", "WdW", "SWS", Character.valueOf('W'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Steel) });
+
+ ItemList.ThermosCan_Empty.set(addItem(tLastID = 404, "Empty Thermos Can", "Keeping hot things hot and cold things cold", new Object[] { new ItemData(Materials.Aluminium, OrePrefixes.plate.mMaterialAmount * 1L + 2L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L) }));
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Aluminium, 2L), ItemList.ThermosCan_Empty.get(1L, new Object[0]), 800, 1);
+
+ ItemList.Large_Fluid_Cell_Steel.set(addItem(tLastID = 405, "Large Steel Fluid Cell", "", new Object[] { new ItemData(Materials.Steel, OrePrefixes.plate.mMaterialAmount * 8L + 4L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+ setFluidContainerStats(32000 + tLastID, 16000L, 4L);
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 8L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.Steel, 4L), ItemList.Large_Fluid_Cell_Steel.get(1L, new Object[0]), 100, 64);
+
+ ItemList.Large_Fluid_Cell_TungstenSteel.set(addItem(tLastID = 406, "Large Tungstensteel Fluid Cell", "", new Object[] { new ItemData(Materials.TungstenSteel, OrePrefixes.plate.mMaterialAmount * 8L + 4L * OrePrefixes.ring.mMaterialAmount, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 6L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 3L) }));
+ setFluidContainerStats(32000 + tLastID, 64000L, 4L);
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.TungstenSteel, 8L), GT_OreDictUnificator.get(OrePrefixes.ring, Materials.TungstenSteel, 4L), ItemList.Large_Fluid_Cell_TungstenSteel.get(1L, new Object[0]), 200, 256);
+ for (byte i = 0; i < 16; i = (byte)(i + 1))
+ {
+ ItemList.SPRAY_CAN_DYES[i].set(addItem(tLastID = 430 + 2 * i, "Spray Can (" + Dyes.get(i).mName + ")", "Full", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
+ ItemList.SPRAY_CAN_DYES_USED[i].set(addItem(tLastID + 1, "Spray Can (" + Dyes.get(i).mName + ")", "Used", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 3L), SubTag.INVISIBLE }));
+ IItemBehaviour<GT_MetaBase_Item> tBehaviour = new Behaviour_Spray_Color(ItemList.Spray_Empty.get(1L, new Object[0]), ItemList.SPRAY_CAN_DYES_USED[i].get(1L, new Object[0]), ItemList.SPRAY_CAN_DYES[i].get(1L, new Object[0]), 512L, i);
+ addItemBehavior(32000 + tLastID, tBehaviour);
+ addItemBehavior(32001 + tLastID, tBehaviour);
+ }
+ ItemList.Tool_Matches.set(addItem(tLastID = 471, "Match", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Tool_MatchBox_Used.set(addItem(tLastID = 472, "Match Box", "This is not a Car", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
+ ItemList.Tool_MatchBox_Full.set(addItem(tLastID = 473, "Match Box (Full)", "This is not a Car", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+
+ IItemBehaviour<GT_MetaBase_Item> tBehaviour = new Behaviour_Lighter(null, ItemList.Tool_Matches.get(1L, new Object[0]), ItemList.Tool_Matches.get(1L, new Object[0]), 1L);
+ addItemBehavior(32471, tBehaviour);
+ tBehaviour = new Behaviour_Lighter(null, ItemList.Tool_MatchBox_Used.get(1L, new Object[0]), ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), 16L);
+ addItemBehavior(32472, tBehaviour);addItemBehavior(32473, tBehaviour);
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphor, 1L), ItemList.Tool_Matches.get(1L, new Object[0]), 16, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 1L), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Phosphorus, 1L), ItemList.Tool_Matches.get(1L, new Object[0]), 16, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphor, 1L), ItemList.Tool_Matches.get(4L, new Object[0]), 64, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.bolt, Materials.Wood, 4L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Phosphorus, 1L), ItemList.Tool_Matches.get(4L, new Object[0]), 64, 16);
+ GT_Values.RA.addBoxingRecipe(ItemList.Tool_Matches.get(16L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plateDouble, Materials.Paper, 1L), ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), 64, 16);
+ GT_Values.RA.addUnboxingRecipe(ItemList.Tool_MatchBox_Full.get(1L, new Object[0]), ItemList.Tool_Matches.get(16L, new Object[0]), null, 32, 16);
+
+ ItemList.Tool_Lighter_Invar_Empty.set(addItem(tLastID = 474, "Lighter (Empty)", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Tool_Lighter_Invar_Used.set(addItem(tLastID = 475, "Lighter", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
+ ItemList.Tool_Lighter_Invar_Full.set(addItem(tLastID = 476, "Lighter (Full)", "", new Object[] { new ItemData(Materials.Invar, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+
+ tBehaviour = new Behaviour_Lighter(ItemList.Tool_Lighter_Invar_Empty.get(1L, new Object[0]), ItemList.Tool_Lighter_Invar_Used.get(1L, new Object[0]), ItemList.Tool_Lighter_Invar_Full.get(1L, new Object[0]), 100L);
+ addItemBehavior(32475, tBehaviour);addItemBehavior(32476, tBehaviour);
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Invar, 2L), new ItemStack(Items.flint, 1), ItemList.Tool_Lighter_Invar_Empty.get(1L, new Object[0]), 256, 16);
+
+ ItemList.Tool_Lighter_Platinum_Empty.set(addItem(tLastID = 477, "Platinum Lighter (Empty)", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Tool_Lighter_Platinum_Used.set(addItem(tLastID = 478, "Platinum Lighter", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), SubTag.INVISIBLE }));
+ ItemList.Tool_Lighter_Platinum_Full.set(addItem(tLastID = 479, "Platinum Lighter (Full)", "A known Prank Master is engraved on it", new Object[] { new ItemData(Materials.Platinum, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+
+ tBehaviour = new Behaviour_Lighter(ItemList.Tool_Lighter_Platinum_Empty.get(1L, new Object[0]), ItemList.Tool_Lighter_Platinum_Used.get(1L, new Object[0]), ItemList.Tool_Lighter_Platinum_Full.get(1L, new Object[0]), 1000L);
+ addItemBehavior(32478, tBehaviour);addItemBehavior(32479, tBehaviour);
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Platinum, 2L), new ItemStack(Items.flint, 1), ItemList.Tool_Lighter_Platinum_Empty.get(1L, new Object[0]), 256, 256);
+
if(Loader.isModLoaded("GalacticraftMars")){
ItemList.Ingot_Heavy1.set(addItem(tLastID = 462, "Heavy Duty Alloy Ingot", "Used to make Heavy Duty Plates", new Object[0]));
ItemList.Ingot_Heavy2.set(addItem(tLastID = 463, "Heavy Duty Alloy Ingot T2", "Used to make Heavy Duty Plates T2", new Object[0]));
@@ -385,412 +385,412 @@ import net.minecraftforge.common.ForgeModContainer; GT_ModHandler.addCraftingRecipe(ItemList.Ingot_Heavy3.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " BB", "hPC", " BB", 'B', OrePrefixes.bolt.get(Materials.TungstenSteel), 'C', OrePrefixes.compressed.get(Materials.Desh), 'P', GT_ModHandler.getModItem("GalacticraftMars", "item.null", 1L,3)});
GT_Values.RA.addImplosionRecipe(ItemList.Ingot_Heavy3.get(1L, new Object[0]), 8, GT_ModHandler.getModItem("GalacticraftMars", "item.itemBasicAsteroids", 1L), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.TungstenSteel, 2L));
}
-/* 362:330 */ ItemList.Ingot_IridiumAlloy.set(addItem(tLastID = 480, "Iridium Alloy Ingot", "Used to make Iridium Plates", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L) }));
-/* 363: */
-/* 364:332 */ GT_ModHandler.addRollingMachineRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), new Object[] { "IAI", "ADA", "IAI", Character.valueOf('D'), GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "iridiumplate", true) ? OreDictNames.craftingIndustrialDiamond : OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('A'), OrePrefixes.plateAlloy.get("Advanced"), Character.valueOf('I'), OrePrefixes.plate.get(Materials.Iridium) });
-/* 365:333 */ GT_ModHandler.addCraftingRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "IAI", "ADA", "IAI", Character.valueOf('D'), GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "iridiumplate", true) ? OreDictNames.craftingIndustrialDiamond : OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('A'), OrePrefixes.plateAlloy.get("Advanced"), Character.valueOf('I'), OrePrefixes.plate.get(Materials.Iridium) });
-/* 366:334 */ GT_Values.RA.addImplosionRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), 8, GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Iridium, 1L), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L));
-/* 367: */
-/* 368:336 */ ItemList.Paper_Printed_Pages.set(addItem(tLastID = 481, "Printed Pages", "Used to make written Books", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), new Behaviour_PrintedPages(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 369:337 */ ItemList.Paper_Magic_Empty.set(addItem(tLastID = 482, "Magic Paper", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 3628800L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 1L) }));
-/* 370:338 */ ItemList.Paper_Magic_Page.set(addItem(tLastID = 483, "Enchanted Page", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 3628800L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 2L) }));
-/* 371:339 */ ItemList.Paper_Magic_Pages.set(addItem(tLastID = 484, "Enchanted Pages", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 4L) }));
-/* 372:340 */ ItemList.Paper_Punch_Card_Empty.set(addItem(tLastID = 485, "Punch Card", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L) }));
-/* 373:341 */ ItemList.Paper_Punch_Card_Encoded.set(addItem(tLastID = 486, "Punched Card", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 374:342 */ ItemList.Book_Written_01.set(addItem(tLastID = 487, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 375:343 */ ItemList.Book_Written_02.set(addItem(tLastID = 488, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 376:344 */ ItemList.Book_Written_03.set(addItem(tLastID = 489, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 377: */
-/* 378:346 */ ItemList.Schematic.set(addItem(tLastID = 490, "Schematic", "EMPTY", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 1L) }));
-/* 379:347 */ ItemList.Schematic_Crafting.set(addItem(tLastID = 491, "Schematic (Crafting)", "Crafts the Programmed Recipe", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
-/* 380:348 */ ItemList.Schematic_1by1.set(addItem(tLastID = 495, "Schematic (1x1)", "Crafts 1 Items as 1x1 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
-/* 381:349 */ ItemList.Schematic_2by2.set(addItem(tLastID = 496, "Schematic (2x2)", "Crafts 4 Items as 2x2 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
-/* 382:350 */ ItemList.Schematic_3by3.set(addItem(tLastID = 497, "Schematic (3x3)", "Crafts 9 Items as 3x3 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
-/* 383:351 */ ItemList.Schematic_Dust.set(addItem(tLastID = 498, "Schematic (Dusts)", "Combines Dusts (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
-/* 384: */
-/* 385:353 */ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_1by1.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
-/* 386:354 */ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_2by2.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
-/* 387:355 */ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_3by3.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
-/* 388:356 */ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_Dust.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d", Character.valueOf('P'), ItemList.Schematic });
-/* 389: */
-/* 390:358 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_Crafting });
-/* 391:359 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_1by1 });
-/* 392:360 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_2by2 });
-/* 393:361 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_3by3 });
-/* 394:362 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_Dust });
-/* 395: */
-/* 396:364 */ ItemList.Battery_Hull_LV.set(addItem(tLastID = 500, "Small Battery Hull", "An empty LV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 397:365 */ ItemList.Battery_Hull_MV.set(addItem(tLastID = 501, "Medium Battery Hull", "An empty MV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 6L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 398:366 */ ItemList.Battery_Hull_HV.set(addItem(tLastID = 502, "Large Battery Hull", "An empty HV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 18L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
-/* 399: */
-/* 400:368 */ GT_ModHandler.addCraftingRecipe(ItemList.Battery_Hull_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "C", "P", "P", Character.valueOf('P'), OrePrefixes.plate.get(Materials.BatteryAlloy), Character.valueOf('C'), OreDictNames.craftingWireTin });
-/* 401:369 */ GT_ModHandler.addCraftingRecipe(ItemList.Battery_Hull_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "C C", "PPP", "PPP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.BatteryAlloy), Character.valueOf('C'), OreDictNames.craftingWireCopper });
-/* 402: */
-/* 403:371 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), 800, 1);
-/* 404:372 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 6L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), 1600, 2);
-/* 405:373 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 6L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), 1600, 2);
-/* 406:374 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 4L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 18L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), 3200, 4);
-/* 407: */
-/* 408:376 */ ItemList.Battery_RE_ULV_Tantalum.set(addItem(tLastID = 499, "Tantalum Capacitor", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
-/* 409:377 */ setElectricStats(32000 + tLastID, 1000L, GT_Values.V[0], 0L, -3L, false);
-/* 410: */
-/* 411:379 */ ItemList.Battery_SU_LV_SulfuricAcid.set(addItem(tLastID = 510, "Small Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 412:380 */ setElectricStats(32000 + tLastID, 12000L, GT_Values.V[1], 1L, -2L, true);
-/* 413:381 */ ItemList.Battery_SU_LV_Mercury.set(addItem(tLastID = 511, "Small Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 414:382 */ setElectricStats(32000 + tLastID, 32000L, GT_Values.V[1], 1L, -2L, true);
-/* 415: */
-/* 416:384 */ ItemList.Battery_RE_LV_Cadmium.set(addItem(tLastID = 517, "Small Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
-/* 417:385 */ setElectricStats(32000 + tLastID, 75000L, GT_Values.V[1], 1L, -3L, true);
-/* 418:386 */ ItemList.Battery_RE_LV_Lithium.set(addItem(tLastID = 518, "Small Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
-/* 419:387 */ setElectricStats(32000 + tLastID, 100000L, GT_Values.V[1], 1L, -3L, true);
-/* 420:388 */ ItemList.Battery_RE_LV_Sodium.set(addItem(tLastID = 519, "Small Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
-/* 421:389 */ setElectricStats(32000 + tLastID, 50000L, GT_Values.V[1], 1L, -3L, true);
-/* 422: */
-/* 423:391 */ ItemList.Battery_SU_MV_SulfuricAcid.set(addItem(tLastID = 520, "Medium Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
-/* 424:392 */ setElectricStats(32000 + tLastID, 48000L, GT_Values.V[2], 2L, -2L, true);
-/* 425:393 */ ItemList.Battery_SU_MV_Mercury.set(addItem(tLastID = 521, "Medium Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
-/* 426:394 */ setElectricStats(32000 + tLastID, 128000L, GT_Values.V[2], 2L, -2L, true);
-/* 427: */
-/* 428:396 */ ItemList.Battery_RE_MV_Cadmium.set(addItem(tLastID = 527, "Medium Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 429:397 */ setElectricStats(32000 + tLastID, 300000L, GT_Values.V[2], 2L, -3L, true);
-/* 430:398 */ ItemList.Battery_RE_MV_Lithium.set(addItem(tLastID = 528, "Medium Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 431:399 */ setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -3L, true);
-/* 432:400 */ ItemList.Battery_RE_MV_Sodium.set(addItem(tLastID = 529, "Medium Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 433:401 */ setElectricStats(32000 + tLastID, 200000L, GT_Values.V[2], 2L, -3L, true);
-/* 434: */
-/* 435:403 */ ItemList.Battery_SU_HV_SulfuricAcid.set(addItem(tLastID = 530, "Large Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L) }));
-/* 436:404 */ setElectricStats(32000 + tLastID, 192000L, GT_Values.V[3], 3L, -2L, true);
-/* 437:405 */ ItemList.Battery_SU_HV_Mercury.set(addItem(tLastID = 531, "Large Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L) }));
-/* 438:406 */ setElectricStats(32000 + tLastID, 512000L, GT_Values.V[3], 3L, -2L, true);
-/* 439: */
-/* 440:408 */ ItemList.Battery_RE_HV_Cadmium.set(addItem(tLastID = 537, "Large Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
-/* 441:409 */ setElectricStats(32000 + tLastID, 1200000L, GT_Values.V[3], 3L, -3L, true);
-/* 442:410 */ ItemList.Battery_RE_HV_Lithium.set(addItem(tLastID = 538, "Large Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
-/* 443:411 */ setElectricStats(32000 + tLastID, 1600000L, GT_Values.V[3], 3L, -3L, true);
-/* 444:412 */ ItemList.Battery_RE_HV_Sodium.set(addItem(tLastID = 539, "Large Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
-/* 445:413 */ setElectricStats(32000 + tLastID, 800000L, GT_Values.V[3], 3L, -3L, true);
-/* 446: */
-/* 447:415 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_LV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
-/* 448:416 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_LV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
-/* 449:417 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_MV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
-/* 450:418 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_MV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
-/* 451:419 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_HV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
-/* 452:420 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_HV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
-/* 453:421 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
-/* 454:422 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
-/* 455:423 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
-/* 456:424 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
-/* 457:425 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
-/* 458:426 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
-/* 459:427 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
-/* 460:428 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
-/* 461:429 */ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
-/* 462: */
-/* 463:431 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[0]), null, 100, 2);
-/* 464:432 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Lithium.get(1L, new Object[0]), null, 100, 2);
-/* 465:433 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Sodium.get(1L, new Object[0]), null, 100, 2);
-/* 466:434 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[0]), null, 400, 2);
-/* 467:435 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Lithium.get(1L, new Object[0]), null, 400, 2);
-/* 468:436 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Sodium.get(1L, new Object[0]), null, 400, 2);
-/* 469:437 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Cadmium.get(1L, new Object[0]), null, 1600, 2);
-/* 470:438 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Lithium.get(1L, new Object[0]), null, 1600, 2);
-/* 471:439 */ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Sodium.get(1L, new Object[0]), null, 1600, 2);
-/* 472: */
-/* 473:441 */ ItemList.Energy_LapotronicOrb.set(addItem(tLastID = 597, "Lapotronic Energy Orb", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), OrePrefixes.battery.get(Materials.Ultimate) }));
-/* 474:442 */ setElectricStats(32000 + tLastID, 100000000L, GT_Values.V[5], 5L, -3L, true);
-/* 475: */
-/* 476:444 */ ItemList.ZPM.set(addItem(tLastID = 598, "Zero Point Module", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L) }));
-/* 477:445 */ setElectricStats(32000 + tLastID, 2000000000000L, GT_Values.V[7], 7L, -2L, true);
-/* 478: */
+ ItemList.Ingot_IridiumAlloy.set(addItem(tLastID = 480, "Iridium Alloy Ingot", "Used to make Iridium Plates", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L) }));
+
+ GT_ModHandler.addRollingMachineRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), new Object[] { "IAI", "ADA", "IAI", Character.valueOf('D'), GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "iridiumplate", true) ? OreDictNames.craftingIndustrialDiamond : OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('A'), OrePrefixes.plateAlloy.get("Advanced"), Character.valueOf('I'), OrePrefixes.plate.get(Materials.Iridium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "IAI", "ADA", "IAI", Character.valueOf('D'), GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.harderrecipes, "iridiumplate", true) ? OreDictNames.craftingIndustrialDiamond : OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('A'), OrePrefixes.plateAlloy.get("Advanced"), Character.valueOf('I'), OrePrefixes.plate.get(Materials.Iridium) });
+ GT_Values.RA.addImplosionRecipe(ItemList.Ingot_IridiumAlloy.get(1L, new Object[0]), 8, GT_OreDictUnificator.get(OrePrefixes.plateAlloy, Materials.Iridium, 1L), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L));
+
+ ItemList.Paper_Printed_Pages.set(addItem(tLastID = 481, "Printed Pages", "Used to make written Books", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), new Behaviour_PrintedPages(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+ ItemList.Paper_Magic_Empty.set(addItem(tLastID = 482, "Magic Paper", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 3628800L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 1L) }));
+ ItemList.Paper_Magic_Page.set(addItem(tLastID = 483, "Enchanted Page", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 3628800L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 2L) }));
+ ItemList.Paper_Magic_Pages.set(addItem(tLastID = 484, "Enchanted Pages", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 4L) }));
+ ItemList.Paper_Punch_Card_Empty.set(addItem(tLastID = 485, "Punch Card", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L) }));
+ ItemList.Paper_Punch_Card_Encoded.set(addItem(tLastID = 486, "Punched Card", "", new Object[] { SubTag.INVISIBLE, new ItemData(Materials.Paper, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+ ItemList.Book_Written_01.set(addItem(tLastID = 487, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+ ItemList.Book_Written_02.set(addItem(tLastID = 488, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+ ItemList.Book_Written_03.set(addItem(tLastID = 489, "Book", "", new Object[] { new ItemData(Materials.Paper, 10886400L, new MaterialStack[0]), "bookWritten", OreDictNames.craftingBook, new Behaviour_WrittenBook(), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+
+ ItemList.Schematic.set(addItem(tLastID = 490, "Schematic", "EMPTY", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 1L) }));
+ ItemList.Schematic_Crafting.set(addItem(tLastID = 491, "Schematic (Crafting)", "Crafts the Programmed Recipe", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
+ ItemList.Schematic_1by1.set(addItem(tLastID = 495, "Schematic (1x1)", "Crafts 1 Items as 1x1 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
+ ItemList.Schematic_2by2.set(addItem(tLastID = 496, "Schematic (2x2)", "Crafts 4 Items as 2x2 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
+ ItemList.Schematic_3by3.set(addItem(tLastID = 497, "Schematic (3x3)", "Crafts 9 Items as 3x3 (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
+ ItemList.Schematic_Dust.set(addItem(tLastID = 498, "Schematic (Dusts)", "Combines Dusts (use in Packager)", new Object[] { new ItemData(Materials.StainlessSteel, 7257600L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_1by1.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "d ", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
+ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_2by2.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d ", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
+ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_3by3.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " d", " P ", " ", Character.valueOf('P'), ItemList.Schematic });
+ GT_ModHandler.addCraftingRecipe(ItemList.Schematic_Dust.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " ", " P ", " d", Character.valueOf('P'), ItemList.Schematic });
+
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_Crafting });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_1by1 });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_2by2 });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_3by3 });
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Schematic.get(1L, new Object[0]), GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Schematic_Dust });
+
+ ItemList.Battery_Hull_LV.set(addItem(tLastID = 500, "Small Battery Hull", "An empty LV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 2L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Battery_Hull_MV.set(addItem(tLastID = 501, "Medium Battery Hull", "An empty MV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 6L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+ ItemList.Battery_Hull_HV.set(addItem(tLastID = 502, "Large Battery Hull", "An empty HV Battery Hull", new Object[] { new ItemData(Materials.BatteryAlloy, OrePrefixes.plate.mMaterialAmount * 18L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 1L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Battery_Hull_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "C", "P", "P", Character.valueOf('P'), OrePrefixes.plate.get(Materials.BatteryAlloy), Character.valueOf('C'), OreDictNames.craftingWireTin });
+ GT_ModHandler.addCraftingRecipe(ItemList.Battery_Hull_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "C C", "PPP", "PPP", Character.valueOf('P'), OrePrefixes.plate.get(Materials.BatteryAlloy), Character.valueOf('C'), OreDictNames.craftingWireCopper });
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Tin, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), 800, 1);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Copper, 2L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 6L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.AnnealedCopper, 2L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 6L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.cableGt01, Materials.Gold, 4L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.BatteryAlloy, 18L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), 3200, 4);
+
+ ItemList.Battery_RE_ULV_Tantalum.set(addItem(tLastID = 499, "Tantalum Capacitor", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
+ setElectricStats(32000 + tLastID, 1000L, GT_Values.V[0], 0L, -3L, false);
+
+ ItemList.Battery_SU_LV_SulfuricAcid.set(addItem(tLastID = 510, "Small Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ setElectricStats(32000 + tLastID, 12000L, GT_Values.V[1], 1L, -2L, true);
+ ItemList.Battery_SU_LV_Mercury.set(addItem(tLastID = 511, "Small Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ setElectricStats(32000 + tLastID, 32000L, GT_Values.V[1], 1L, -2L, true);
+
+ ItemList.Battery_RE_LV_Cadmium.set(addItem(tLastID = 517, "Small Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
+ setElectricStats(32000 + tLastID, 75000L, GT_Values.V[1], 1L, -3L, true);
+ ItemList.Battery_RE_LV_Lithium.set(addItem(tLastID = 518, "Small Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
+ setElectricStats(32000 + tLastID, 100000L, GT_Values.V[1], 1L, -3L, true);
+ ItemList.Battery_RE_LV_Sodium.set(addItem(tLastID = 519, "Small Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), "calclavia:ADVANCED_BATTERY" }));
+ setElectricStats(32000 + tLastID, 50000L, GT_Values.V[1], 1L, -3L, true);
+
+ ItemList.Battery_SU_MV_SulfuricAcid.set(addItem(tLastID = 520, "Medium Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
+ setElectricStats(32000 + tLastID, 48000L, GT_Values.V[2], 2L, -2L, true);
+ ItemList.Battery_SU_MV_Mercury.set(addItem(tLastID = 521, "Medium Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
+ setElectricStats(32000 + tLastID, 128000L, GT_Values.V[2], 2L, -2L, true);
+
+ ItemList.Battery_RE_MV_Cadmium.set(addItem(tLastID = 527, "Medium Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ setElectricStats(32000 + tLastID, 300000L, GT_Values.V[2], 2L, -3L, true);
+ ItemList.Battery_RE_MV_Lithium.set(addItem(tLastID = 528, "Medium Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -3L, true);
+ ItemList.Battery_RE_MV_Sodium.set(addItem(tLastID = 529, "Medium Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ setElectricStats(32000 + tLastID, 200000L, GT_Values.V[2], 2L, -3L, true);
+
+ ItemList.Battery_SU_HV_SulfuricAcid.set(addItem(tLastID = 530, "Large Acid Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L) }));
+ setElectricStats(32000 + tLastID, 192000L, GT_Values.V[3], 3L, -2L, true);
+ ItemList.Battery_SU_HV_Mercury.set(addItem(tLastID = 531, "Large Mercury Battery", "Single Use", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L) }));
+ setElectricStats(32000 + tLastID, 512000L, GT_Values.V[3], 3L, -2L, true);
+
+ ItemList.Battery_RE_HV_Cadmium.set(addItem(tLastID = 537, "Large Cadmium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
+ setElectricStats(32000 + tLastID, 1200000L, GT_Values.V[3], 3L, -3L, true);
+ ItemList.Battery_RE_HV_Lithium.set(addItem(tLastID = 538, "Large Lithium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
+ setElectricStats(32000 + tLastID, 1600000L, GT_Values.V[3], 3L, -3L, true);
+ ItemList.Battery_RE_HV_Sodium.set(addItem(tLastID = 539, "Large Sodium Battery", "Reusable", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L) }));
+ setElectricStats(32000 + tLastID, 800000L, GT_Values.V[3], 3L, -3L, true);
+
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_LV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_LV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_MV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_MV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_HV_SulfuricAcid.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_SU_HV_Mercury.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_LV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_LV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_MV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_MV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Cadmium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Lithium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Battery_RE_HV_Sodium.get(1L, new Object[0]), ItemList.Battery_Hull_HV.get(1L, new Object[0]));
+
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[0]), null, 100, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Lithium.get(1L, new Object[0]), null, 100, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 2L), ItemList.Battery_Hull_LV.get(1L, new Object[0]), ItemList.Battery_RE_LV_Sodium.get(1L, new Object[0]), null, 100, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[0]), null, 400, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Lithium.get(1L, new Object[0]), null, 400, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 8L), ItemList.Battery_Hull_MV.get(1L, new Object[0]), ItemList.Battery_RE_MV_Sodium.get(1L, new Object[0]), null, 400, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cadmium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Cadmium.get(1L, new Object[0]), null, 1600, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Lithium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Lithium.get(1L, new Object[0]), null, 1600, 2);
+ GT_Values.RA.addCannerRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 32L), ItemList.Battery_Hull_HV.get(1L, new Object[0]), ItemList.Battery_RE_HV_Sodium.get(1L, new Object[0]), null, 1600, 2);
+
+ ItemList.Energy_LapotronicOrb.set(addItem(tLastID = 597, "Lapotronic Energy Orb", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), OrePrefixes.battery.get(Materials.Ultimate) }));
+ setElectricStats(32000 + tLastID, 100000000L, GT_Values.V[5], 5L, -3L, true);
+
+ ItemList.ZPM.set(addItem(tLastID = 598, "Zero Point Module", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L) }));
+ setElectricStats(32000 + tLastID, 2000000000000L, GT_Values.V[7], 7L, -2L, true);
+
ItemList.Energy_LapotronicOrb2.set(addItem(tLastID = 599, "Lapotronic Energy Orb Cluster", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), OrePrefixes.battery.get(Materials.Ultimate) }));
-/* 474:442 */ setElectricStats(32000 + tLastID, 1000000000L, GT_Values.V[6], 6L, -3L, true);
-/* 475: */
-/* 476:444 */ ItemList.ZPM2.set(addItem(tLastID = 605, "Ultimate Battery", "Fill this to win minecraft", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L) }));
-/* 477:445 */ setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[8], 8L, -3L, true);
-/* 478: */
-/* 479:447 */ ItemList.Electric_Motor_LV.set(addItem(tLastID = 600, "Electric Motor (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
-/* 480:448 */ ItemList.Electric_Motor_MV.set(addItem(tLastID = 601, "Electric Motor (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
-/* 481:449 */ ItemList.Electric_Motor_HV.set(addItem(tLastID = 602, "Electric Motor (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
-/* 482:450 */ ItemList.Electric_Motor_EV.set(addItem(tLastID = 603, "Electric Motor (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
-/* 483:451 */ ItemList.Electric_Motor_IV.set(addItem(tLastID = 604, "Electric Motor (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
-/* 484:452 */ ItemList.Electric_Motor_LuV.set(ItemList.Electric_Motor_IV.get(1L, new Object[0]));
-/* 485:453 */ ItemList.Electric_Motor_ZPM.set(ItemList.Electric_Motor_LuV.get(1L, new Object[0]));
-/* 486:454 */ ItemList.Electric_Motor_UV.set(ItemList.Electric_Motor_ZPM.get(1L, new Object[0]));
-/* 487: */
-/* 488:456 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.IronMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.AnyIron), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
-/* 489:457 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
-/* 490:458 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('W'), OrePrefixes.wireGt02.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
-/* 491:459 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('W'), OrePrefixes.wireGt04.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
-/* 492:460 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.NeodymiumMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('W'), OrePrefixes.wireGt08.get(Materials.AnnealedCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
-/* 493:461 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.NeodymiumMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('W'), OrePrefixes.wireGt16.get(Materials.AnnealedCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
-/* 494: */
-/* 495:463 */ ItemList.Electric_Pump_LV.set(addItem(tLastID = 610, "Electric Pump (LV)", "640 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L) }));
-/* 496:464 */ ItemList.Electric_Pump_MV.set(addItem(tLastID = 611, "Electric Pump (MV)", "2560 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 497:465 */ ItemList.Electric_Pump_HV.set(addItem(tLastID = 612, "Electric Pump (HV)", "10240 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L) }));
-/* 498:466 */ ItemList.Electric_Pump_EV.set(addItem(tLastID = 613, "Electric Pump (EV)", "40960 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L) }));
-/* 499:467 */ ItemList.Electric_Pump_IV.set(addItem(tLastID = 614, "Electric Pump (IV)", "163840 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L) }));
-/* 500:468 */ ItemList.Electric_Pump_LuV.set(ItemList.Electric_Pump_IV.get(1L, new Object[0]));
-/* 501:469 */ ItemList.Electric_Pump_ZPM.set(ItemList.Electric_Pump_LuV.get(1L, new Object[0]));
-/* 502:470 */ ItemList.Electric_Pump_UV.set(ItemList.Electric_Pump_ZPM.get(1L, new Object[0]));
-/* 503: */
-/* 504:472 */ GregTech_API.registerCover(ItemList.Electric_Pump_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(32));
-/* 505:473 */ GregTech_API.registerCover(ItemList.Electric_Pump_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(128));
-/* 506:474 */ GregTech_API.registerCover(ItemList.Electric_Pump_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(512));
-/* 507:475 */ GregTech_API.registerCover(ItemList.Electric_Pump_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(2048));
-/* 508:476 */ GregTech_API.registerCover(ItemList.Electric_Pump_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(8192));
-/* 509: */
-/* 510:478 */ ItemList.Rotor_LV.set(addItem(tLastID = 620, "Tin Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Tin), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
-/* 511:479 */ ItemList.Rotor_MV.set(addItem(tLastID = 621, "Bronze Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Bronze), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
-/* 512:480 */ ItemList.Rotor_HV.set(addItem(tLastID = 622, "Steel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Steel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
-/* 513:481 */ ItemList.Rotor_EV.set(addItem(tLastID = 623, "Stainless Steel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.StainlessSteel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
-/* 514:482 */ ItemList.Rotor_IV.set(addItem(tLastID = 624, "Tungstensteel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.TungstenSteel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
-/* 515:483 */ ItemList.Rotor_LuV.set(ItemList.Rotor_IV.get(1L, new Object[0]));
-/* 516:484 */ ItemList.Rotor_ZPM.set(ItemList.Rotor_LuV.get(1L, new Object[0]));
-/* 517:485 */ ItemList.Rotor_UV.set(ItemList.Rotor_ZPM.get(1L, new Object[0]));
-/* 518: */
-/* 519:487 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Tin), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Tin), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tin), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Bronze) });
-/* 520:488 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Bronze), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Bronze), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.AnyCopper), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Steel) });
-/* 521:489 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Steel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Gold), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.StainlessSteel) });
-/* 522:490 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Aluminium), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Titanium) });
-/* 523:491 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.TungstenSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.TungstenSteel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tungsten), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.TungstenSteel) });
-/* 524: */
-/* 525:493 */ ItemList.Conveyor_Module_LV.set(addItem(tLastID = 630, "Conveyor Module (LV)", "1 Stack every 20 secs (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
-/* 526:494 */ ItemList.Conveyor_Module_MV.set(addItem(tLastID = 631, "Conveyor Module (MV)", "1 Stack every 5 secs (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) }));
-/* 527:495 */ ItemList.Conveyor_Module_HV.set(addItem(tLastID = 632, "Conveyor Module (HV)", "1 Stack every 1 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L) }));
-/* 528:496 */ ItemList.Conveyor_Module_EV.set(addItem(tLastID = 633, "Conveyor Module (EV)", "1 Stack every 1/5 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L) }));
-/* 529:497 */ ItemList.Conveyor_Module_IV.set(addItem(tLastID = 634, "Conveyor Module (IV)", "1 Stack every 1/20 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L) }));
-/* 530:498 */ ItemList.Conveyor_Module_LuV.set(ItemList.Conveyor_Module_IV.get(1L, new Object[0]));
-/* 531:499 */ ItemList.Conveyor_Module_ZPM.set(ItemList.Conveyor_Module_LuV.get(1L, new Object[0]));
-/* 532:500 */ ItemList.Conveyor_Module_UV.set(ItemList.Conveyor_Module_ZPM.get(1L, new Object[0]));
-/* 533: */
-/* 534:502 */ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
-/* 535:503 */ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
-/* 536:504 */ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
-/* 537:505 */ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
-/* 538:506 */ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
-/* 539: */
-/* 540:508 */ GregTech_API.registerCover(ItemList.Conveyor_Module_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(400));
-/* 541:509 */ GregTech_API.registerCover(ItemList.Conveyor_Module_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(100));
-/* 542:510 */ GregTech_API.registerCover(ItemList.Conveyor_Module_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(20));
-/* 543:511 */ GregTech_API.registerCover(ItemList.Conveyor_Module_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(4));
-/* 544:512 */ GregTech_API.registerCover(ItemList.Conveyor_Module_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(1));
-/* 545: */
-/* 546:514 */ ItemList.Electric_Piston_LV.set(addItem(tLastID = 640, "Electric Piston (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
-/* 547:515 */ ItemList.Electric_Piston_MV.set(addItem(tLastID = 641, "Electric Piston (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
-/* 548:516 */ ItemList.Electric_Piston_HV.set(addItem(tLastID = 642, "Electric Piston (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
-/* 549:517 */ ItemList.Electric_Piston_EV.set(addItem(tLastID = 643, "Electric Piston (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
-/* 550:518 */ ItemList.Electric_Piston_IV.set(addItem(tLastID = 644, "Electric Piston (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
-/* 551:519 */ ItemList.Electric_Piston_LuV.set(ItemList.Electric_Piston_IV.get(1L, new Object[0]));
-/* 552:520 */ ItemList.Electric_Piston_ZPM.set(ItemList.Electric_Piston_LuV.get(1L, new Object[0]));
-/* 553:521 */ ItemList.Electric_Piston_UV.set(ItemList.Electric_Piston_ZPM.get(1L, new Object[0]));
-/* 554: */
-/* 555:523 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Steel), Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
-/* 556:524 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Aluminium), Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
-/* 557:525 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
-/* 558:526 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Titanium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Titanium), Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
-/* 559:527 */ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.TungstenSteel), Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
-/* 560: */
-/* 561:529 */ ItemList.Robot_Arm_LV.set(addItem(tLastID = 650, "Robot Arm (LV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L) }));
-/* 562:530 */ ItemList.Robot_Arm_MV.set(addItem(tLastID = 651, "Robot Arm (MV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
-/* 563:531 */ ItemList.Robot_Arm_HV.set(addItem(tLastID = 652, "Robot Arm (HV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 4L) }));
-/* 564:532 */ ItemList.Robot_Arm_EV.set(addItem(tLastID = 653, "Robot Arm (EV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 8L) }));
-/* 565:533 */ ItemList.Robot_Arm_IV.set(addItem(tLastID = 654, "Robot Arm (IV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 16L) }));
-/* 566:534 */ ItemList.Robot_Arm_LuV.set(ItemList.Robot_Arm_IV.get(1L, new Object[0]));
-/* 567:535 */ ItemList.Robot_Arm_ZPM.set(ItemList.Robot_Arm_LuV.get(1L, new Object[0]));
-/* 568:536 */ ItemList.Robot_Arm_UV.set(ItemList.Robot_Arm_ZPM.get(1L, new Object[0]));
-/* 569: */
-/* 570:538 */ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('P'), ItemList.Electric_Piston_LV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
-/* 571:539 */ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('P'), ItemList.Electric_Piston_MV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
-/* 572:540 */ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('P'), ItemList.Electric_Piston_HV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
-/* 573:541 */ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('P'), ItemList.Electric_Piston_EV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
-/* 574:542 */ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('P'), ItemList.Electric_Piston_IV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
-/* 575: */
-/* 576:544 */ GregTech_API.registerCover(ItemList.Robot_Arm_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(400));
-/* 577:545 */ GregTech_API.registerCover(ItemList.Robot_Arm_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(100));
-/* 578:546 */ GregTech_API.registerCover(ItemList.Robot_Arm_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(20));
-/* 579:547 */ GregTech_API.registerCover(ItemList.Robot_Arm_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(4));
-/* 580:548 */ GregTech_API.registerCover(ItemList.Robot_Arm_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(1));
-/* 581: */
-/* 582:550 */ ItemList.Field_Generator_LV.set(addItem(tLastID = 670, "Field Generator (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
-/* 583:551 */ ItemList.Field_Generator_MV.set(addItem(tLastID = 671, "Field Generator (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L) }));
-/* 584:552 */ ItemList.Field_Generator_HV.set(addItem(tLastID = 672, "Field Generator (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L) }));
-/* 585:553 */ ItemList.Field_Generator_EV.set(addItem(tLastID = 673, "Field Generator (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 8L) }));
-/* 586:554 */ ItemList.Field_Generator_IV.set(addItem(tLastID = 674, "Field Generator (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 16L) }));
-/* 587:555 */ ItemList.Field_Generator_LuV.set(ItemList.Field_Generator_IV.get(1L, new Object[0]));
-/* 588:556 */ ItemList.Field_Generator_ZPM.set(ItemList.Field_Generator_LuV.get(1L, new Object[0]));
-/* 589:557 */ ItemList.Field_Generator_UV.set(ItemList.Field_Generator_ZPM.get(1L, new Object[0]));
-/* 590: */
-/* 591:559 */ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.Osmium) });
-/* 592:560 */ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'), OrePrefixes.wireGt02.get(Materials.Osmium) });
-/* 593:561 */ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('W'), OrePrefixes.wireGt04.get(Materials.Osmium) });
-/* 594:562 */ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'), OrePrefixes.wireGt08.get(Materials.Osmium) });
-/* 595:563 */ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'), OrePrefixes.wireGt16.get(Materials.Osmium) });
-/* 596: */
-/* 597:565 */ ItemList.Emitter_LV.set(addItem(tLastID = 680, "Emitter (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 1L) }));
-/* 598:566 */ ItemList.Emitter_MV.set(addItem(tLastID = 681, "Emitter (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L) }));
-/* 599:567 */ ItemList.Emitter_HV.set(addItem(tLastID = 682, "Emitter (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 4L) }));
-/* 600:568 */ ItemList.Emitter_EV.set(addItem(tLastID = 683, "Emitter (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 8L) }));
-/* 601:569 */ ItemList.Emitter_IV.set(addItem(tLastID = 684, "Emitter (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 16L) }));
-/* 602:570 */ ItemList.Emitter_LuV.set(ItemList.Emitter_IV.get(1L, new Object[0]));
-/* 603:571 */ ItemList.Emitter_ZPM.set(ItemList.Emitter_LuV.get(1L, new Object[0]));
-/* 604:572 */ ItemList.Emitter_UV.set(ItemList.Emitter_ZPM.get(1L, new Object[0]));
-/* 605: */
-/* 606:574 */ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Quartzite), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Brass), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tin) });
-/* 607:575 */ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.NetherQuartz), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Electrum), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
-/* 608:576 */ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Emerald), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Chrome), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Gold) });
-/* 609:577 */ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Platinum), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
-/* 610:578 */ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Osmium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
-/* 611: */
-/* 612:580 */ ItemList.Sensor_LV.set(addItem(tLastID = 690, "Sensor (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
-/* 613:581 */ ItemList.Sensor_MV.set(addItem(tLastID = 691, "Sensor (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L) }));
-/* 614:582 */ ItemList.Sensor_HV.set(addItem(tLastID = 692, "Sensor (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
-/* 615:583 */ ItemList.Sensor_EV.set(addItem(tLastID = 693, "Sensor (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 8L) }));
-/* 616:584 */ ItemList.Sensor_IV.set(addItem(tLastID = 694, "Sensor (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 16L) }));
-/* 617:585 */ ItemList.Sensor_LuV.set(ItemList.Sensor_IV.get(1L, new Object[0]));
-/* 618:586 */ ItemList.Sensor_ZPM.set(ItemList.Sensor_LuV.get(1L, new Object[0]));
-/* 619:587 */ ItemList.Sensor_UV.set(ItemList.Sensor_ZPM.get(1L, new Object[0]));
-/* 620: */
-/* 621:589 */ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Quartzite), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Brass), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic) });
-/* 622:590 */ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.NetherQuartz), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Electrum), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good) });
-/* 623:591 */ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Emerald), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Chrome), Character.valueOf('P'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced) });
-/* 624:592 */ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Platinum), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Titanium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite) });
-/* 625:593 */ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Osmium), Character.valueOf('P'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master) });
-/* 626: */
-/* 627:595 */ ItemList.Circuit_Primitive.set(addItem(tLastID = 700, "NAND Chip", "A very simple Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Primitive) }));
-/* 628:596 */ ItemList.Circuit_Basic.set(addItem(tLastID = 701, "Basic Electronic Circuit", "A basic Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Basic) }));
-/* 629:597 */ ItemList.Circuit_Good.set(addItem(tLastID = 702, "Good Electronic Circuit", "A good Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Good) }));
-/* 630:598 */ ItemList.Circuit_Advanced.set(addItem(tLastID = 703, "Advanced Circuit", "An advanced Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Advanced) }));
-/* 631:599 */ ItemList.Circuit_Data.set(addItem(tLastID = 704, "Data Storage Circuit", "A Data Storage Chip", new Object[] { OrePrefixes.circuit.get(Materials.Data) }));
-/* 632:600 */ ItemList.Circuit_Elite.set(addItem(tLastID = 705, "Data Control Circuit", "A Processor", new Object[] { OrePrefixes.circuit.get(Materials.Elite) }));
-/* 633:601 */ ItemList.Circuit_Master.set(addItem(tLastID = 706, "Energy Flow Circuit", "A High Voltage Processor", new Object[] { OrePrefixes.circuit.get(Materials.Master) }));
-/* 634:602 */ ItemList.Tool_DataOrb.set(addItem(tLastID = 707, "Data Orb", "A High Capacity Data Storage", new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), SubTag.NO_UNIFICATION, new Behaviour_DataOrb() }));ItemList.Circuit_Ultimate.set(ItemList.Tool_DataOrb.get(1L, new Object[0]));
-/* 635:603 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Tool_DataOrb.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Tool_DataOrb.get(1L, new Object[0]) });
-/* 636:604 */ ItemList.Tool_DataStick.set(addItem(tLastID = 708, "Data Stick", "A Low Capacity Data Storage", new Object[] { OrePrefixes.circuit.get(Materials.Data), SubTag.NO_UNIFICATION, new Behaviour_DataStick() }));
-/* 637:605 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Tool_DataStick.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Tool_DataStick.get(1L, new Object[0]) });
-/* 638: */
+ setElectricStats(32000 + tLastID, 1000000000L, GT_Values.V[6], 6L, -3L, true);
+
+ ItemList.ZPM2.set(addItem(tLastID = 605, "Ultimate Battery", "Fill this to win minecraft", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L) }));
+ setElectricStats(32000 + tLastID, Long.MAX_VALUE, GT_Values.V[8], 8L, -3L, true);
+
+ ItemList.Electric_Motor_LV.set(addItem(tLastID = 600, "Electric Motor (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
+ ItemList.Electric_Motor_MV.set(addItem(tLastID = 601, "Electric Motor (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
+ ItemList.Electric_Motor_HV.set(addItem(tLastID = 602, "Electric Motor (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
+ ItemList.Electric_Motor_EV.set(addItem(tLastID = 603, "Electric Motor (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
+ ItemList.Electric_Motor_IV.set(addItem(tLastID = 604, "Electric Motor (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
+ ItemList.Electric_Motor_LuV.set(ItemList.Electric_Motor_IV.get(1L, new Object[0]));
+ ItemList.Electric_Motor_ZPM.set(ItemList.Electric_Motor_LuV.get(1L, new Object[0]));
+ ItemList.Electric_Motor_UV.set(ItemList.Electric_Motor_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.IronMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.AnyIron), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('W'), OrePrefixes.wireGt02.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.SteelMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('W'), OrePrefixes.wireGt04.get(Materials.AnyCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.NeodymiumMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('W'), OrePrefixes.wireGt08.get(Materials.AnnealedCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Motor_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CWR", "WIW", "RWC", Character.valueOf('I'), OrePrefixes.stick.get(Materials.NeodymiumMagnetic), Character.valueOf('R'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('W'), OrePrefixes.wireGt16.get(Materials.AnnealedCopper), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
+
+ ItemList.Electric_Pump_LV.set(addItem(tLastID = 610, "Electric Pump (LV)", "640 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L) }));
+ ItemList.Electric_Pump_MV.set(addItem(tLastID = 611, "Electric Pump (MV)", "2560 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+ ItemList.Electric_Pump_HV.set(addItem(tLastID = 612, "Electric Pump (HV)", "10240 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L) }));
+ ItemList.Electric_Pump_EV.set(addItem(tLastID = 613, "Electric Pump (EV)", "40960 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 8L) }));
+ ItemList.Electric_Pump_IV.set(addItem(tLastID = 614, "Electric Pump (IV)", "163840 L/sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 16L) }));
+ ItemList.Electric_Pump_LuV.set(ItemList.Electric_Pump_IV.get(1L, new Object[0]));
+ ItemList.Electric_Pump_ZPM.set(ItemList.Electric_Pump_LuV.get(1L, new Object[0]));
+ ItemList.Electric_Pump_UV.set(ItemList.Electric_Pump_ZPM.get(1L, new Object[0]));
+
+ GregTech_API.registerCover(ItemList.Electric_Pump_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(32));
+ GregTech_API.registerCover(ItemList.Electric_Pump_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(128));
+ GregTech_API.registerCover(ItemList.Electric_Pump_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(512));
+ GregTech_API.registerCover(ItemList.Electric_Pump_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(2048));
+ GregTech_API.registerCover(ItemList.Electric_Pump_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PUMP) }), new GT_Cover_Pump(8192));
+
+ ItemList.Rotor_LV.set(addItem(tLastID = 620, "Tin Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Tin), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
+ ItemList.Rotor_MV.set(addItem(tLastID = 621, "Bronze Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Bronze), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
+ ItemList.Rotor_HV.set(addItem(tLastID = 622, "Steel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.Steel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
+ ItemList.Rotor_EV.set(addItem(tLastID = 623, "Stainless Steel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.StainlessSteel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
+ ItemList.Rotor_IV.set(addItem(tLastID = 624, "Tungstensteel Rotor", "", new Object[] { OrePrefixes.rotor.get(Materials.TungstenSteel), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
+ ItemList.Rotor_LuV.set(ItemList.Rotor_IV.get(1L, new Object[0]));
+ ItemList.Rotor_ZPM.set(ItemList.Rotor_LuV.get(1L, new Object[0]));
+ ItemList.Rotor_UV.set(ItemList.Rotor_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Tin), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Tin), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tin), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Bronze) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Bronze), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Bronze), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.AnyCopper), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Steel) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.Steel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Gold), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.StainlessSteel) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.StainlessSteel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Aluminium), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.Titanium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Pump_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SXO", "dPw", "OMW", Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('O'), OrePrefixes.ring.get(Materials.Rubber), Character.valueOf('X'), OrePrefixes.rotor.get(Materials.TungstenSteel), Character.valueOf('S'), OrePrefixes.screw.get(Materials.TungstenSteel), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tungsten), Character.valueOf('P'), OrePrefixes.pipeMedium.get(Materials.TungstenSteel) });
+
+ ItemList.Conveyor_Module_LV.set(addItem(tLastID = 630, "Conveyor Module (LV)", "1 Stack every 20 secs (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
+ ItemList.Conveyor_Module_MV.set(addItem(tLastID = 631, "Conveyor Module (MV)", "1 Stack every 5 secs (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) }));
+ ItemList.Conveyor_Module_HV.set(addItem(tLastID = 632, "Conveyor Module (HV)", "1 Stack every 1 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 4L) }));
+ ItemList.Conveyor_Module_EV.set(addItem(tLastID = 633, "Conveyor Module (EV)", "1 Stack every 1/5 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 8L) }));
+ ItemList.Conveyor_Module_IV.set(addItem(tLastID = 634, "Conveyor Module (IV)", "1 Stack every 1/20 sec (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 16L) }));
+ ItemList.Conveyor_Module_LuV.set(ItemList.Conveyor_Module_IV.get(1L, new Object[0]));
+ ItemList.Conveyor_Module_ZPM.set(ItemList.Conveyor_Module_LuV.get(1L, new Object[0]));
+ ItemList.Conveyor_Module_UV.set(ItemList.Conveyor_Module_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Conveyor_Module_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "RRR", "MCM", "RRR", Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten), Character.valueOf('R'), OrePrefixes.plate.get(Materials.Rubber) });
+
+ GregTech_API.registerCover(ItemList.Conveyor_Module_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(400));
+ GregTech_API.registerCover(ItemList.Conveyor_Module_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(100));
+ GregTech_API.registerCover(ItemList.Conveyor_Module_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(20));
+ GregTech_API.registerCover(ItemList.Conveyor_Module_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(4));
+ GregTech_API.registerCover(ItemList.Conveyor_Module_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONVEYOR) }), new GT_Cover_Conveyor(1));
+
+ ItemList.Electric_Piston_LV.set(addItem(tLastID = 640, "Electric Piston (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
+ ItemList.Electric_Piston_MV.set(addItem(tLastID = 641, "Electric Piston (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
+ ItemList.Electric_Piston_HV.set(addItem(tLastID = 642, "Electric Piston (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L) }));
+ ItemList.Electric_Piston_EV.set(addItem(tLastID = 643, "Electric Piston (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L) }));
+ ItemList.Electric_Piston_IV.set(addItem(tLastID = 644, "Electric Piston (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L) }));
+ ItemList.Electric_Piston_LuV.set(ItemList.Electric_Piston_IV.get(1L, new Object[0]));
+ ItemList.Electric_Piston_ZPM.set(ItemList.Electric_Piston_LuV.get(1L, new Object[0]));
+ ItemList.Electric_Piston_UV.set(ItemList.Electric_Piston_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Steel), Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Aluminium), Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.StainlessSteel), Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.Titanium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.Titanium), Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Electric_Piston_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "PPP", "CSS", "CMG", Character.valueOf('P'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('G'), OrePrefixes.gearGtSmall.get(Materials.TungstenSteel), Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
+
+ ItemList.Robot_Arm_LV.set(addItem(tLastID = 650, "Robot Arm (LV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L) }));
+ ItemList.Robot_Arm_MV.set(addItem(tLastID = 651, "Robot Arm (MV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L) }));
+ ItemList.Robot_Arm_HV.set(addItem(tLastID = 652, "Robot Arm (HV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 4L) }));
+ ItemList.Robot_Arm_EV.set(addItem(tLastID = 653, "Robot Arm (EV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 8L) }));
+ ItemList.Robot_Arm_IV.set(addItem(tLastID = 654, "Robot Arm (IV)", "Inserts into specific Slots (as Cover)", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 16L) }));
+ ItemList.Robot_Arm_LuV.set(ItemList.Robot_Arm_IV.get(1L, new Object[0]));
+ ItemList.Robot_Arm_ZPM.set(ItemList.Robot_Arm_LuV.get(1L, new Object[0]));
+ ItemList.Robot_Arm_UV.set(ItemList.Robot_Arm_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Steel), Character.valueOf('M'), ItemList.Electric_Motor_LV, Character.valueOf('P'), ItemList.Electric_Piston_LV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tin) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium), Character.valueOf('M'), ItemList.Electric_Motor_MV, Character.valueOf('P'), ItemList.Electric_Piston_MV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel), Character.valueOf('M'), ItemList.Electric_Motor_HV, Character.valueOf('P'), ItemList.Electric_Piston_HV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Gold) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Titanium), Character.valueOf('M'), ItemList.Electric_Motor_EV, Character.valueOf('P'), ItemList.Electric_Piston_EV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Robot_Arm_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "CCC", "MSM", "PES", Character.valueOf('S'), OrePrefixes.stick.get(Materials.TungstenSteel), Character.valueOf('M'), ItemList.Electric_Motor_IV, Character.valueOf('P'), ItemList.Electric_Piston_IV, Character.valueOf('E'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('C'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
+
+ GregTech_API.registerCover(ItemList.Robot_Arm_LV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(400));
+ GregTech_API.registerCover(ItemList.Robot_Arm_MV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(100));
+ GregTech_API.registerCover(ItemList.Robot_Arm_HV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[3][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(20));
+ GregTech_API.registerCover(ItemList.Robot_Arm_EV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[4][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(4));
+ GregTech_API.registerCover(ItemList.Robot_Arm_IV.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[5][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ARM) }), new GT_Cover_Arm(1));
+
+ ItemList.Field_Generator_LV.set(addItem(tLastID = 670, "Field Generator (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
+ ItemList.Field_Generator_MV.set(addItem(tLastID = 671, "Field Generator (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L) }));
+ ItemList.Field_Generator_HV.set(addItem(tLastID = 672, "Field Generator (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L) }));
+ ItemList.Field_Generator_EV.set(addItem(tLastID = 673, "Field Generator (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 8L) }));
+ ItemList.Field_Generator_IV.set(addItem(tLastID = 674, "Field Generator (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 16L) }));
+ ItemList.Field_Generator_LuV.set(ItemList.Field_Generator_IV.get(1L, new Object[0]));
+ ItemList.Field_Generator_ZPM.set(ItemList.Field_Generator_LuV.get(1L, new Object[0]));
+ ItemList.Field_Generator_UV.set(ItemList.Field_Generator_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'), OrePrefixes.wireGt01.get(Materials.Osmium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'), OrePrefixes.wireGt02.get(Materials.Osmium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('W'), OrePrefixes.wireGt04.get(Materials.Osmium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'), OrePrefixes.wireGt08.get(Materials.Osmium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Field_Generator_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "WCW", "CGC", "WCW", Character.valueOf('G'), OrePrefixes.gem.get(Materials.NetherStar), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'), OrePrefixes.wireGt16.get(Materials.Osmium) });
+
+ ItemList.Emitter_LV.set(addItem(tLastID = 680, "Emitter (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 1L) }));
+ ItemList.Emitter_MV.set(addItem(tLastID = 681, "Emitter (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L) }));
+ ItemList.Emitter_HV.set(addItem(tLastID = 682, "Emitter (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 4L) }));
+ ItemList.Emitter_EV.set(addItem(tLastID = 683, "Emitter (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 8L) }));
+ ItemList.Emitter_IV.set(addItem(tLastID = 684, "Emitter (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 16L) }));
+ ItemList.Emitter_LuV.set(ItemList.Emitter_IV.get(1L, new Object[0]));
+ ItemList.Emitter_ZPM.set(ItemList.Emitter_LuV.get(1L, new Object[0]));
+ ItemList.Emitter_UV.set(ItemList.Emitter_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Quartzite), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Brass), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tin) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.NetherQuartz), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Electrum), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.AnyCopper) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Emerald), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Chrome), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Gold) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Platinum), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Aluminium) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Emitter_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "SSC", "WQS", "CWS", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Osmium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master), Character.valueOf('W'), OrePrefixes.cableGt01.get(Materials.Tungsten) });
+
+ ItemList.Sensor_LV.set(addItem(tLastID = 690, "Sensor (LV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
+ ItemList.Sensor_MV.set(addItem(tLastID = 691, "Sensor (MV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L) }));
+ ItemList.Sensor_HV.set(addItem(tLastID = 692, "Sensor (HV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
+ ItemList.Sensor_EV.set(addItem(tLastID = 693, "Sensor (EV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 8L) }));
+ ItemList.Sensor_IV.set(addItem(tLastID = 694, "Sensor (IV)", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 16L) }));
+ ItemList.Sensor_LuV.set(ItemList.Sensor_IV.get(1L, new Object[0]));
+ ItemList.Sensor_ZPM.set(ItemList.Sensor_LuV.get(1L, new Object[0]));
+ ItemList.Sensor_UV.set(ItemList.Sensor_ZPM.get(1L, new Object[0]));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_LV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Quartzite), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Brass), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Basic) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_MV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.NetherQuartz), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Electrum), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Good) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_HV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.Emerald), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Chrome), Character.valueOf('P'), OrePrefixes.plate.get(Materials.StainlessSteel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_EV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderPearl), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Platinum), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Titanium), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Elite) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Sensor_IV.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "P Q", "PS ", "CPP", Character.valueOf('Q'), OrePrefixes.gem.get(Materials.EnderEye), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Osmium), Character.valueOf('P'), OrePrefixes.plate.get(Materials.TungstenSteel), Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Master) });
+
+ ItemList.Circuit_Primitive.set(addItem(tLastID = 700, "NAND Chip", "A very simple Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Primitive) }));
+ ItemList.Circuit_Basic.set(addItem(tLastID = 701, "Basic Electronic Circuit", "A basic Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Basic) }));
+ ItemList.Circuit_Good.set(addItem(tLastID = 702, "Good Electronic Circuit", "A good Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Good) }));
+ ItemList.Circuit_Advanced.set(addItem(tLastID = 703, "Advanced Circuit", "An advanced Circuit", new Object[] { OrePrefixes.circuit.get(Materials.Advanced) }));
+ ItemList.Circuit_Data.set(addItem(tLastID = 704, "Data Storage Circuit", "A Data Storage Chip", new Object[] { OrePrefixes.circuit.get(Materials.Data) }));
+ ItemList.Circuit_Elite.set(addItem(tLastID = 705, "Data Control Circuit", "A Processor", new Object[] { OrePrefixes.circuit.get(Materials.Elite) }));
+ ItemList.Circuit_Master.set(addItem(tLastID = 706, "Energy Flow Circuit", "A High Voltage Processor", new Object[] { OrePrefixes.circuit.get(Materials.Master) }));
+ ItemList.Tool_DataOrb.set(addItem(tLastID = 707, "Data Orb", "A High Capacity Data Storage", new Object[] { OrePrefixes.circuit.get(Materials.Ultimate), SubTag.NO_UNIFICATION, new Behaviour_DataOrb() }));ItemList.Circuit_Ultimate.set(ItemList.Tool_DataOrb.get(1L, new Object[0]));
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Tool_DataOrb.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Tool_DataOrb.get(1L, new Object[0]) });
+ ItemList.Tool_DataStick.set(addItem(tLastID = 708, "Data Stick", "A Low Capacity Data Storage", new Object[] { OrePrefixes.circuit.get(Materials.Data), SubTag.NO_UNIFICATION, new Behaviour_DataStick() }));
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Tool_DataStick.get(1L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ItemList.Tool_DataStick.get(1L, new Object[0]) });
+
+
+ ItemList.Circuit_Board_Basic.set(addItem(tLastID = 710, "Basic Circuit Board", "A basic Board", new Object[0]));
+ ItemList.Circuit_Board_Advanced.set(addItem(tLastID = 711, "Advanced Circuit Board", "An advanced Board", new Object[0]));
+ ItemList.Circuit_Board_Elite.set(addItem(tLastID = 712, "Processor Board", "A Processor Board", new Object[0]));
+ ItemList.Circuit_Parts_Crystal_Chip_Elite.set(addItem(tLastID = 713, "Engraved Crystal Chip", "Needed for Circuits", new Object[0]));
+ ItemList.Circuit_Parts_Crystal_Chip_Master.set(addItem(tLastID = 714, "Engraved Lapotron Chip", "Needed for Circuits", new Object[0]));
+ ItemList.Circuit_Parts_Advanced.set(addItem(tLastID = 715, "Advanced Circuit Parts", "Advanced Circuit Parts", new Object[0]));
+ ItemList.Circuit_Parts_Wiring_Basic.set(addItem(tLastID = 716, "Etched Medium Voltage Wiring", "Part of Circuit Boards", new Object[0]));
+ ItemList.Circuit_Parts_Wiring_Advanced.set(addItem(tLastID = 717, "Etched High Voltage Wiring", "Part of Circuit Boards", new Object[0]));
+ ItemList.Circuit_Parts_Wiring_Elite.set(addItem(tLastID = 718, "Etched Extreme Voltage Wiring", "Part of Circuit Boards", new Object[0]));
+
-/* 639:607 */ ItemList.Circuit_Board_Basic.set(addItem(tLastID = 710, "Basic Circuit Board", "A basic Board", new Object[0]));
-/* 640:608 */ ItemList.Circuit_Board_Advanced.set(addItem(tLastID = 711, "Advanced Circuit Board", "An advanced Board", new Object[0]));
-/* 641:609 */ ItemList.Circuit_Board_Elite.set(addItem(tLastID = 712, "Processor Board", "A Processor Board", new Object[0]));
-/* 642:610 */ ItemList.Circuit_Parts_Crystal_Chip_Elite.set(addItem(tLastID = 713, "Engraved Crystal Chip", "Needed for Circuits", new Object[0]));
-/* 643:611 */ ItemList.Circuit_Parts_Crystal_Chip_Master.set(addItem(tLastID = 714, "Engraved Lapotron Chip", "Needed for Circuits", new Object[0]));
-/* 644:612 */ ItemList.Circuit_Parts_Advanced.set(addItem(tLastID = 715, "Advanced Circuit Parts", "Advanced Circuit Parts", new Object[0]));
-/* 645:613 */ ItemList.Circuit_Parts_Wiring_Basic.set(addItem(tLastID = 716, "Etched Medium Voltage Wiring", "Part of Circuit Boards", new Object[0]));
-/* 646:614 */ ItemList.Circuit_Parts_Wiring_Advanced.set(addItem(tLastID = 717, "Etched High Voltage Wiring", "Part of Circuit Boards", new Object[0]));
-/* 647:615 */ ItemList.Circuit_Parts_Wiring_Elite.set(addItem(tLastID = 718, "Etched Extreme Voltage Wiring", "Part of Circuit Boards", new Object[0]));
-/* 648: */
-/* 649: */
-/* 650:618 */ ItemList.Component_Sawblade_Diamond.set(addItem(tLastID = 721, "Diamond Sawblade", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L), OreDictNames.craftingDiamondBlade }));
-/* 651:619 */ ItemList.Component_Grinder_Diamond.set(addItem(tLastID = 722, "Diamond Grinding Head", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6L), OreDictNames.craftingGrinder }));
-/* 652:620 */ ItemList.Component_Grinder_Tungsten.set(addItem(tLastID = 723, "Tungsten Grinding Head", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 6L), OreDictNames.craftingGrinder }));
-/* 653: */
-/* 654:622 */ GT_ModHandler.addCraftingRecipe(ItemList.Component_Sawblade_Diamond.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " D ", "DGD", " D ", Character.valueOf('D'), OrePrefixes.dustSmall.get(Materials.Diamond), Character.valueOf('G'), OrePrefixes.gearGt.get(Materials.CobaltBrass) });
-/* 655:623 */ GT_ModHandler.addCraftingRecipe(ItemList.Component_Grinder_Diamond.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "DSD", "SIS", "DSD", Character.valueOf('I'), OreDictNames.craftingIndustrialDiamond, Character.valueOf('D'), OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('S'), OrePrefixes.plate.get(Materials.Steel) });
-/* 656:624 */ GT_ModHandler.addCraftingRecipe(ItemList.Component_Grinder_Tungsten.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "TST", "SIS", "TST", Character.valueOf('I'), OreDictNames.craftingIndustrialDiamond, Character.valueOf('T'), OrePrefixes.plate.get(Materials.Tungsten), Character.valueOf('S'), OrePrefixes.plate.get(Materials.Steel) });
-/* 657: */
-/* 658:626 */ ItemList.Upgrade_Muffler.set(addItem(tLastID = 727, "Muffler Upgrade", "Makes Machines silent", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L) }));
-/* 659:627 */ ItemList.Upgrade_Lock.set(addItem(tLastID = 728, "Lock Upgrade", "Protects your Machines", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L) }));
-/* 660: */
-/* 661:629 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 662:630 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 663:631 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 664:632 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 665:633 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 666:634 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
-/* 667:635 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
-/* 668:636 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
-/* 669:637 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
-/* 670: */
-/* 671:639 */ ItemList.Component_Filter.set(addItem(tLastID = 729, "Item Filter", "", new Object[] { new ItemData(Materials.Zinc, OrePrefixes.foil.mMaterialAmount * 16L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), OreDictNames.craftingFilter }));
-/* 672: */
-/* 673:641 */ GT_Values.RA.addAssemblerRecipe(GT_ModHandler.getIC2Item("carbonMesh", 4L), GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16L), ItemList.Component_Filter.get(1L, new Object[0]), 1600, 32);
-/* 674: */
-/* 675:643 */ ItemList.Cover_Controller.set(addItem(tLastID = 730, "Machine Controller", "Turns Machines ON/OFF", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 676:644 */ ItemList.Cover_ActivityDetector.set(addItem(tLastID = 731, "Activity Detector", "Gives out Activity as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 677:645 */ ItemList.Cover_FluidDetector.set(addItem(tLastID = 732, "Fluid Detector", "Gives out Fluid Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L) }));
-/* 678:646 */ ItemList.Cover_ItemDetector.set(addItem(tLastID = 733, "Item Detector", "Gives out Item Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L) }));
-/* 679:647 */ ItemList.Cover_EnergyDetector.set(addItem(tLastID = 734, "Energy Detector", "Gives out Energy Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
-/* 680: */ ItemList.Cover_PlayerDetector.set(addItem(tLastID = 735, "Player Detector", "Gives out close Players as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 677:645 */ GT_Values.RA.addAssemblerRecipe( ItemList.Sensor_EV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1L),ItemList.Cover_PlayerDetector.get(1L, new Object[0]), 3200, 128);
-/* 743:711 */
-/* 681:649 */ GregTech_API.registerCover(ItemList.Cover_Controller.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONTROLLER) }), new GT_Cover_ControlsWork());
-/* 682:650 */ GregTech_API.registerCover(ItemList.Cover_ActivityDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_DoesWork());
-/* 683:651 */ GregTech_API.registerCover(ItemList.Cover_FluidDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_LiquidMeter());
-/* 684:652 */ GregTech_API.registerCover(ItemList.Cover_ItemDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ITEMDETECTOR) }), new GT_Cover_ItemMeter());
-/* 685:653 */ GregTech_API.registerCover(ItemList.Cover_EnergyDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ENERGYDETECTOR) }), new GT_Cover_EUMeter());
-/* 686: */ GregTech_API.registerCover(ItemList.Cover_PlayerDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_PlayerDetector());
-/* 683:651 */
-/* 687:655 */ ItemList.Cover_Screen.set(addItem(tLastID = 740, "Computer Monitor", "Displays Data", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L) }));
-/* 688:656 */ ItemList.Cover_Crafting.set(addItem(tLastID = 744, "Crafting Table Cover", "Better than a wooden Workbench", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L) }));
-/* 689:657 */ ItemList.Cover_Drain.set(addItem(tLastID = 745, "Drain", "Absorbs Fluids and collects Rain", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 690: */
-/* 691:659 */ ItemList.Cover_Shutter.set(addItem(tLastID = 749, "Shutter Module", "Blocks Inventory/Tank Side. Usage together with Machine Controller.", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
-/* 692: */
-/* 693:661 */ GT_ModHandler.addCraftingRecipe(ItemList.Cover_Screen.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "AGA", "RPB", "ALA", Character.valueOf('A'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('L'), OrePrefixes.dust.get(Materials.Glowstone), Character.valueOf('R'), Dyes.dyeRed, Character.valueOf('G'), Dyes.dyeLime, Character.valueOf('B'), Dyes.dyeBlue, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Glass) });
-/* 694: */
-/* 695:663 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
-/* 696:664 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
-/* 697:665 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
-/* 698:666 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
-/* 699:667 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
-/* 700:668 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
-/* 701:669 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
-/* 702:670 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
-/* 703:671 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
-/* 704: */
-/* 705:673 */ GregTech_API.registerCover(ItemList.Cover_Screen.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SCREEN) }), new GT_Cover_Screen());
-/* 706:674 */ GregTech_API.registerCover(ItemList.Cover_Crafting.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CRAFTING) }), new GT_Cover_Crafting());
-/* 707:675 */ GregTech_API.registerCover(ItemList.Cover_Drain.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[0][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_DRAIN) }), new GT_Cover_Drain());
-/* 708:676 */ GregTech_API.registerCover(ItemList.Cover_Shutter.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SHUTTER) }), new GT_Cover_Shutter());
-/* 709: */
-/* 710:678 */ ItemList.Cover_SolarPanel.set(addItem(tLastID = 750, "Solar Panel", "May the Sun be with you", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L) }));
-/* 711:679 */ ItemList.Cover_SolarPanel_8V.set(addItem(tLastID = 751, "Solar Panel (8V)", "8 Volt Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 2L) }));
-/* 712:680 */ ItemList.Cover_SolarPanel_LV.set(addItem(tLastID = 752, "Solar Panel (LV)", "Low Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 4L) }));
-/* 713:681 */ ItemList.Cover_SolarPanel_MV.set(addItem(tLastID = 753, "Solar Panel (MV)", "Medium Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 8L) }));
-/* 714:682 */ ItemList.Cover_SolarPanel_HV.set(addItem(tLastID = 754, "Solar Panel (HV)", "High Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 16L) }));
-/* 715:683 */ ItemList.Cover_SolarPanel_EV.set(addItem(tLastID = 755, "Solar Panel (EV)", "Extreme Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 32L) }));
-/* 716:684 */ ItemList.Cover_SolarPanel_IV.set(addItem(tLastID = 756, "Solar Panel (IV)", "Insane Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
-/* 717:685 */ ItemList.Cover_SolarPanel_LuV.set(addItem(tLastID = 757, "Solar Panel (LuV)", "Ludicrous Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
-/* 718:686 */ ItemList.Cover_SolarPanel_ZPM.set(addItem(tLastID = 758, "Solar Panel (ZPM)", "ZPM Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
-/* 719:687 */ ItemList.Cover_SolarPanel_UV.set(addItem(tLastID = 759, "Solar Panel (UV)", "Ultimate Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
-/* 720: */
-/* 721:689 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL), new GT_Cover_SolarPanel(1));
-/* 722:690 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_8V.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_8V), new GT_Cover_SolarPanel(8));
-/* 723:691 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_LV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LV), new GT_Cover_SolarPanel(32));
-/* 724:692 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_MV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_MV), new GT_Cover_SolarPanel(128));
-/* 725:693 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_HV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_HV), new GT_Cover_SolarPanel(512));
-/* 726:694 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_EV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_EV), new GT_Cover_SolarPanel(2048));
-/* 727:695 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_IV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV), new GT_Cover_SolarPanel(8192));
-/* 728:696 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_LuV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV), new GT_Cover_SolarPanel(32768));
-/* 729:697 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_ZPM.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_ZPM), new GT_Cover_SolarPanel(131072));
-/* 730:698 */ GregTech_API.registerCover(ItemList.Cover_SolarPanel_UV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_UV), new GT_Cover_SolarPanel(524288));
-/* 731: */
-/* 732:700 */ ItemList.Tool_Sonictron.set(addItem(tLastID = 760, "Sonictron", "Bring your Music with you", new Object[] { Behaviour_Sonictron.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
-/* 733:701 */ ItemList.Tool_Cheat.set(addItem(tLastID = 761, "Debug Scanner", "Also an Infinite Energy Source", new Object[] { Behaviour_Scanner.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 64L) }));
-/* 734:702 */ setElectricStats(32000 + tLastID, -2000000000L, 1000000000L, -1L, -3L, false);
-/* 735:703 */ ItemList.Tool_Scanner.set(addItem(tLastID = 762, "Portable Scanner", "Tricorder", new Object[] { Behaviour_Scanner.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L) }));
-/* 736:704 */ setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -1L, false);
-/* 737:705 */ GT_ModHandler.addCraftingRecipe(ItemList.Tool_Scanner.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "EPR", "CSC", "PBP", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('E'), ItemList.Emitter_MV, Character.valueOf('R'), ItemList.Sensor_MV, Character.valueOf('S'), ItemList.Cover_Screen, Character.valueOf('B'), ItemList.Battery_RE_MV_Lithium });
-/* 738:706 */ ItemList.NC_SensorKit.set(addItem(tLastID = 763, "GregTech Sensor Kit", "", new Object[] { new Behaviour_SensorKit() }));
-/* 739:707 */ ItemList.Duct_Tape.set(addItem(tLastID = 764, "BrainTech Aerospace Advanced Reinforced Duct Tape FAL-84", "If you can't fix it with this, use more of it!", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), OreDictNames.craftingDuctTape }));
-/* 740:708 */ ItemList.McGuffium_239.set(addItem(tLastID = 765, "Mc Guffium 239", "42% better than Phlebotnium", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.SPIRITUS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L) }));
-/* 741: */
-/* 742:710 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 4L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2L), ItemList.Schematic.get(1L, new Object[0]), 3200, 4);
-/* 743:711 */ GT_Values.RA.addAssemblerRecipe(ItemList.Sensor_LV.get(1L, new Object[0]), ItemList.Emitter_LV.get(1L, new Object[0]), ItemList.NC_SensorKit.get(1L, new Object[0]), 1600, 2);
-/* 744: */
+ ItemList.Component_Sawblade_Diamond.set(addItem(tLastID = 721, "Diamond Sawblade", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 4L), OreDictNames.craftingDiamondBlade }));
+ ItemList.Component_Grinder_Diamond.set(addItem(tLastID = 722, "Diamond Grinding Head", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 6L), OreDictNames.craftingGrinder }));
+ ItemList.Component_Grinder_Tungsten.set(addItem(tLastID = 723, "Tungsten Grinding Head", "", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 6L), OreDictNames.craftingGrinder }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Component_Sawblade_Diamond.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { " D ", "DGD", " D ", Character.valueOf('D'), OrePrefixes.dustSmall.get(Materials.Diamond), Character.valueOf('G'), OrePrefixes.gearGt.get(Materials.CobaltBrass) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Component_Grinder_Diamond.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "DSD", "SIS", "DSD", Character.valueOf('I'), OreDictNames.craftingIndustrialDiamond, Character.valueOf('D'), OrePrefixes.dust.get(Materials.Diamond), Character.valueOf('S'), OrePrefixes.plate.get(Materials.Steel) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Component_Grinder_Tungsten.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "TST", "SIS", "TST", Character.valueOf('I'), OreDictNames.craftingIndustrialDiamond, Character.valueOf('T'), OrePrefixes.plate.get(Materials.Tungsten), Character.valueOf('S'), OrePrefixes.plate.get(Materials.Steel) });
+
+ ItemList.Upgrade_Muffler.set(addItem(tLastID = 727, "Muffler Upgrade", "Makes Machines silent", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L) }));
+ ItemList.Upgrade_Lock.set(addItem(tLastID = 728, "Lock Upgrade", "Protects your Machines", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 4L) }));
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Plastic, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 2L), ItemList.Upgrade_Muffler.get(1L, new Object[0]), 1600, 2);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iridium, 1L), ItemList.Upgrade_Lock.get(1L, new Object[0]), 6400, 16);
+
+ ItemList.Component_Filter.set(addItem(tLastID = 729, "Item Filter", "", new Object[] { new ItemData(Materials.Zinc, OrePrefixes.foil.mMaterialAmount * 16L, new MaterialStack[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L), OreDictNames.craftingFilter }));
+
+ GT_Values.RA.addAssemblerRecipe(GT_ModHandler.getIC2Item("carbonMesh", 4L), GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Zinc, 16L), ItemList.Component_Filter.get(1L, new Object[0]), 1600, 32);
+
+ ItemList.Cover_Controller.set(addItem(tLastID = 730, "Machine Controller", "Turns Machines ON/OFF", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+ ItemList.Cover_ActivityDetector.set(addItem(tLastID = 731, "Activity Detector", "Gives out Activity as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+ ItemList.Cover_FluidDetector.set(addItem(tLastID = 732, "Fluid Detector", "Gives out Fluid Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L) }));
+ ItemList.Cover_ItemDetector.set(addItem(tLastID = 733, "Item Detector", "Gives out Item Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TERRA, 1L) }));
+ ItemList.Cover_EnergyDetector.set(addItem(tLastID = 734, "Energy Detector", "Gives out Energy Amount as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
+ ItemList.Cover_PlayerDetector.set(addItem(tLastID = 735, "Player Detector", "Gives out close Players as Redstone", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+ GT_Values.RA.addAssemblerRecipe( ItemList.Sensor_EV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Titanium, 1L),ItemList.Cover_PlayerDetector.get(1L, new Object[0]), 3200, 128);
+
+ GregTech_API.registerCover(ItemList.Cover_Controller.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CONTROLLER) }), new GT_Cover_ControlsWork());
+ GregTech_API.registerCover(ItemList.Cover_ActivityDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_DoesWork());
+ GregTech_API.registerCover(ItemList.Cover_FluidDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_LiquidMeter());
+ GregTech_API.registerCover(ItemList.Cover_ItemDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ITEMDETECTOR) }), new GT_Cover_ItemMeter());
+ GregTech_API.registerCover(ItemList.Cover_EnergyDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ENERGYDETECTOR) }), new GT_Cover_EUMeter());
+ GregTech_API.registerCover(ItemList.Cover_PlayerDetector.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_PlayerDetector());
+
+ ItemList.Cover_Screen.set(addItem(tLastID = 740, "Computer Monitor", "Displays Data", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUX, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L) }));
+ ItemList.Cover_Crafting.set(addItem(tLastID = 744, "Crafting Table Cover", "Better than a wooden Workbench", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 4L) }));
+ ItemList.Cover_Drain.set(addItem(tLastID = 745, "Drain", "Absorbs Fluids and collects Rain", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+
+ ItemList.Cover_Shutter.set(addItem(tLastID = 749, "Shutter Module", "Blocks Inventory/Tank Side. Usage together with Machine Controller.", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 1L) }));
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Cover_Screen.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "AGA", "RPB", "ALA", Character.valueOf('A'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('L'), OrePrefixes.dust.get(Materials.Glowstone), Character.valueOf('R'), Dyes.dyeRed, Character.valueOf('G'), Dyes.dyeLime, Character.valueOf('B'), Dyes.dyeBlue, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Glass) });
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), new ItemStack(Items.iron_door, 1), ItemList.Cover_Shutter.get(2L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 2L), new ItemStack(Blocks.iron_bars, 2), ItemList.Cover_Drain.get(1L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Iron, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, Materials.WroughtIron, 1L), new ItemStack(Blocks.crafting_table, 1), ItemList.Cover_Crafting.get(1L, new Object[0]), 800, 16);
+
+ GregTech_API.registerCover(ItemList.Cover_Screen.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SCREEN) }), new GT_Cover_Screen());
+ GregTech_API.registerCover(ItemList.Cover_Crafting.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_CRAFTING) }), new GT_Cover_Crafting());
+ GregTech_API.registerCover(ItemList.Cover_Drain.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[0][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_DRAIN) }), new GT_Cover_Drain());
+ GregTech_API.registerCover(ItemList.Cover_Shutter.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[1][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SHUTTER) }), new GT_Cover_Shutter());
+
+ ItemList.Cover_SolarPanel.set(addItem(tLastID = 750, "Solar Panel", "May the Sun be with you", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 1L) }));
+ ItemList.Cover_SolarPanel_8V.set(addItem(tLastID = 751, "Solar Panel (8V)", "8 Volt Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 2L) }));
+ ItemList.Cover_SolarPanel_LV.set(addItem(tLastID = 752, "Solar Panel (LV)", "Low Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 4L) }));
+ ItemList.Cover_SolarPanel_MV.set(addItem(tLastID = 753, "Solar Panel (MV)", "Medium Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 8L) }));
+ ItemList.Cover_SolarPanel_HV.set(addItem(tLastID = 754, "Solar Panel (HV)", "High Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 16L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 16L) }));
+ ItemList.Cover_SolarPanel_EV.set(addItem(tLastID = 755, "Solar Panel (EV)", "Extreme Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 32L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 32L) }));
+ ItemList.Cover_SolarPanel_IV.set(addItem(tLastID = 756, "Solar Panel (IV)", "Insane Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
+ ItemList.Cover_SolarPanel_LuV.set(addItem(tLastID = 757, "Solar Panel (LuV)", "Ludicrous Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
+ ItemList.Cover_SolarPanel_ZPM.set(addItem(tLastID = 758, "Solar Panel (ZPM)", "ZPM Voltage Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
+ ItemList.Cover_SolarPanel_UV.set(addItem(tLastID = 759, "Solar Panel (UV)", "Ultimate Solar Panel", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 64L), new TC_Aspects.TC_AspectStack(TC_Aspects.TENEBRAE, 64L) }));
+
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL), new GT_Cover_SolarPanel(1));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_8V.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_8V), new GT_Cover_SolarPanel(8));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_LV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LV), new GT_Cover_SolarPanel(32));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_MV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_MV), new GT_Cover_SolarPanel(128));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_HV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_HV), new GT_Cover_SolarPanel(512));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_EV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_EV), new GT_Cover_SolarPanel(2048));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_IV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_IV), new GT_Cover_SolarPanel(8192));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_LuV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_LuV), new GT_Cover_SolarPanel(32768));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_ZPM.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_ZPM), new GT_Cover_SolarPanel(131072));
+ GregTech_API.registerCover(ItemList.Cover_SolarPanel_UV.get(1L, new Object[0]), new GT_RenderedTexture(Textures.BlockIcons.SOLARPANEL_UV), new GT_Cover_SolarPanel(524288));
+
+ ItemList.Tool_Sonictron.set(addItem(tLastID = 760, "Sonictron", "Bring your Music with you", new Object[] { Behaviour_Sonictron.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 4L) }));
+ ItemList.Tool_Cheat.set(addItem(tLastID = 761, "Debug Scanner", "Also an Infinite Energy Source", new Object[] { Behaviour_Scanner.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 64L) }));
+ setElectricStats(32000 + tLastID, -2000000000L, 1000000000L, -1L, -3L, false);
+ ItemList.Tool_Scanner.set(addItem(tLastID = 762, "Portable Scanner", "Tricorder", new Object[] { Behaviour_Scanner.INSTANCE, new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 6L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 6L) }));
+ setElectricStats(32000 + tLastID, 400000L, GT_Values.V[2], 2L, -1L, false);
+ GT_ModHandler.addCraftingRecipe(ItemList.Tool_Scanner.get(1L, new Object[0]), GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "EPR", "CSC", "PBP", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Advanced), Character.valueOf('P'), OrePrefixes.plate.get(Materials.Aluminium), Character.valueOf('E'), ItemList.Emitter_MV, Character.valueOf('R'), ItemList.Sensor_MV, Character.valueOf('S'), ItemList.Cover_Screen, Character.valueOf('B'), ItemList.Battery_RE_MV_Lithium });
+ ItemList.NC_SensorKit.set(addItem(tLastID = 763, "GregTech Sensor Kit", "", new Object[] { new Behaviour_SensorKit() }));
+ ItemList.Duct_Tape.set(addItem(tLastID = 764, "BrainTech Aerospace Advanced Reinforced Duct Tape FAL-84", "If you can't fix it with this, use more of it!", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), OreDictNames.craftingDuctTape }));
+ ItemList.McGuffium_239.set(addItem(tLastID = 765, "Mc Guffium 239", "42% better than Phlebotnium", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ALIENIS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.SPIRITUS, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITIUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.RADIO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.ELECTRUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 8L), new TC_Aspects.TC_AspectStack(TC_Aspects.STRONTIO, 8L) }));
+
+ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Good, 4L), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 2L), ItemList.Schematic.get(1L, new Object[0]), 3200, 4);
+ GT_Values.RA.addAssemblerRecipe(ItemList.Sensor_LV.get(1L, new Object[0]), ItemList.Emitter_LV.get(1L, new Object[0]), ItemList.NC_SensorKit.get(1L, new Object[0]), 1600, 2);
+
ItemList.Cover_RedstoneTransmitterExternal.set(addItem(tLastID = 741, "Redstone Transmitter (Out)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 676:644 */ ItemList.Cover_RedstoneTransmitterInternal.set(addItem(tLastID = 742, "Redstone Transmitter (In)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 676:644 */ ItemList.Cover_RedstoneReceiverExternal.set(addItem(tLastID = 746, "Redstone Receiver (Out)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 676:644 */ ItemList.Cover_RedstoneReceiverInternal.set(addItem(tLastID = 747, "Redstone Receiver (In)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
-/* 676:644 */
+ ItemList.Cover_RedstoneTransmitterInternal.set(addItem(tLastID = 742, "Redstone Transmitter (In)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+ ItemList.Cover_RedstoneReceiverExternal.set(addItem(tLastID = 746, "Redstone Receiver (Out)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+ ItemList.Cover_RedstoneReceiverInternal.set(addItem(tLastID = 747, "Redstone Receiver (In)", "Transfers Redstonesignals wireless", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 1L) }));
+
GregTech_API.registerCover(ItemList.Cover_RedstoneTransmitterExternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_RedstoneTransmitterExternal());
-/* 706:674 */ GregTech_API.registerCover(ItemList.Cover_RedstoneTransmitterInternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_RedstoneTransmitterInternal());
-/* 706:674 */ GregTech_API.registerCover(ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_RedstoneReceiverExternal());
-/* 706:674 */ GregTech_API.registerCover(ItemList.Cover_RedstoneReceiverInternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_RedstoneReceiverInternal());
-/* 706:674 */
+ GregTech_API.registerCover(ItemList.Cover_RedstoneTransmitterInternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_RedstoneTransmitterInternal());
+ GregTech_API.registerCover(ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_RedstoneReceiverExternal());
+ GregTech_API.registerCover(ItemList.Cover_RedstoneReceiverInternal.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FLUIDDETECTOR) }), new GT_Cover_RedstoneReceiverInternal());
+
GT_Values.RA.addAssemblerRecipe(ItemList.Emitter_EV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L),ItemList.Cover_RedstoneTransmitterExternal.get(1L, new Object[0]) , 3200, 128);
-/* 743:711 */ GT_Values.RA.addAssemblerRecipe( ItemList.Sensor_EV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L),ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0]), 3200, 128);
-/* 743:711 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Cover_RedstoneTransmitterInternal.get(1L, new Object[0]), new Object[]{ItemList.Cover_RedstoneTransmitterExternal.get(1L, new Object[0])});
+ GT_Values.RA.addAssemblerRecipe( ItemList.Sensor_EV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.StainlessSteel, 1L),ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0]), 3200, 128);
+ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Cover_RedstoneTransmitterInternal.get(1L, new Object[0]), new Object[]{ItemList.Cover_RedstoneTransmitterExternal.get(1L, new Object[0])});
GT_ModHandler.addShapelessCraftingRecipe(ItemList.Cover_RedstoneReceiverInternal.get(1L, new Object[0]), new Object[]{ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0])});
GT_ModHandler.addShapelessCraftingRecipe(ItemList.Cover_RedstoneTransmitterExternal.get(1L, new Object[0]), new Object[]{ItemList.Cover_RedstoneTransmitterInternal.get(1L, new Object[0])});
GT_ModHandler.addShapelessCraftingRecipe(ItemList.Cover_RedstoneReceiverExternal.get(1L, new Object[0]), new Object[]{ItemList.Cover_RedstoneReceiverInternal.get(1L, new Object[0])});
@@ -799,86 +799,86 @@ import net.minecraftforge.common.ForgeModContainer; GregTech_API.registerCover(ItemList.Cover_NeedsMaintainance.get(1L, new Object[0]), new GT_MultiTexture(new ITexture[] { Textures.BlockIcons.MACHINE_CASINGS[2][0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_ACTIVITYDETECTOR) }), new GT_Cover_NeedMaintainance());
GT_Values.RA.addAssemblerRecipe(ItemList.Emitter_MV.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Aluminium, 1L),ItemList.Cover_NeedsMaintainance.get(1L, new Object[0]) , 600, 24);
}
-/* 745: */
-/* 746: */ public boolean onEntityItemUpdate(EntityItem aItemEntity)
-/* 747: */ {
-/* 748:716 */ int aDamage = aItemEntity.getEntityItem().getItemDamage();
-/* 749:717 */ if ((aDamage < 32000) && (aDamage >= 0) && (!aItemEntity.worldObj.isRemote))
-/* 750: */ {
-/* 751:718 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
-/* 752:719 */ if ((aMaterial != null) && (aMaterial != Materials.Empty) && (aMaterial != Materials._NULL))
-/* 753: */ {
-/* 754:720 */ int tX = MathHelper.floor_double(aItemEntity.posX);int tY = MathHelper.floor_double(aItemEntity.posY);int tZ = MathHelper.floor_double(aItemEntity.posZ);
-/* 755:721 */ OrePrefixes aPrefix = this.mGeneratedPrefixList[(aDamage / 1000)];
-/* 756:722 */ if ((aPrefix == OrePrefixes.dustImpure) || (aPrefix == OrePrefixes.dustPure))
-/* 757: */ {
-/* 758:723 */ Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
-/* 759:724 */ byte tMetaData = (byte)aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
-/* 760:725 */ if ((tBlock == Blocks.cauldron) && (tMetaData > 0))
-/* 761: */ {
-/* 762:726 */ aItemEntity.setEntityItemStack(GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, aItemEntity.getEntityItem().stackSize));
-/* 763:727 */ aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
-/* 764:728 */ return true;
-/* 765: */ }
-/* 766: */ }
-/* 767:731 */ if (aPrefix == OrePrefixes.crushed)
-/* 768: */ {
-/* 769:732 */ Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
-/* 770:733 */ byte tMetaData = (byte)aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
-/* 771:734 */ if ((tBlock == Blocks.cauldron) && (tMetaData > 0))
-/* 772: */ {
-/* 773:735 */ aItemEntity.setEntityItemStack(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, aItemEntity.getEntityItem().stackSize));
-/* 774:736 */ aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
-/* 775:737 */ return true;
-/* 776: */ }
-/* 777: */ }
-/* 778: */ }
-/* 779: */ }
-/* 780:742 */ return false;
-/* 781: */ }
-/* 782: */
-/* 783: */ protected void addAdditionalToolTips(List aList, ItemStack aStack)
-/* 784: */ {
-/* 785:747 */ super.addAdditionalToolTips(aList, aStack);
-/* 786:748 */ int aDamage = aStack.getItemDamage();
-/* 787:749 */ if ((aDamage < 32000) && (aDamage >= 0))
-/* 788: */ {
-/* 789:750 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
-/* 790:751 */ if ((aMaterial != null) && (aMaterial != Materials.Empty) && (aMaterial != Materials._NULL))
-/* 791: */ {
-/* 792:752 */ OrePrefixes aPrefix = this.mGeneratedPrefixList[(aDamage / 1000)];
-/* 793:753 */ if ((aPrefix == OrePrefixes.dustImpure) || (aPrefix == OrePrefixes.dustPure)) {
-/* 794:754 */ aList.add(this.mToolTipPurify);
-/* 795: */ }
-/* 796: */ }
-/* 797: */ }
-/* 798: */ }
-/* 799: */
-/* 800: */ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
-/* 801: */ {
-/* 802:762 */ return (aDoShowAllItems) || (((aPrefix != OrePrefixes.gem) || (!aMaterial.name().startsWith("Infused"))) && (aPrefix != OrePrefixes.nugget) && (aPrefix != OrePrefixes.dustTiny) && (aPrefix != OrePrefixes.dustSmall) && (aPrefix != OrePrefixes.dustImpure) && (aPrefix != OrePrefixes.dustPure) && (aPrefix != OrePrefixes.crushed) && (aPrefix != OrePrefixes.crushedPurified) && (aPrefix != OrePrefixes.crushedCentrifuged) && (aPrefix != OrePrefixes.ingotHot) && (aPrefix != OrePrefixes.cellPlasma));
-/* 803: */ }
-/* 804: */
-/* 805: */ public ItemStack getContainerItem(ItemStack aStack)
-/* 806: */ {
-/* 807:767 */ int aDamage = aStack.getItemDamage();
-/* 808:768 */ if ((aDamage >= 32430) && (aDamage <= 32461)) {
-/* 809:768 */ return ItemList.Spray_Empty.get(1L, new Object[0]);
-/* 810: */ }
-/* 811:769 */ if ((aDamage == 32479) || (aDamage == 32476)) {
-/* 812:769 */ return new ItemStack(this, 1, aDamage - 2);
-/* 813: */ }
-/* 814:770 */ if (aDamage == 32401) {
-/* 815:770 */ return new ItemStack(this, 1, aDamage - 1);
-/* 816: */ }
-/* 817:771 */ return super.getContainerItem(aStack);
-/* 818: */ }
-/* 819: */
-/* 820: */ public boolean doesMaterialAllowGeneration(OrePrefixes aPrefix, Materials aMaterial)
-/* 821: */ {
-/* 822:776 */ return (super.doesMaterialAllowGeneration(aPrefix, aMaterial)) && ((aPrefix != OrePrefixes.ingotHot) || (aMaterial.mBlastFurnaceTemp > 1750));
-/* 823: */ }
-/* 824: */ }
+
+ public boolean onEntityItemUpdate(EntityItem aItemEntity)
+ {
+ int aDamage = aItemEntity.getEntityItem().getItemDamage();
+ if ((aDamage < 32000) && (aDamage >= 0) && (!aItemEntity.worldObj.isRemote))
+ {
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
+ if ((aMaterial != null) && (aMaterial != Materials.Empty) && (aMaterial != Materials._NULL))
+ {
+ int tX = MathHelper.floor_double(aItemEntity.posX);int tY = MathHelper.floor_double(aItemEntity.posY);int tZ = MathHelper.floor_double(aItemEntity.posZ);
+ OrePrefixes aPrefix = this.mGeneratedPrefixList[(aDamage / 1000)];
+ if ((aPrefix == OrePrefixes.dustImpure) || (aPrefix == OrePrefixes.dustPure))
+ {
+ Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
+ byte tMetaData = (byte)aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
+ if ((tBlock == Blocks.cauldron) && (tMetaData > 0))
+ {
+ aItemEntity.setEntityItemStack(GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, aItemEntity.getEntityItem().stackSize));
+ aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
+ return true;
+ }
+ }
+ if (aPrefix == OrePrefixes.crushed)
+ {
+ Block tBlock = aItemEntity.worldObj.getBlock(tX, tY, tZ);
+ byte tMetaData = (byte)aItemEntity.worldObj.getBlockMetadata(tX, tY, tZ);
+ if ((tBlock == Blocks.cauldron) && (tMetaData > 0))
+ {
+ aItemEntity.setEntityItemStack(GT_OreDictUnificator.get(OrePrefixes.crushedPurified, aMaterial, aItemEntity.getEntityItem().stackSize));
+ aItemEntity.worldObj.setBlockMetadataWithNotify(tX, tY, tZ, tMetaData - 1, 3);
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ protected void addAdditionalToolTips(List aList, ItemStack aStack)
+ {
+ super.addAdditionalToolTips(aList, aStack);
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage < 32000) && (aDamage >= 0))
+ {
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
+ if ((aMaterial != null) && (aMaterial != Materials.Empty) && (aMaterial != Materials._NULL))
+ {
+ OrePrefixes aPrefix = this.mGeneratedPrefixList[(aDamage / 1000)];
+ if ((aPrefix == OrePrefixes.dustImpure) || (aPrefix == OrePrefixes.dustPure)) {
+ aList.add(this.mToolTipPurify);
+ }
+ }
+ }
+ }
+
+ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
+ {
+ return (aDoShowAllItems) || (((aPrefix != OrePrefixes.gem) || (!aMaterial.name().startsWith("Infused"))) && (aPrefix != OrePrefixes.nugget) && (aPrefix != OrePrefixes.dustTiny) && (aPrefix != OrePrefixes.dustSmall) && (aPrefix != OrePrefixes.dustImpure) && (aPrefix != OrePrefixes.dustPure) && (aPrefix != OrePrefixes.crushed) && (aPrefix != OrePrefixes.crushedPurified) && (aPrefix != OrePrefixes.crushedCentrifuged) && (aPrefix != OrePrefixes.ingotHot) && (aPrefix != OrePrefixes.cellPlasma));
+ }
+
+ public ItemStack getContainerItem(ItemStack aStack)
+ {
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage >= 32430) && (aDamage <= 32461)) {
+ return ItemList.Spray_Empty.get(1L, new Object[0]);
+ }
+ if ((aDamage == 32479) || (aDamage == 32476)) {
+ return new ItemStack(this, 1, aDamage - 2);
+ }
+ if (aDamage == 32401) {
+ return new ItemStack(this, 1, aDamage - 1);
+ }
+ return super.getContainerItem(aStack);
+ }
+
+ public boolean doesMaterialAllowGeneration(OrePrefixes aPrefix, Materials aMaterial)
+ {
+ return (super.doesMaterialAllowGeneration(aPrefix, aMaterial)) && ((aPrefix != OrePrefixes.ingotHot) || (aMaterial.mBlastFurnaceTemp > 1750));
+ }
+}
/* 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/items/GT_MetaGenerated_Item_02.java b/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java index 3900fa02cf..ce339b1773 100644 --- a/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java +++ b/main/java/gregtech/common/items/GT_MetaGenerated_Item_02.java @@ -1,450 +1,450 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Dyes;
-/* 5: */ import gregtech.api.enums.GT_Values;
-/* 6: */ import gregtech.api.enums.ItemList;
-/* 7: */ import gregtech.api.enums.Materials;
-/* 8: */ import gregtech.api.enums.OrePrefixes;
-/* 9: */ import gregtech.api.enums.SubTag;
-/* 10: */ import gregtech.api.enums.TC_Aspects;
-/* 11: */ import gregtech.api.enums.TC_Aspects.TC_AspectStack;
-/* 12: */ import gregtech.api.items.GT_MetaGenerated_Item_X32;
-/* 13: */ import gregtech.api.objects.GT_CopiedBlockTexture;
-/* 14: */ import gregtech.api.objects.ItemData;
-/* 15: */ import gregtech.api.objects.MaterialStack;
-/* 16: */ import gregtech.api.util.GT_FoodStat;
-/* 17: */ import gregtech.api.util.GT_Log;
-/* 18: */ import gregtech.api.util.GT_ModHandler;
-/* 19: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
-/* 20: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 21: */ import gregtech.api.util.GT_Utility;
-/* 22: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 23: */ import gregtech.common.items.behaviors.Behaviour_Arrow;
-/* 24: */ import java.lang.reflect.Field;
-/* 25: */ import net.minecraft.dispenser.IBlockSource;
-/* 26: */ import net.minecraft.enchantment.Enchantment;
-/* 27: */ import net.minecraft.enchantment.EnumEnchantmentType;
-/* 28: */ import net.minecraft.entity.Entity;
-/* 29: */ import net.minecraft.entity.EntityLivingBase;
-/* 30: */ import net.minecraft.entity.player.EntityPlayer;
-/* 31: */ import net.minecraft.entity.projectile.EntityArrow;
-/* 32: */ import net.minecraft.init.Blocks;
-/* 33: */ import net.minecraft.init.Items;
-/* 34: */ import net.minecraft.item.EnumAction;
-/* 35: */ import net.minecraft.item.ItemStack;
-/* 36: */ import net.minecraft.nbt.NBTTagCompound;
-/* 37: */ import net.minecraft.potion.Potion;
-/* 38: */ import net.minecraft.world.World;
-/* 39: */
-/* 40: */ public class GT_MetaGenerated_Item_02
-/* 41: */ extends GT_MetaGenerated_Item_X32
-/* 42: */ {
-/* 43: */ public static GT_MetaGenerated_Item_02 INSTANCE;
-/* 44: */
-/* 45: */ public GT_MetaGenerated_Item_02()
-/* 46: */ {
-/* 47: 36 */ super("metaitem.02", new OrePrefixes[] { OrePrefixes.toolHeadSword, OrePrefixes.toolHeadPickaxe, OrePrefixes.toolHeadShovel, OrePrefixes.toolHeadAxe, OrePrefixes.toolHeadHoe, OrePrefixes.toolHeadHammer, OrePrefixes.toolHeadFile, OrePrefixes.toolHeadSaw, OrePrefixes.toolHeadDrill, OrePrefixes.toolHeadChainsaw, OrePrefixes.toolHeadWrench, OrePrefixes.toolHeadUniversalSpade, OrePrefixes.toolHeadSense, OrePrefixes.toolHeadPlow, OrePrefixes.toolHeadArrow, OrePrefixes.toolHeadBuzzSaw, OrePrefixes.turbineBlade , null, null, OrePrefixes.wireFine, OrePrefixes.gearGtSmall, OrePrefixes.rotor, OrePrefixes.stickLong, OrePrefixes.springSmall, OrePrefixes.spring, OrePrefixes.arrowGtWood, OrePrefixes.arrowGtPlastic, OrePrefixes.gemChipped, OrePrefixes.gemFlawed, OrePrefixes.gemFlawless, OrePrefixes.gemExquisite, OrePrefixes.gearGt});
-/* 48: 37 */ INSTANCE = this;
-/* 49: */
-/* 50: 39 */ int tLastID = 0;
-/* 51: */
-/* 52: 41 */ ItemList.ThermosCan_Dark_Coffee.set(addItem(tLastID = 0, "Dark Coffee", "Coffee, dark, without anything else", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 1, 70, Potion.digSpeed.id, 400, 1, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
-/* 53: 42 */ ItemList.ThermosCan_Dark_Cafe_au_lait.set(addItem(tLastID = 1, "Dark Coffee au lait", "Keeping you awake the whole night", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 2, 90, Potion.digSpeed.id, 400, 2, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L) }));
-/* 54: 43 */ ItemList.ThermosCan_Coffee.set(addItem(tLastID = 2, "Coffee", "Just the regular morning Coffee", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 0, 50, Potion.digSpeed.id, 400, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
-/* 55: 44 */ ItemList.ThermosCan_Cafe_au_lait.set(addItem(tLastID = 3, "Cafe au lait", "Sweet Coffee", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 1, 70, Potion.digSpeed.id, 400, 1, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
-/* 56: 45 */ ItemList.ThermosCan_Lait_au_cafe.set(addItem(tLastID = 4, "Lait au cafe", "You want Coffee to your Sugar?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 2, 90, Potion.digSpeed.id, 400, 2, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L) }));
-/* 57: 46 */ ItemList.ThermosCan_Dark_Chocolate_Milk.set(addItem(tLastID = 5, "Dark Chocolate Milk", "A bit bitter, better add a bit Sugar", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 50, 1, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 58: 47 */ ItemList.ThermosCan_Chocolate_Milk.set(addItem(tLastID = 6, "Chocolate Milk", "Sweet Goodness", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 50, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 2L) }));
-/* 59: 48 */ ItemList.ThermosCan_Tea.set(addItem(tLastID = 7, "Tea", "Keep calm and carry on", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 300, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 60: 49 */ ItemList.ThermosCan_Sweet_Tea.set(addItem(tLastID = 8, "Sweet Tea", "How about a Tea Party? In Boston?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 61: 50 */ ItemList.ThermosCan_Ice_Tea.set(addItem(tLastID = 9, "Ice Tea", "Better than this purple Junk Drink from failed Potions", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 300, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
-/* 62: */
-/* 63: 52 */ ItemList.Bottle_Purple_Drink.set(addItem(tLastID = 100, "Purple Drink", "How about Lemonade. Or some Ice Tea? I got Purple Drink!", new Object[] { new GT_FoodStat(8, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 400, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L) }));
-/* 64: 53 */ ItemList.Bottle_Grape_Juice.set(addItem(tLastID = 101, "Grape Juice", "This has a cleaning effect on your internals.", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 1, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 65: 54 */ ItemList.Bottle_Wine.set(addItem(tLastID = 102, "Wine", "Ordinary", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 60, Potion.heal.id, 0, 0, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 66: 55 */ ItemList.Bottle_Vinegar.set(addItem(tLastID = 103, "Vinegar", "Exquisite", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 90, Potion.heal.id, 0, 1, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 67: 56 */ ItemList.Bottle_Potato_Juice.set(addItem(tLastID = 104, "Potato Juice", "Ever seen Potato Juice in stores? No? That has a reason.", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(3, 0.3F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
-/* 68: 57 */ ItemList.Bottle_Vodka.set(addItem(tLastID = 105, "Vodka", "Not to confuse with Water", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 500, 0, 60, Potion.damageBoost.id, 500, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L) }));
-/* 69: 58 */ ItemList.Bottle_Leninade.set(addItem(tLastID = 106, "Leninade", "Let the Communism flow through you!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 500, 1, 90, Potion.damageBoost.id, 500, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L) }));
-/* 70: 59 */ ItemList.Bottle_Mineral_Water.set(addItem(tLastID = 107, "Mineral Water", "The best Stuff you can drink to stay healthy", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 100, 1, 10 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 71: 60 */ ItemList.Bottle_Salty_Water.set(addItem(tLastID = 108, "Salty Water", "Like Sea Water but less dirty", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(1, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 2, 95 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TEMPESTAS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 72: 61 */ ItemList.Bottle_Reed_Water.set(addItem(tLastID = 109, "Reed Water", "I guess this tastes better when fermented", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 73: 62 */ ItemList.Bottle_Rum.set(addItem(tLastID = 110, "Rum", "A buddle o' rum", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 0, 60, Potion.damageBoost.id, 300, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 74: 63 */ ItemList.Bottle_Pirate_Brew.set(addItem(tLastID = 111, "Pirate Brew", "Set the Sails, we are going to Torrentuga!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 1, 90, Potion.damageBoost.id, 300, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 2L) }));
-/* 75: 64 */ ItemList.Bottle_Hops_Juice.set(addItem(tLastID = 112, "Hops Juice", "Every Beer has a start", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
-/* 76: 65 */ ItemList.Bottle_Dark_Beer.set(addItem(tLastID = 113, "Dark Beer", "Dark Beer, for the real Men", new Object[] { new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 1, 60, Potion.damageBoost.id, 300, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
-/* 77: 66 */ ItemList.Bottle_Dragon_Blood.set(addItem(tLastID = 114, "Dragon Blood", "FUS RO DAH!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 2, 90, Potion.damageBoost.id, 300, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
-/* 78: 67 */ ItemList.Bottle_Wheaty_Juice.set(addItem(tLastID = 115, "Wheaty Juice", "Is this liquefied Bread or what?", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
-/* 79: 68 */ ItemList.Bottle_Scotch.set(addItem(tLastID = 116, "Scotch", "Technically this is just a Whisky", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.resistance.id, 400, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
-/* 80: 69 */ ItemList.Bottle_Glen_McKenner.set(addItem(tLastID = 117, "Glen McKenner", "Don't hand to easily surprised people, they will shatter it.", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 90, Potion.resistance.id, 400, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L) }));
-/* 81: 70 */ ItemList.Bottle_Wheaty_Hops_Juice.set(addItem(tLastID = 118, "Wheaty Hops Juice", "Also known as 'Duff-Lite'", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 2L) }));
-/* 82: 71 */ ItemList.Bottle_Beer.set(addItem(tLastID = 119, "Beer", "Good old Beer", new Object[] { new GT_FoodStat(6, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.digSpeed.id, 400, 2, 60, Potion.poison.id, 100, 0, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
-/* 83: 72 */ ItemList.Bottle_Chilly_Sauce.set(addItem(tLastID = 120, "Chilly Sauce", "Spicy", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 1000, 0, 10, Potion.fireResistance.id, 1000, 0, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 84: 73 */ ItemList.Bottle_Hot_Sauce.set(addItem(tLastID = 121, "Hot Sauce", "Very Spicy, I guess?", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 2000, 0, 30, Potion.fireResistance.id, 2000, 0, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L) }));
-/* 85: 74 */ ItemList.Bottle_Diabolo_Sauce.set(addItem(tLastID = 122, "Diabolo Sauce", "As if the Devil made this Sauce", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 3000, 1, 50, Potion.fireResistance.id, 3000, 0, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L) }));
-/* 86: 75 */ ItemList.Bottle_Diablo_Sauce.set(addItem(tLastID = 123, "Diablo Sauce", "Diablo always comes back!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 4000, 1, 70, Potion.fireResistance.id, 4000, 0, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 4L) }));
-/* 87: 76 */ ItemList.Bottle_Snitches_Glitch_Sauce.set(addItem(tLastID = 124, "Old Man Snitches glitched Diablo Sauce", "[Missing No]", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 9999, 2, 999, Potion.fireResistance.id, 9999, 9, 999 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 5L) }));
-/* 88: 77 */ ItemList.Bottle_Apple_Juice.set(addItem(tLastID = 125, "Apple Juice", "Made of the Apples from our best Oak Farms", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 0, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 89: 78 */ ItemList.Bottle_Cider.set(addItem(tLastID = 126, "Cider", "If you have nothing better to do with your Apples", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.resistance.id, 400, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
-/* 90: 79 */ ItemList.Bottle_Golden_Apple_Juice.set(addItem(tLastID = 127, "Golden Apple Juice", "A golden Apple in liquid form", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 0, 20, Potion.field_76444_x.id, 2400, 0, 100, Potion.regeneration.id, 100, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 91: 80 */ ItemList.Bottle_Golden_Cider.set(addItem(tLastID = 128, "Golden Cider", "More Resistance, less Regeneration", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.field_76444_x.id, 2400, 1, 95, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
-/* 92: 81 */ ItemList.Bottle_Iduns_Apple_Juice.set(addItem(tLastID = 129, "Idun's Apple Juice", "So you got the Idea of using Notch Apples for a drink?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 600, 4, 100, Potion.field_76444_x.id, 2400, 0, 100, Potion.resistance.id, 6000, 0, 100, Potion.fireResistance.id, 6000, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L) }));
-/* 93: 82 */ ItemList.Bottle_Notches_Brew.set(addItem(tLastID = 130, "Notches Brew", "This is just overpowered", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 700, 4, 95, Potion.field_76444_x.id, 3000, 1, 95, Potion.resistance.id, 7000, 1, 95, Potion.fireResistance.id, 7000, 0, 95, Potion.harm.id, 0, 2, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L) }));
-/* 94: 83 */ ItemList.Bottle_Lemon_Juice.set(addItem(tLastID = 131, "Lemon Juice", "Maybe adding Sugar will make it less sour", new Object[] { new GT_FoodStat(2, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 1200, 0, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
-/* 95: 84 */ ItemList.Bottle_Limoncello.set(addItem(tLastID = 132, "Limoncello", "An alcoholic Drink which tastes like Lemons", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 1200, 0, 90, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
-/* 96: 85 */ ItemList.Bottle_Lemonade.set(addItem(tLastID = 133, "Lemonade", "Cold and refreshing Lemonade", new Object[] { new GT_FoodStat(4, 0.3F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 900, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
-/* 97: 86 */ ItemList.Bottle_Alcopops.set(addItem(tLastID = 134, "Alcopops", "Don't let your Children drink this junk!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 900, 1, 90, Potion.poison.id, 300, 2, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L) }));
-/* 98: 87 */ ItemList.Bottle_Cave_Johnsons_Grenade_Juice.set(addItem(tLastID = 135, "Cave Johnson's Grenade Juice", "When life gives you Lemons, make Life take them Lemons back!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]).setExplosive(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 1L) }));
-/* 99: 88 */ ItemList.Bottle_Milk.set(addItem(tLastID = 136, "Milk", "Got Milk?", new Object[] { OrePrefixes.bottle.get(Materials.Milk), new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]).setMilk(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 100: 89 */ ItemList.Bottle_Holy_Water.set(addItem(tLastID = 137, "Holy Water", "May the holy Planks be with you", new Object[] { OrePrefixes.bottle.get(Materials.HolyWater), new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.poison.id, 100, 1, 100 }).setMilk(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
-/* 101: */
-/* 102: 91 */ ItemList.Food_Potato_On_Stick.set(addItem(tLastID = 200, "Potato on a Stick", "Totally looks like a Crab Claw", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));
-/* 103: 92 */ ItemList.Food_Potato_On_Stick_Roasted.set(addItem(tLastID = 201, "Roasted Potato on a Stick", "Still looks like a Crab Claw", new Object[] { new GT_FoodStat(6, 0.6F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 104: 93 */ ItemList.Food_Raw_Fries.set(addItem(tLastID = 202, "Potato Strips", "It's Potato in Stripe Form", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 105: 94 */ ItemList.Food_Fries.set(addItem(tLastID = 203, "Fries", "Not to confuse with Fry the Delivery Boy", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 106: 95 */ ItemList.Food_Packaged_Fries.set(addItem(tLastID = 204, "Fries", "Ketchup not included", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 107: 96 */ ItemList.Food_Raw_PotatoChips.set(addItem(tLastID = 205, "Potato Chips (Raw)", "Just like a Potato", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 108: 97 */ ItemList.Food_PotatoChips.set(addItem(tLastID = 206, "Potato Chips", "Crunchy", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 109: 98 */ ItemList.Food_ChiliChips.set(addItem(tLastID = 207, "Chili Chips", "Spicy", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 110: 99 */ ItemList.Food_Packaged_PotatoChips.set(addItem(tLastID = 208, "Bag of Potato Chips", "Full of delicious Air", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 111:100 */ ItemList.Food_Packaged_ChiliChips.set(addItem(tLastID = 209, "Bag of Chili Chips", "Stop making noises Baj!", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 112:101 */ ItemList.Food_Chum.set(addItem(tLastID = 210, "Chum", "Chum is Fum!", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, null, true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 113:102 */ ItemList.Food_Chum_On_Stick.set(addItem(tLastID = 211, "Chum on a Stick", "Don't forget to try our Chum-balaya", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, new ItemStack(Items.stick, 1), true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 114:103 */ ItemList.Food_Dough_Sugar.set(addItem(tLastID = 212, "Sugary Dough", "Don't eat the Dough before it is baken", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 115:104 */ ItemList.Food_Dough_Chocolate.set(addItem(tLastID = 213, "Chocolate Dough", "I said don't eat the Dough!", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 116:105 */ ItemList.Food_Raw_Cookie.set(addItem(tLastID = 214, "Cookie shaped Dough", "For baking Cookies", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 117: */
-/* 118:107 */ ItemList.Food_Sliced_Buns.set(addItem(tLastID =220, "Buns", "Pre Sliced", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 119:108 */ ItemList.Food_Burger_Veggie.set(addItem(tLastID = 221, "Veggieburger", "No matter how you call this, this is NOT a Burger!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 120:109 */ ItemList.Food_Burger_Cheese.set(addItem(tLastID = 222, "Cheeseburger", "Cheesy!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new ItemData(Materials.Cheese, 907200L, new MaterialStack[0]) }));
-/* 121:110 */ ItemList.Food_Burger_Meat.set(addItem(tLastID = 223, "Hamburger", "The Mc Burger Queen Burger", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 122:111 */ ItemList.Food_Burger_Chum.set(addItem(tLastID = 224, "Chumburger", "Fum is Chum!", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, null, true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 123: */
-/* 124:113 */ ItemList.Food_Sliced_Breads.set(addItem(tLastID = 230, "Breads", "Pre Sliced", new Object[] { new GT_FoodStat(5, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 125:114 */ ItemList.Food_Sandwich_Veggie.set(addItem(tLastID = 231, "Veggie Sandwich", "Meatless", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
-/* 126:115 */ ItemList.Food_Sandwich_Cheese.set(addItem(tLastID = 232, "Cheese Sandwich", "Say Cheese!", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
-/* 127:116 */ ItemList.Food_Sandwich_Bacon.set(addItem(tLastID = 233, "Bacon Sandwich", "The best Sandwich ever!", new Object[] { new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
-/* 128:117 */ ItemList.Food_Sandwich_Steak.set(addItem(tLastID = 234, "Steak Sandwich", "Not a 'Steam Sandwich'", new Object[] { new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
-/* 129: */
-/* 130:119 */ ItemList.Food_Sliced_Baguettes.set(addItem(tLastID = 240, "Baguettes", "Pre Sliced", new Object[] { new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 131:120 */ ItemList.Food_Large_Sandwich_Veggie.set(addItem(tLastID = 241, "Large Veggie Sandwich", "Just not worth it", new Object[] { new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 132:121 */ ItemList.Food_Large_Sandwich_Cheese.set(addItem(tLastID = 242, "Large Cheese Sandwich", "I need another cheesy tooltip for this", new Object[] { new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 133:122 */ ItemList.Food_Large_Sandwich_Bacon.set(addItem(tLastID = 243, "Large Bacon Sandwich", "For Men! (and manly Women)", new Object[] { new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 134:123 */ ItemList.Food_Large_Sandwich_Steak.set(addItem(tLastID = 244, "Large Steak Sandwich", "Yes, I once accidentially called it 'Steam Sandwich'", new Object[] { new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
-/* 135: */
-/* 136:125 */ ItemList.Food_Raw_Pizza_Veggie.set(addItem(tLastID = 250, "Raw Veggie Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 137:126 */ ItemList.Food_Raw_Pizza_Cheese.set(addItem(tLastID = 251, "Raw Cheese Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 138:127 */ ItemList.Food_Raw_Pizza_Meat.set(addItem(tLastID = 252, "Raw Mince Meat Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 139: */
-/* 140:129 */ ItemList.Food_Baked_Pizza_Veggie.set(addItem(tLastID = 260, "Veggie Pizza", "The next they want is Gluten Free Pizzas...", new Object[] { new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 141:130 */ ItemList.Food_Baked_Pizza_Cheese.set(addItem(tLastID = 261, "Cheese Pizza", "Pizza Magarita", new Object[] { new GT_FoodStat(4, 0.4F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 142:131 */ ItemList.Food_Baked_Pizza_Meat.set(addItem(tLastID = 262, "Mince Meat Pizza", "Emo Pizza, it cuts itself!", new Object[] { new GT_FoodStat(5, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 143: */
-/* 144: */
-/* 145:134 */ ItemList.Dye_Indigo.set(addItem(tLastID = 410, "Indigo Dye", "Blue Dye", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), Dyes.dyeBlue }));
-/* 146:136 */ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
-/* 147:137 */ ItemList.DYE_ONLY_ITEMS[i].set(addItem(tLastID = 414 + i, Dyes.get(i).mName + " Dye", "", new Object[] { Dyes.get(i).name(), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
-/* 148: */ }
-/* 149:142 */ ItemList.Plank_Oak.set(addItem(tLastID = 470, "Oak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 150:143 */ ItemList.Plank_Spruce.set(addItem(tLastID = 471, "Spruce Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 151:144 */ ItemList.Plank_Birch.set(addItem(tLastID = 472, "Birch Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 152:145 */ ItemList.Plank_Jungle.set(addItem(tLastID = 473, "Jungle Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 153:146 */ ItemList.Plank_Acacia.set(addItem(tLastID = 474, "Acacia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 154:147 */ ItemList.Plank_DarkOak.set(addItem(tLastID = 475, "Dark Oak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 155:148 */ ItemList.Plank_Larch.set(addItem(tLastID = 476, "Larch Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 156:149 */ ItemList.Plank_Teak.set(addItem(tLastID = 477, "Teak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 157:150 */ ItemList.Plank_Acacia_Green.set(addItem(tLastID = 478, "Green Acacia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 158:151 */ ItemList.Plank_Lime.set(addItem(tLastID = 479, "Lime Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 159:152 */ ItemList.Plank_Chestnut.set(addItem(tLastID = 480, "Chestnut Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 160:153 */ ItemList.Plank_Wenge.set(addItem(tLastID = 481, "Wenge Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 161:154 */ ItemList.Plank_Baobab.set(addItem(tLastID = 482, "Baobab Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 162:155 */ ItemList.Plank_Sequoia.set(addItem(tLastID = 483, "Sequoia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 163:156 */ ItemList.Plank_Kapok.set(addItem(tLastID = 484, "Kapok Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 164:157 */ ItemList.Plank_Ebony.set(addItem(tLastID = 485, "Ebony Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 165:158 */ ItemList.Plank_Mahagony.set(addItem(tLastID = 486, "Mahagony Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 166:159 */ ItemList.Plank_Balsa.set(addItem(tLastID = 487, "Balsa Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 167:160 */ ItemList.Plank_Willow.set(addItem(tLastID = 488, "Willow Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 168:161 */ ItemList.Plank_Walnut.set(addItem(tLastID = 489, "Walnut Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 169:162 */ ItemList.Plank_Greenheart.set(addItem(tLastID = 490, "Greenheart Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 170:163 */ ItemList.Plank_Cherry.set(addItem(tLastID = 491, "Cherry Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 171:164 */ ItemList.Plank_Mahoe.set(addItem(tLastID = 492, "Mahoe Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 172:165 */ ItemList.Plank_Poplar.set(addItem(tLastID = 493, "Poplar Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 173:166 */ ItemList.Plank_Palm.set(addItem(tLastID = 494, "Palm Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 174:167 */ ItemList.Plank_Papaya.set(addItem(tLastID = 495, "Papaya Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 175:168 */ ItemList.Plank_Pine.set(addItem(tLastID = 496, "Pine Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 176:169 */ ItemList.Plank_Plum.set(addItem(tLastID = 497, "Plum Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 177:170 */ ItemList.Plank_Maple.set(addItem(tLastID = 498, "Maple Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 178:171 */ ItemList.Plank_Citrus.set(addItem(tLastID = 499, "Citrus Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
-/* 179: */
-/* 180:173 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Oak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 0) });
-/* 181:174 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Spruce.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 1) });
-/* 182:175 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Birch.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 2) });
-/* 183:176 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Jungle.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 3) });
-/* 184:177 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Acacia.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 4) });
-/* 185:178 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_DarkOak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 5) });
-/* 186:179 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Larch.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 0) });
-/* 187:180 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Teak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 1) });
-/* 188:181 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Acacia_Green.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 2) });
-/* 189:182 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Lime.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 3) });
-/* 190:183 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Chestnut.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 4) });
-/* 191:184 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Wenge.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 5) });
-/* 192:185 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Baobab.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 6) });
-/* 193:186 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Sequoia.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 7) });
-/* 194:187 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Kapok.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 0) });
-/* 195:188 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Ebony.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 1) });
-/* 196:189 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Mahagony.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 2) });
-/* 197:190 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Balsa.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 3) });
-/* 198:191 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Willow.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 4) });
-/* 199:192 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Walnut.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 5) });
-/* 200:193 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Greenheart.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 6) });
-/* 201:194 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Cherry.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 7) });
-/* 202:195 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Mahoe.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 0) });
-/* 203:196 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Poplar.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 1) });
-/* 204:197 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Palm.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 2) });
-/* 205:198 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Papaya.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 3) });
-/* 206:199 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Pine.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 4) });
-/* 207:200 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Plum.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 5) });
-/* 208:201 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Maple.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 6) });
-/* 209:202 */ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Citrus.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 7) });
-/* 210: */
-/* 211:204 */ GregTech_API.registerCover(ItemList.Plank_Oak.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 0), null);
-/* 212:205 */ GregTech_API.registerCover(ItemList.Plank_Spruce.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 1), null);
-/* 213:206 */ GregTech_API.registerCover(ItemList.Plank_Birch.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 2), null);
-/* 214:207 */ GregTech_API.registerCover(ItemList.Plank_Jungle.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 3), null);
-/* 215:208 */ GregTech_API.registerCover(ItemList.Plank_Acacia.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 4), null);
-/* 216:209 */ GregTech_API.registerCover(ItemList.Plank_DarkOak.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 5), null);
-/* 217:210 */ GregTech_API.registerCover(ItemList.Plank_Larch.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 0, new ItemStack(Blocks.planks, 1, 0))), 0, 0), null);
-/* 218:211 */ GregTech_API.registerCover(ItemList.Plank_Teak.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 1, new ItemStack(Blocks.planks, 1, 0))), 0, 1), null);
-/* 219:212 */ GregTech_API.registerCover(ItemList.Plank_Acacia_Green.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 2, new ItemStack(Blocks.planks, 1, 0))), 0, 2), null);
-/* 220:213 */ GregTech_API.registerCover(ItemList.Plank_Lime.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 3, new ItemStack(Blocks.planks, 1, 0))), 0, 3), null);
-/* 221:214 */ GregTech_API.registerCover(ItemList.Plank_Chestnut.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 4, new ItemStack(Blocks.planks, 1, 0))), 0, 4), null);
-/* 222:215 */ GregTech_API.registerCover(ItemList.Plank_Wenge.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 5, new ItemStack(Blocks.planks, 1, 0))), 0, 5), null);
-/* 223:216 */ GregTech_API.registerCover(ItemList.Plank_Baobab.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 6, new ItemStack(Blocks.planks, 1, 0))), 0, 6), null);
-/* 224:217 */ GregTech_API.registerCover(ItemList.Plank_Sequoia.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 7, new ItemStack(Blocks.planks, 1, 0))), 0, 7), null);
-/* 225:218 */ GregTech_API.registerCover(ItemList.Plank_Kapok.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 8, new ItemStack(Blocks.planks, 1, 0))), 0, 8), null);
-/* 226:219 */ GregTech_API.registerCover(ItemList.Plank_Ebony.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 9, new ItemStack(Blocks.planks, 1, 0))), 0, 9), null);
-/* 227:220 */ GregTech_API.registerCover(ItemList.Plank_Mahagony.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 10, new ItemStack(Blocks.planks, 1, 0))), 0, 10), null);
-/* 228:221 */ GregTech_API.registerCover(ItemList.Plank_Balsa.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 11, new ItemStack(Blocks.planks, 1, 0))), 0, 11), null);
-/* 229:222 */ GregTech_API.registerCover(ItemList.Plank_Willow.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 12, new ItemStack(Blocks.planks, 1, 0))), 0, 12), null);
-/* 230:223 */ GregTech_API.registerCover(ItemList.Plank_Walnut.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 13, new ItemStack(Blocks.planks, 1, 0))), 0, 13), null);
-/* 231:224 */ GregTech_API.registerCover(ItemList.Plank_Greenheart.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 14, new ItemStack(Blocks.planks, 1, 0))), 0, 14), null);
-/* 232:225 */ GregTech_API.registerCover(ItemList.Plank_Cherry.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 15, new ItemStack(Blocks.planks, 1, 0))), 0, 15), null);
-/* 233:226 */ GregTech_API.registerCover(ItemList.Plank_Mahoe.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 0, new ItemStack(Blocks.planks, 1, 0))), 0, 0), null);
-/* 234:227 */ GregTech_API.registerCover(ItemList.Plank_Poplar.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 1, new ItemStack(Blocks.planks, 1, 0))), 0, 1), null);
-/* 235:228 */ GregTech_API.registerCover(ItemList.Plank_Palm.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 2, new ItemStack(Blocks.planks, 1, 0))), 0, 2), null);
-/* 236:229 */ GregTech_API.registerCover(ItemList.Plank_Papaya.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 3, new ItemStack(Blocks.planks, 1, 0))), 0, 3), null);
-/* 237:230 */ GregTech_API.registerCover(ItemList.Plank_Pine.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 4, new ItemStack(Blocks.planks, 1, 0))), 0, 4), null);
-/* 238:231 */ GregTech_API.registerCover(ItemList.Plank_Plum.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 5, new ItemStack(Blocks.planks, 1, 0))), 0, 5), null);
-/* 239:232 */ GregTech_API.registerCover(ItemList.Plank_Maple.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 6, new ItemStack(Blocks.planks, 1, 0))), 0, 6), null);
-/* 240:233 */ GregTech_API.registerCover(ItemList.Plank_Citrus.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 7, new ItemStack(Blocks.planks, 1, 0))), 0, 7), null);
-/* 241: */
-/* 242:235 */ ItemList.Crop_Drop_Plumbilia.set(addItem(tLastID = 500, "Plumbilia Leaf", "Source of Lead", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L) }));
-/* 243:236 */ ItemList.Crop_Drop_Argentia.set(addItem(tLastID = 501, "Argentia Leaf", "Source of Silver", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 244:237 */ ItemList.Crop_Drop_Indigo.set(addItem(tLastID = 502, "Indigo Blossom", "Used for making Blue Dye", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
-/* 245:238 */ ItemList.Crop_Drop_Ferru.set(addItem(tLastID = 503, "Ferru Leaf", "Source of Iron", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
-/* 246:239 */ ItemList.Crop_Drop_Aurelia.set(addItem(tLastID = 504, "Aurelia Leaf", "Source of Gold", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 247:240 */ ItemList.Crop_Drop_TeaLeaf.set(addItem(tLastID = 505, "Tea Leaf", "Source of Tea", new Object[] { "cropTea", new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 248: */
-/* 249:242 */ ItemList.Crop_Drop_OilBerry.set(addItem(tLastID = 510, "Oil Berry", "Oil in Berry form", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
-/* 250:243 */ ItemList.Crop_Drop_BobsYerUncleRanks.set(addItem(tLastID = 511, "Bobs-Yer-Uncle-Berry", "Source of Emeralds", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 251: */
-/* 252:245 */ ItemList.Crop_Drop_MilkWart.set(addItem(tLastID = 520, "Milk Wart", "Source of Milk", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
-/* 253: */
-/* 254:247 */ ItemList.Crop_Drop_Coppon.set(addItem(tLastID = 530, "Coppon Fiber", "ORANGE WOOOOOOOL!!!", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L) }));
-/* 255: */
-/* 256:249 */ ItemList.Crop_Drop_Tine.set(addItem(tLastID = 540, "Tine Twig", "Source of Tin", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 100);
-/* 257: */
-/* 258:251 */ ItemList.Crop_Drop_Chilly.set(addItem(tLastID = 550, "Chilly Pepper", "It is red and hot", new Object[] { "cropChilipepper", new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[] { Potion.confusion.id, 200, 1, 40 }), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 259:252 */ ItemList.Crop_Drop_Lemon.set(addItem(tLastID = 551, "Lemon", "Don't make Lemonade", new Object[] { "cropLemon", new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 260:253 */ ItemList.Crop_Drop_Tomato.set(addItem(tLastID = 552, "Tomato", "Solid Ketchup", new Object[] { "cropTomato", new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 261:254 */ ItemList.Crop_Drop_MTomato.set(addItem(tLastID = 553, "Max Tomato", "Full Health in one Tomato", new Object[] { "cropTomato", new GT_FoodStat(9, 1.0F, EnumAction.eat, null, false, true, false, new int[] { Potion.regeneration.id, 100, 100, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 262:255 */ ItemList.Crop_Drop_Grapes.set(addItem(tLastID = 554, "Grapes", "Source of Wine", new Object[] { "cropGrape", new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 263:256 */ ItemList.Crop_Drop_Onion.set(addItem(tLastID = 555, "Onion", "Taking over the whole Taste", new Object[] { "cropOnion", new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 264:257 */ ItemList.Crop_Drop_Cucumber.set(addItem(tLastID = 556, "Cucumber", "Not a Sea Cucumber!", new Object[] { "cropCucumber", new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 265: */
-/* 266:259 */ ItemList.Food_Cheese.set(addItem(tLastID = 558, "Cheese", "Click the Cheese", new Object[] { "foodCheese", new GT_FoodStat(3, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L) }));
-/* 267:260 */ ItemList.Food_Dough.set(addItem(tLastID = 559, "Dough", "For making Breads", new Object[] { "foodDough", new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 268:261 */ ItemList.Food_Flat_Dough.set(addItem(tLastID = 560, "Flattened Dough", "For making Pizza", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 269:262 */ ItemList.Food_Raw_Bread.set(addItem(tLastID = 561, "Dough", "In Bread Shape", new Object[] { new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 270:263 */ ItemList.Food_Raw_Bun.set(addItem(tLastID = 562, "Dough", "In Bun Shape", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 271:264 */ ItemList.Food_Raw_Baguette.set(addItem(tLastID = 563, "Dough", "In Baguette Shape", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 272:265 */ ItemList.Food_Baked_Bun.set(addItem(tLastID = 564, "Bun", "Do not teleport Bread!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 273:266 */ ItemList.Food_Baked_Baguette.set(addItem(tLastID = 565, "Baguette", "I teleported nothing BUT Bread!!!", new Object[] { new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 274:267 */ ItemList.Food_Sliced_Bread.set(addItem(tLastID = 566, "Sliced Bread", "Just half a Bread", new Object[] { new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 275:268 */ ItemList.Food_Sliced_Bun.set(addItem(tLastID = 567, "Sliced Bun", "Just half a Bun", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 276:269 */ ItemList.Food_Sliced_Baguette.set(addItem(tLastID = 568, "Sliced Baguette", "Just half a Baguette", new Object[] { new GT_FoodStat(4, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
-/* 277:270 */ ItemList.Food_Raw_Cake.set(addItem(tLastID = 569, "Cake Bottom", "For making Cake", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 278:271 */ ItemList.Food_Baked_Cake.set(addItem(tLastID = 570, "Baked Cake Bottom", "I know I promised you an actual Cake, but well...", new Object[] { new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 279:272 */ ItemList.Food_Sliced_Lemon.set(addItem(tLastID = 571, "Lemon Slice", "Ideal to put on your Drink", new Object[] { new GT_FoodStat(1, 0.075F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 280:273 */ ItemList.Food_Sliced_Tomato.set(addItem(tLastID = 572, "Tomato Slice", "Solid Ketchup", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 281:274 */ ItemList.Food_Sliced_Onion.set(addItem(tLastID = 573, "Onion Slice", "ONIONS, UNITE!", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 282:275 */ ItemList.Food_Sliced_Cucumber.set(addItem(tLastID = 574, "Cucumber Slice", "QUEWWW-CUMMM-BERRR!!!", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
-/* 283: */
-/* 284:277 */ ItemList.Food_Sliced_Cheese.set(addItem(tLastID = 576, "Cheese Slice", "ALIEN ATTACK!!!, throw the CHEEEEESE!!!", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
-/* 285: */
-/* 286:279 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 0), new ItemStack(Items.dye, 2, 1));
-/* 287:280 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 1), new ItemStack(Items.dye, 2, 12));
-/* 288:281 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 2), new ItemStack(Items.dye, 2, 13));
-/* 289:282 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 3), new ItemStack(Items.dye, 2, 7));
-/* 290:283 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 4), new ItemStack(Items.dye, 2, 1));
-/* 291:284 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 5), new ItemStack(Items.dye, 2, 14));
-/* 292:285 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 6), new ItemStack(Items.dye, 2, 7));
-/* 293:286 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 7), new ItemStack(Items.dye, 2, 9));
-/* 294:287 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 8), new ItemStack(Items.dye, 2, 7));
-/* 295:288 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.yellow_flower, 1, 0), new ItemStack(Items.dye, 2, 11));
-/* 296:289 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 0), new ItemStack(Items.dye, 3, 11));
-/* 297:290 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 1), new ItemStack(Items.dye, 3, 13));
-/* 298:291 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 4), new ItemStack(Items.dye, 3, 1));
-/* 299:292 */ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 5), new ItemStack(Items.dye, 3, 9));
-/* 300:293 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Plumbilia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L));
-/* 301:294 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Argentia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1L));
-/* 302:295 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Indigo.get(1L, new Object[0]), ItemList.Dye_Indigo.get(1L, new Object[0]));
-/* 303:296 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Ferru.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1L));
-/* 304:297 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Aurelia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1L));
-/* 305:298 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_BobsYerUncleRanks.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Emerald, 1L));
-/* 306:299 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_MilkWart.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Milk, 1L));
-/* 307:300 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Coppon.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L));
-/* 308:301 */ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Tine.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1L));
-/* 309: */
-/* 310:303 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Coppon.get(4L, new Object[0]), new ItemStack(Blocks.wool, 1, 1));
-/* 311:304 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Plumbilia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 312:305 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Argentia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 313:306 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Indigo.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 314:307 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Ferru.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 315:308 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Aurelia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 316:309 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_OilBerry.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 317:310 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_BobsYerUncleRanks.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 318:311 */ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Tine.get(4L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 319:312 */ GT_ModHandler.addCompressionRecipe(new ItemStack(Blocks.red_flower, 8, 32767), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 320:313 */ GT_ModHandler.addCompressionRecipe(new ItemStack(Blocks.yellow_flower, 8, 32767), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
-/* 321: */
-/* 322:315 */ GT_ModHandler.addPulverisationRecipe(ItemList.Food_Sliced_Cheese.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cheese, 1L));
-/* 323:316 */ GT_ModHandler.addPulverisationRecipe(ItemList.Dye_Cocoa.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L));
-/* 324:317 */ GT_ModHandler.addPulverisationRecipe(ItemList.Crop_Drop_Tine.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L));
-/* 325:318 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.reeds, 1), new ItemStack(Items.sugar, 1), null, 0, false);
-/* 326:319 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.melon_block, 1, 0), new ItemStack(Items.melon, 8, 0), new ItemStack(Items.melon_seeds, 1), 80, false);
-/* 327:320 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.pumpkin, 1, 0), new ItemStack(Items.pumpkin_seeds, 4, 0), null, 0, false);
-/* 328:321 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.melon, 1, 0), new ItemStack(Items.melon_seeds, 1, 0), null, 0, false);
-/* 329:322 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.wheat, 1, 0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), null, 0, false);
-/* 330:323 */ GT_ModHandler.addPulverisationRecipe(GT_ModHandler.getIC2Item("crop", 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), null, 0, false);
-/* 331:324 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.stick, 1), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), null, 0, false);
-/* 332:325 */ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.wool, 1, 32767), new ItemStack(Items.string, 2), new ItemStack(Items.string, 1), 50, false);
-/* 333: */ try
-/* 334: */ {
-/* 335: */ Object tCrop;
-/* 336:329 */ GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[13], "mDrop").set(tCrop, ItemList.Crop_Drop_Ferru.get(1L, new Object[0]));
-/* 337:330 */ GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[14], "mDrop").set(tCrop, ItemList.Crop_Drop_Aurelia.get(1L, new Object[0]));
-/* 338: */ }
-/* 339: */ catch (Throwable e)
-/* 340: */ {
-/* 341:332 */ if (GT_Values.D1) {
-/* 342:332 */ e.printStackTrace(GT_Log.err);
-/* 343: */ }
-/* 344: */ }
-/* 345:335 */ ItemList.Display_ITS_FREE.set(addItem(tLastID = 766, "ITS FREE", "(or at least almost free)", new Object[] { SubTag.INVISIBLE, new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
-/* 346: */ }
-/* 347: */
-/* 348: */ public boolean onLeftClickEntity(ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 349: */ {
-/* 350:340 */ super.onLeftClickEntity(aStack, aPlayer, aEntity);
-/* 351:341 */ int aDamage = aStack.getItemDamage();
-/* 352:342 */ if ((aDamage >= 25000) && (aDamage < 27000))
-/* 353: */ {
-/* 354:343 */ if (aDamage >= 26000) {
-/* 355:343 */ return Behaviour_Arrow.DEFAULT_PLASTIC.onLeftClickEntity(this, aStack, aPlayer, aEntity);
-/* 356: */ }
-/* 357:344 */ return Behaviour_Arrow.DEFAULT_WOODEN.onLeftClickEntity(this, aStack, aPlayer, aEntity);
-/* 358: */ }
-/* 359:346 */ return false;
-/* 360: */ }
-/* 361: */
-/* 362: */ public boolean hasProjectile(SubTag aProjectileType, ItemStack aStack)
-/* 363: */ {
-/* 364:351 */ int aDamage = aStack.getItemDamage();
-/* 365:352 */ return ((aDamage >= 25000) && (aDamage < 27000)) || (super.hasProjectile(aProjectileType, aStack));
-/* 366: */ }
-/* 367: */
-/* 368: */ public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
-/* 369: */ {
-/* 370:357 */ int aDamage = aStack.getItemDamage();
-/* 371:358 */ if ((aDamage >= 25000) && (aDamage < 27000))
-/* 372: */ {
-/* 373:359 */ if (aDamage >= 26000) {
-/* 374:359 */ return Behaviour_Arrow.DEFAULT_PLASTIC.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ);
-/* 375: */ }
-/* 376:360 */ return Behaviour_Arrow.DEFAULT_WOODEN.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ);
-/* 377: */ }
-/* 378:362 */ return super.getProjectile(aProjectileType, aStack, aWorld, aX, aY, aZ);
-/* 379: */ }
-/* 380: */
-/* 381: */ public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 382: */ {
-/* 383:367 */ int aDamage = aStack.getItemDamage();
-/* 384:368 */ if ((aDamage >= 25000) && (aDamage < 27000))
-/* 385: */ {
-/* 386:369 */ if (aDamage >= 26000) {
-/* 387:369 */ return Behaviour_Arrow.DEFAULT_PLASTIC.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
-/* 388: */ }
-/* 389:370 */ return Behaviour_Arrow.DEFAULT_WOODEN.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
-/* 390: */ }
-/* 391:372 */ return super.getProjectile(aProjectileType, aStack, aWorld, aEntity, aSpeed);
-/* 392: */ }
-/* 393: */
-/* 394: */ public boolean isItemStackUsable(ItemStack aStack)
-/* 395: */ {
-/* 396:377 */ int aDamage = aStack.getItemDamage();
-/* 397:378 */ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
-/* 398:379 */ if ((aDamage >= 25000) && (aDamage < 27000) && (aMaterial != null) && (aMaterial.mEnchantmentTools != null))
-/* 399: */ {
-/* 400:380 */ Enchantment tEnchant = aMaterial.mEnchantmentTools == Enchantment.fortune ? Enchantment.looting : aMaterial.mEnchantmentTools;
-/* 401:381 */ if (tEnchant.type == EnumEnchantmentType.weapon)
-/* 402: */ {
-/* 403:382 */ NBTTagCompound tNBT = GT_Utility.ItemNBT.getNBT(aStack);
-/* 404:383 */ if (!tNBT.getBoolean("GT.HasBeenUpdated"))
-/* 405: */ {
-/* 406:384 */ tNBT.setBoolean("GT.HasBeenUpdated", true);
-/* 407:385 */ GT_Utility.ItemNBT.setNBT(aStack, tNBT);
-/* 408:386 */ GT_Utility.ItemNBT.addEnchantment(aStack, tEnchant, aMaterial.mEnchantmentToolsLevel);
-/* 409: */ }
-/* 410: */ }
-/* 411: */ }
-/* 412:390 */ return super.isItemStackUsable(aStack);
-/* 413: */ }
-/* 414: */
-/* 415: */ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
-/* 416: */ {
-/* 417:395 */ return (aDoShowAllItems) || (!aPrefix.name().startsWith("toolHead"));
-/* 418: */ }
-/* 419: */
-/* 420: */ public ItemStack onDispense(IBlockSource aSource, ItemStack aStack)
-/* 421: */ {
-/* 422:400 */ int aDamage = aStack.getItemDamage();
-/* 423:401 */ if ((aDamage >= 25000) && (aDamage < 27000))
-/* 424: */ {
-/* 425:402 */ if (aDamage >= 26000) {
-/* 426:402 */ return Behaviour_Arrow.DEFAULT_PLASTIC.onDispense(this, aSource, aStack);
-/* 427: */ }
-/* 428:403 */ return Behaviour_Arrow.DEFAULT_WOODEN.onDispense(this, aSource, aStack);
-/* 429: */ }
-/* 430:405 */ return super.onDispense(aSource, aStack);
-/* 431: */ }
-/* 432: */
-/* 433: */ public final ItemStack getContainerItem(ItemStack aStack)
-/* 434: */ {
-/* 435:410 */ int aDamage = aStack.getItemDamage();
-/* 436:411 */ if (aDamage < 32000) {
-/* 437:411 */ return null;
-/* 438: */ }
-/* 439:412 */ if (aDamage < 32100) {
-/* 440:412 */ return ItemList.ThermosCan_Empty.get(1L, new Object[0]);
-/* 441: */ }
-/* 442:413 */ if (aDamage < 32200) {
-/* 443:413 */ return ItemList.Bottle_Empty.get(1L, new Object[0]);
-/* 444: */ }
-/* 445:414 */ return null;
-/* 446: */ }
-/* 447: */ }
+package gregtech.common.items;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.SubTag;
+import gregtech.api.enums.TC_Aspects;
+import gregtech.api.enums.TC_Aspects.TC_AspectStack;
+import gregtech.api.items.GT_MetaGenerated_Item_X32;
+import gregtech.api.objects.GT_CopiedBlockTexture;
+import gregtech.api.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_FoodStat;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler.RecipeBits;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import gregtech.common.items.behaviors.Behaviour_Arrow;
+import java.lang.reflect.Field;
+import net.minecraft.dispenser.IBlockSource;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.enchantment.EnumEnchantmentType;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.projectile.EntityArrow;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.EnumAction;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.potion.Potion;
+import net.minecraft.world.World;
+
+public class GT_MetaGenerated_Item_02
+ extends GT_MetaGenerated_Item_X32
+{
+ public static GT_MetaGenerated_Item_02 INSTANCE;
+
+ public GT_MetaGenerated_Item_02()
+ {
+ super("metaitem.02", new OrePrefixes[] { OrePrefixes.toolHeadSword, OrePrefixes.toolHeadPickaxe, OrePrefixes.toolHeadShovel, OrePrefixes.toolHeadAxe, OrePrefixes.toolHeadHoe, OrePrefixes.toolHeadHammer, OrePrefixes.toolHeadFile, OrePrefixes.toolHeadSaw, OrePrefixes.toolHeadDrill, OrePrefixes.toolHeadChainsaw, OrePrefixes.toolHeadWrench, OrePrefixes.toolHeadUniversalSpade, OrePrefixes.toolHeadSense, OrePrefixes.toolHeadPlow, OrePrefixes.toolHeadArrow, OrePrefixes.toolHeadBuzzSaw, OrePrefixes.turbineBlade , null, null, OrePrefixes.wireFine, OrePrefixes.gearGtSmall, OrePrefixes.rotor, OrePrefixes.stickLong, OrePrefixes.springSmall, OrePrefixes.spring, OrePrefixes.arrowGtWood, OrePrefixes.arrowGtPlastic, OrePrefixes.gemChipped, OrePrefixes.gemFlawed, OrePrefixes.gemFlawless, OrePrefixes.gemExquisite, OrePrefixes.gearGt});
+ INSTANCE = this;
+
+ int tLastID = 0;
+
+ ItemList.ThermosCan_Dark_Coffee.set(addItem(tLastID = 0, "Dark Coffee", "Coffee, dark, without anything else", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 1, 70, Potion.digSpeed.id, 400, 1, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
+ ItemList.ThermosCan_Dark_Cafe_au_lait.set(addItem(tLastID = 1, "Dark Coffee au lait", "Keeping you awake the whole night", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 2, 90, Potion.digSpeed.id, 400, 2, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L) }));
+ ItemList.ThermosCan_Coffee.set(addItem(tLastID = 2, "Coffee", "Just the regular morning Coffee", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 0, 50, Potion.digSpeed.id, 400, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 1L) }));
+ ItemList.ThermosCan_Cafe_au_lait.set(addItem(tLastID = 3, "Cafe au lait", "Sweet Coffee", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 1, 70, Potion.digSpeed.id, 400, 1, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 2L) }));
+ ItemList.ThermosCan_Lait_au_cafe.set(addItem(tLastID = 4, "Lait au cafe", "You want Coffee to your Sugar?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSpeed.id, 400, 2, 90, Potion.digSpeed.id, 400, 2, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MOTUS, 3L) }));
+ ItemList.ThermosCan_Dark_Chocolate_Milk.set(addItem(tLastID = 5, "Dark Chocolate Milk", "A bit bitter, better add a bit Sugar", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 50, 1, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.ThermosCan_Chocolate_Milk.set(addItem(tLastID = 6, "Chocolate Milk", "Sweet Goodness", new Object[] { new GT_FoodStat(3, 0.4F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 50, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 2L) }));
+ ItemList.ThermosCan_Tea.set(addItem(tLastID = 7, "Tea", "Keep calm and carry on", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 300, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+ ItemList.ThermosCan_Sweet_Tea.set(addItem(tLastID = 8, "Sweet Tea", "How about a Tea Party? In Boston?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+ ItemList.ThermosCan_Ice_Tea.set(addItem(tLastID = 9, "Ice Tea", "Better than this purple Junk Drink from failed Potions", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.ThermosCan_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 300, 0, 50 }), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L) }));
+
+ ItemList.Bottle_Purple_Drink.set(addItem(tLastID = 100, "Purple Drink", "How about Lemonade. Or some Ice Tea? I got Purple Drink!", new Object[] { new GT_FoodStat(8, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.moveSlowdown.id, 400, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L) }));
+ ItemList.Bottle_Grape_Juice.set(addItem(tLastID = 101, "Grape Juice", "This has a cleaning effect on your internals.", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 1, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Wine.set(addItem(tLastID = 102, "Wine", "Ordinary", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 60, Potion.heal.id, 0, 0, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Vinegar.set(addItem(tLastID = 103, "Vinegar", "Exquisite", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 90, Potion.heal.id, 0, 1, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Potato_Juice.set(addItem(tLastID = 104, "Potato Juice", "Ever seen Potato Juice in stores? No? That has a reason.", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(3, 0.3F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
+ ItemList.Bottle_Vodka.set(addItem(tLastID = 105, "Vodka", "Not to confuse with Water", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 500, 0, 60, Potion.damageBoost.id, 500, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L) }));
+ ItemList.Bottle_Leninade.set(addItem(tLastID = 106, "Leninade", "Let the Communism flow through you!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 500, 1, 90, Potion.damageBoost.id, 500, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L) }));
+ ItemList.Bottle_Mineral_Water.set(addItem(tLastID = 107, "Mineral Water", "The best Stuff you can drink to stay healthy", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 100, 1, 10 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Salty_Water.set(addItem(tLastID = 108, "Salty Water", "Like Sea Water but less dirty", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(1, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 2, 95 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TEMPESTAS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Bottle_Reed_Water.set(addItem(tLastID = 109, "Reed Water", "I guess this tastes better when fermented", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+ ItemList.Bottle_Rum.set(addItem(tLastID = 110, "Rum", "A buddle o' rum", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 0, 60, Potion.damageBoost.id, 300, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Bottle_Pirate_Brew.set(addItem(tLastID = 111, "Pirate Brew", "Set the Sails, we are going to Torrentuga!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 1, 90, Potion.damageBoost.id, 300, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 2L) }));
+ ItemList.Bottle_Hops_Juice.set(addItem(tLastID = 112, "Hops Juice", "Every Beer has a start", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
+ ItemList.Bottle_Dark_Beer.set(addItem(tLastID = 113, "Dark Beer", "Dark Beer, for the real Men", new Object[] { new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 1, 60, Potion.damageBoost.id, 300, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
+ ItemList.Bottle_Dragon_Blood.set(addItem(tLastID = 114, "Dragon Blood", "FUS RO DAH!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 300, 2, 90, Potion.damageBoost.id, 300, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 2L) }));
+ ItemList.Bottle_Wheaty_Juice.set(addItem(tLastID = 115, "Wheaty Juice", "Is this liquefied Bread or what?", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L) }));
+ ItemList.Bottle_Scotch.set(addItem(tLastID = 116, "Scotch", "Technically this is just a Whisky", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.resistance.id, 400, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
+ ItemList.Bottle_Glen_McKenner.set(addItem(tLastID = 117, "Glen McKenner", "Don't hand to easily surprised people, they will shatter it.", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 1, 90, Potion.resistance.id, 400, 2, 90, Potion.poison.id, 200, 2, 10, Potion.harm.id, 0, 2, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 2L) }));
+ ItemList.Bottle_Wheaty_Hops_Juice.set(addItem(tLastID = 118, "Wheaty Hops Juice", "Also known as 'Duff-Lite'", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 2L) }));
+ ItemList.Bottle_Beer.set(addItem(tLastID = 119, "Beer", "Good old Beer", new Object[] { new GT_FoodStat(6, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.digSpeed.id, 400, 2, 60, Potion.poison.id, 100, 0, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
+ ItemList.Bottle_Chilly_Sauce.set(addItem(tLastID = 120, "Chilly Sauce", "Spicy", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 1000, 0, 10, Potion.fireResistance.id, 1000, 0, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Bottle_Hot_Sauce.set(addItem(tLastID = 121, "Hot Sauce", "Very Spicy, I guess?", new Object[] { new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 2000, 0, 30, Potion.fireResistance.id, 2000, 0, 70 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 2L) }));
+ ItemList.Bottle_Diabolo_Sauce.set(addItem(tLastID = 122, "Diabolo Sauce", "As if the Devil made this Sauce", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 3000, 1, 50, Potion.fireResistance.id, 3000, 0, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 3L) }));
+ ItemList.Bottle_Diablo_Sauce.set(addItem(tLastID = 123, "Diablo Sauce", "Diablo always comes back!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 4000, 1, 70, Potion.fireResistance.id, 4000, 0, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 4L) }));
+ ItemList.Bottle_Snitches_Glitch_Sauce.set(addItem(tLastID = 124, "Old Man Snitches glitched Diablo Sauce", "[Missing No]", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.1F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 9999, 2, 999, Potion.fireResistance.id, 9999, 9, 999 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 5L) }));
+ ItemList.Bottle_Apple_Juice.set(addItem(tLastID = 125, "Apple Juice", "Made of the Apples from our best Oak Farms", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 0, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+ ItemList.Bottle_Cider.set(addItem(tLastID = 126, "Cider", "If you have nothing better to do with your Apples", new Object[] { new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.resistance.id, 400, 1, 60, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
+ ItemList.Bottle_Golden_Apple_Juice.set(addItem(tLastID = 127, "Golden Apple Juice", "A golden Apple in liquid form", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.hunger.id, 400, 0, 20, Potion.field_76444_x.id, 2400, 0, 100, Potion.regeneration.id, 100, 1, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Golden_Cider.set(addItem(tLastID = 128, "Golden Cider", "More Resistance, less Regeneration", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.confusion.id, 400, 0, 60, Potion.field_76444_x.id, 2400, 1, 95, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.TUTAMEN, 1L) }));
+ ItemList.Bottle_Iduns_Apple_Juice.set(addItem(tLastID = 129, "Idun's Apple Juice", "So you got the Idea of using Notch Apples for a drink?", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 600, 4, 100, Potion.field_76444_x.id, 2400, 0, 100, Potion.resistance.id, 6000, 0, 100, Potion.fireResistance.id, 6000, 0, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L) }));
+ ItemList.Bottle_Notches_Brew.set(addItem(tLastID = 130, "Notches Brew", "This is just overpowered", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(4, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.regeneration.id, 700, 4, 95, Potion.field_76444_x.id, 3000, 1, 95, Potion.resistance.id, 7000, 1, 95, Potion.fireResistance.id, 7000, 0, 95, Potion.harm.id, 0, 2, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 9L) }));
+ ItemList.Bottle_Lemon_Juice.set(addItem(tLastID = 131, "Lemon Juice", "Maybe adding Sugar will make it less sour", new Object[] { new GT_FoodStat(2, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 1200, 0, 60 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
+ ItemList.Bottle_Limoncello.set(addItem(tLastID = 132, "Limoncello", "An alcoholic Drink which tastes like Lemons", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.4F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 1200, 0, 90, Potion.poison.id, 200, 1, 5 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
+ ItemList.Bottle_Lemonade.set(addItem(tLastID = 133, "Lemonade", "Cold and refreshing Lemonade", new Object[] { new GT_FoodStat(4, 0.3F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 900, 1, 90 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 1L) }));
+ ItemList.Bottle_Alcopops.set(addItem(tLastID = 134, "Alcopops", "Don't let your Children drink this junk!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(2, 0.2F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.digSpeed.id, 900, 1, 90, Potion.poison.id, 300, 2, 20 }), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VENENUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VINCULUM, 1L) }));
+ ItemList.Bottle_Cave_Johnsons_Grenade_Juice.set(addItem(tLastID = 135, "Cave Johnson's Grenade Juice", "When life gives you Lemons, make Life take them Lemons back!", new Object[] { SubTag.INVISIBLE, new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]).setExplosive(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 1L) }));
+ ItemList.Bottle_Milk.set(addItem(tLastID = 136, "Milk", "Got Milk?", new Object[] { OrePrefixes.bottle.get(Materials.Milk), new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[0]).setMilk(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+ ItemList.Bottle_Holy_Water.set(addItem(tLastID = 137, "Holy Water", "May the holy Planks be with you", new Object[] { OrePrefixes.bottle.get(Materials.HolyWater), new GT_FoodStat(0, 0.0F, EnumAction.drink, ItemList.Bottle_Empty.get(1L, new Object[0]), GregTech_API.sDrinksAlwaysDrinkable, false, false, new int[] { Potion.poison.id, 100, 1, 100 }).setMilk(), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AURAM, 1L) }));
+
+ ItemList.Food_Potato_On_Stick.set(addItem(tLastID = 200, "Potato on a Stick", "Totally looks like a Crab Claw", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));
+ ItemList.Food_Potato_On_Stick_Roasted.set(addItem(tLastID = 201, "Roasted Potato on a Stick", "Still looks like a Crab Claw", new Object[] { new GT_FoodStat(6, 0.6F, EnumAction.eat, new ItemStack(Items.stick, 1), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Raw_Fries.set(addItem(tLastID = 202, "Potato Strips", "It's Potato in Stripe Form", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Fries.set(addItem(tLastID = 203, "Fries", "Not to confuse with Fry the Delivery Boy", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Packaged_Fries.set(addItem(tLastID = 204, "Fries", "Ketchup not included", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Paper, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Raw_PotatoChips.set(addItem(tLastID = 205, "Potato Chips (Raw)", "Just like a Potato", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_PotatoChips.set(addItem(tLastID = 206, "Potato Chips", "Crunchy", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_ChiliChips.set(addItem(tLastID = 207, "Chili Chips", "Spicy", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Packaged_PotatoChips.set(addItem(tLastID = 208, "Bag of Potato Chips", "Full of delicious Air", new Object[] { new GT_FoodStat(7, 0.5F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Packaged_ChiliChips.set(addItem(tLastID = 209, "Bag of Chili Chips", "Stop making noises Baj!", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, GT_OreDictUnificator.get(OrePrefixes.foil, Materials.Aluminium, 1L), false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Chum.set(addItem(tLastID = 210, "Chum", "Chum is Fum!", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, null, true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Chum_On_Stick.set(addItem(tLastID = 211, "Chum on a Stick", "Don't forget to try our Chum-balaya", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, new ItemStack(Items.stick, 1), true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Dough_Sugar.set(addItem(tLastID = 212, "Sugary Dough", "Don't eat the Dough before it is baken", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Dough_Chocolate.set(addItem(tLastID = 213, "Chocolate Dough", "I said don't eat the Dough!", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Raw_Cookie.set(addItem(tLastID = 214, "Cookie shaped Dough", "For baking Cookies", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+
+ ItemList.Food_Sliced_Buns.set(addItem(tLastID =220, "Buns", "Pre Sliced", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Burger_Veggie.set(addItem(tLastID = 221, "Veggieburger", "No matter how you call this, this is NOT a Burger!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Burger_Cheese.set(addItem(tLastID = 222, "Cheeseburger", "Cheesy!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new ItemData(Materials.Cheese, 907200L, new MaterialStack[0]) }));
+ ItemList.Food_Burger_Meat.set(addItem(tLastID = 223, "Hamburger", "The Mc Burger Queen Burger", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Burger_Chum.set(addItem(tLastID = 224, "Chumburger", "Fum is Chum!", new Object[] { new GT_FoodStat(5, 0.2F, EnumAction.eat, null, true, false, true, new int[] { Potion.hunger.id, 1000, 4, 100, Potion.confusion.id, 300, 1, 80 }), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+
+ ItemList.Food_Sliced_Breads.set(addItem(tLastID = 230, "Breads", "Pre Sliced", new Object[] { new GT_FoodStat(5, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Sandwich_Veggie.set(addItem(tLastID = 231, "Veggie Sandwich", "Meatless", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
+ ItemList.Food_Sandwich_Cheese.set(addItem(tLastID = 232, "Cheese Sandwich", "Say Cheese!", new Object[] { new GT_FoodStat(7, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
+ ItemList.Food_Sandwich_Bacon.set(addItem(tLastID = 233, "Bacon Sandwich", "The best Sandwich ever!", new Object[] { new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
+ ItemList.Food_Sandwich_Steak.set(addItem(tLastID = 234, "Steak Sandwich", "Not a 'Steam Sandwich'", new Object[] { new GT_FoodStat(10, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 32L);
+
+ ItemList.Food_Sliced_Baguettes.set(addItem(tLastID = 240, "Baguettes", "Pre Sliced", new Object[] { new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Large_Sandwich_Veggie.set(addItem(tLastID = 241, "Large Veggie Sandwich", "Just not worth it", new Object[] { new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Large_Sandwich_Cheese.set(addItem(tLastID = 242, "Large Cheese Sandwich", "I need another cheesy tooltip for this", new Object[] { new GT_FoodStat(15, 0.8F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Large_Sandwich_Bacon.set(addItem(tLastID = 243, "Large Bacon Sandwich", "For Men! (and manly Women)", new Object[] { new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+ ItemList.Food_Large_Sandwich_Steak.set(addItem(tLastID = 244, "Large Steak Sandwich", "Yes, I once accidentially called it 'Steam Sandwich'", new Object[] { new GT_FoodStat(20, 1.0F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));setFluidContainerStats(32000 + tLastID, 0L, 16L);
+
+ ItemList.Food_Raw_Pizza_Veggie.set(addItem(tLastID = 250, "Raw Veggie Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Raw_Pizza_Cheese.set(addItem(tLastID = 251, "Raw Cheese Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Raw_Pizza_Meat.set(addItem(tLastID = 252, "Raw Mince Meat Pizza", "Into the Oven with it!", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+
+ ItemList.Food_Baked_Pizza_Veggie.set(addItem(tLastID = 260, "Veggie Pizza", "The next they want is Gluten Free Pizzas...", new Object[] { new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Baked_Pizza_Cheese.set(addItem(tLastID = 261, "Cheese Pizza", "Pizza Magarita", new Object[] { new GT_FoodStat(4, 0.4F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Baked_Pizza_Meat.set(addItem(tLastID = 262, "Mince Meat Pizza", "Emo Pizza, it cuts itself!", new Object[] { new GT_FoodStat(5, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+
+
+ ItemList.Dye_Indigo.set(addItem(tLastID = 410, "Indigo Dye", "Blue Dye", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L), Dyes.dyeBlue }));
+ for (byte i = 0; i < 16; i = (byte)(i + 1)) {
+ ItemList.DYE_ONLY_ITEMS[i].set(addItem(tLastID = 414 + i, Dyes.get(i).mName + " Dye", "", new Object[] { Dyes.get(i).name(), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
+ }
+ ItemList.Plank_Oak.set(addItem(tLastID = 470, "Oak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Spruce.set(addItem(tLastID = 471, "Spruce Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Birch.set(addItem(tLastID = 472, "Birch Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Jungle.set(addItem(tLastID = 473, "Jungle Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Acacia.set(addItem(tLastID = 474, "Acacia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_DarkOak.set(addItem(tLastID = 475, "Dark Oak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Larch.set(addItem(tLastID = 476, "Larch Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Teak.set(addItem(tLastID = 477, "Teak Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Acacia_Green.set(addItem(tLastID = 478, "Green Acacia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Lime.set(addItem(tLastID = 479, "Lime Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Chestnut.set(addItem(tLastID = 480, "Chestnut Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Wenge.set(addItem(tLastID = 481, "Wenge Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Baobab.set(addItem(tLastID = 482, "Baobab Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Sequoia.set(addItem(tLastID = 483, "Sequoia Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Kapok.set(addItem(tLastID = 484, "Kapok Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Ebony.set(addItem(tLastID = 485, "Ebony Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Mahagony.set(addItem(tLastID = 486, "Mahagony Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Balsa.set(addItem(tLastID = 487, "Balsa Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Willow.set(addItem(tLastID = 488, "Willow Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Walnut.set(addItem(tLastID = 489, "Walnut Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Greenheart.set(addItem(tLastID = 490, "Greenheart Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Cherry.set(addItem(tLastID = 491, "Cherry Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Mahoe.set(addItem(tLastID = 492, "Mahoe Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Poplar.set(addItem(tLastID = 493, "Poplar Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Palm.set(addItem(tLastID = 494, "Palm Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Papaya.set(addItem(tLastID = 495, "Papaya Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Pine.set(addItem(tLastID = 496, "Pine Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Plum.set(addItem(tLastID = 497, "Plum Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Maple.set(addItem(tLastID = 498, "Maple Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+ ItemList.Plank_Citrus.set(addItem(tLastID = 499, "Citrus Plank", "Usable as Cover", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 200);
+
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Oak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 0) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Spruce.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 1) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Birch.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 2) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Jungle.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 3) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Acacia.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 4) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_DarkOak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), new ItemStack(Blocks.wooden_slab, 1, 5) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Larch.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 0) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Teak.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 1) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Acacia_Green.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 2) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Lime.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 3) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Chestnut.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 4) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Wenge.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 5) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Baobab.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 6) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Sequoia.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs1", 1L, 7) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Kapok.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 0) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Ebony.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 1) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Mahagony.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 2) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Balsa.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 3) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Willow.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 4) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Walnut.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 5) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Greenheart.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 6) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Cherry.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs2", 1L, 7) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Mahoe.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 0) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Poplar.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 1) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Palm.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 2) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Papaya.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 3) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Pine.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 4) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Plum.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 5) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Maple.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 6) });
+ GT_ModHandler.addCraftingRecipe(ItemList.Plank_Citrus.get(2L, new Object[0]), GT_ModHandler.RecipeBits.NOT_REMOVABLE | GT_ModHandler.RecipeBits.REVERSIBLE, new Object[] { "s ", " P", Character.valueOf('P'), GT_ModHandler.getModItem("Forestry", "slabs3", 1L, 7) });
+
+ GregTech_API.registerCover(ItemList.Plank_Oak.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 0), null);
+ GregTech_API.registerCover(ItemList.Plank_Spruce.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 1), null);
+ GregTech_API.registerCover(ItemList.Plank_Birch.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 2), null);
+ GregTech_API.registerCover(ItemList.Plank_Jungle.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 3), null);
+ GregTech_API.registerCover(ItemList.Plank_Acacia.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 4), null);
+ GregTech_API.registerCover(ItemList.Plank_DarkOak.get(1L, new Object[0]), new GT_CopiedBlockTexture(Blocks.planks, 0, 5), null);
+ GregTech_API.registerCover(ItemList.Plank_Larch.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 0, new ItemStack(Blocks.planks, 1, 0))), 0, 0), null);
+ GregTech_API.registerCover(ItemList.Plank_Teak.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 1, new ItemStack(Blocks.planks, 1, 0))), 0, 1), null);
+ GregTech_API.registerCover(ItemList.Plank_Acacia_Green.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 2, new ItemStack(Blocks.planks, 1, 0))), 0, 2), null);
+ GregTech_API.registerCover(ItemList.Plank_Lime.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 3, new ItemStack(Blocks.planks, 1, 0))), 0, 3), null);
+ GregTech_API.registerCover(ItemList.Plank_Chestnut.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 4, new ItemStack(Blocks.planks, 1, 0))), 0, 4), null);
+ GregTech_API.registerCover(ItemList.Plank_Wenge.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 5, new ItemStack(Blocks.planks, 1, 0))), 0, 5), null);
+ GregTech_API.registerCover(ItemList.Plank_Baobab.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 6, new ItemStack(Blocks.planks, 1, 0))), 0, 6), null);
+ GregTech_API.registerCover(ItemList.Plank_Sequoia.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 7, new ItemStack(Blocks.planks, 1, 0))), 0, 7), null);
+ GregTech_API.registerCover(ItemList.Plank_Kapok.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 8, new ItemStack(Blocks.planks, 1, 0))), 0, 8), null);
+ GregTech_API.registerCover(ItemList.Plank_Ebony.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 9, new ItemStack(Blocks.planks, 1, 0))), 0, 9), null);
+ GregTech_API.registerCover(ItemList.Plank_Mahagony.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 10, new ItemStack(Blocks.planks, 1, 0))), 0, 10), null);
+ GregTech_API.registerCover(ItemList.Plank_Balsa.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 11, new ItemStack(Blocks.planks, 1, 0))), 0, 11), null);
+ GregTech_API.registerCover(ItemList.Plank_Willow.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 12, new ItemStack(Blocks.planks, 1, 0))), 0, 12), null);
+ GregTech_API.registerCover(ItemList.Plank_Walnut.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 13, new ItemStack(Blocks.planks, 1, 0))), 0, 13), null);
+ GregTech_API.registerCover(ItemList.Plank_Greenheart.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 14, new ItemStack(Blocks.planks, 1, 0))), 0, 14), null);
+ GregTech_API.registerCover(ItemList.Plank_Cherry.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks", 1L, 15, new ItemStack(Blocks.planks, 1, 0))), 0, 15), null);
+ GregTech_API.registerCover(ItemList.Plank_Mahoe.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 0, new ItemStack(Blocks.planks, 1, 0))), 0, 0), null);
+ GregTech_API.registerCover(ItemList.Plank_Poplar.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 1, new ItemStack(Blocks.planks, 1, 0))), 0, 1), null);
+ GregTech_API.registerCover(ItemList.Plank_Palm.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 2, new ItemStack(Blocks.planks, 1, 0))), 0, 2), null);
+ GregTech_API.registerCover(ItemList.Plank_Papaya.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 3, new ItemStack(Blocks.planks, 1, 0))), 0, 3), null);
+ GregTech_API.registerCover(ItemList.Plank_Pine.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 4, new ItemStack(Blocks.planks, 1, 0))), 0, 4), null);
+ GregTech_API.registerCover(ItemList.Plank_Plum.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 5, new ItemStack(Blocks.planks, 1, 0))), 0, 5), null);
+ GregTech_API.registerCover(ItemList.Plank_Maple.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 6, new ItemStack(Blocks.planks, 1, 0))), 0, 6), null);
+ GregTech_API.registerCover(ItemList.Plank_Citrus.get(1L, new Object[0]), new GT_CopiedBlockTexture(GT_Utility.getBlockFromStack(GT_ModHandler.getModItem("Forestry", "planks2", 1L, 7, new ItemStack(Blocks.planks, 1, 0))), 0, 7), null);
+
+ ItemList.Crop_Drop_Plumbilia.set(addItem(tLastID = 500, "Plumbilia Leaf", "Source of Lead", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L) }));
+ ItemList.Crop_Drop_Argentia.set(addItem(tLastID = 501, "Argentia Leaf", "Source of Silver", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Crop_Drop_Indigo.set(addItem(tLastID = 502, "Indigo Blossom", "Used for making Blue Dye", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SENSUS, 1L) }));
+ ItemList.Crop_Drop_Ferru.set(addItem(tLastID = 503, "Ferru Leaf", "Source of Iron", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 2L) }));
+ ItemList.Crop_Drop_Aurelia.set(addItem(tLastID = 504, "Aurelia Leaf", "Source of Gold", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ ItemList.Crop_Drop_TeaLeaf.set(addItem(tLastID = 505, "Tea Leaf", "Source of Tea", new Object[] { "cropTea", new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+
+ ItemList.Crop_Drop_OilBerry.set(addItem(tLastID = 510, "Oil Berry", "Oil in Berry form", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.POTENTIA, 1L) }));
+ ItemList.Crop_Drop_BobsYerUncleRanks.set(addItem(tLastID = 511, "Bobs-Yer-Uncle-Berry", "Source of Emeralds", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.VITREUS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+
+ ItemList.Crop_Drop_MilkWart.set(addItem(tLastID = 520, "Milk Wart", "Source of Milk", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 1L) }));
+
+ ItemList.Crop_Drop_Coppon.set(addItem(tLastID = 530, "Coppon Fiber", "ORANGE WOOOOOOOL!!!", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 1L) }));
+
+ ItemList.Crop_Drop_Tine.set(addItem(tLastID = 540, "Tine Twig", "Source of Tin", new Object[] { new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 1L) }));setBurnValue(32000 + tLastID, 100);
+
+ ItemList.Crop_Drop_Chilly.set(addItem(tLastID = 550, "Chilly Pepper", "It is red and hot", new Object[] { "cropChilipepper", new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[] { Potion.confusion.id, 200, 1, 40 }), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_Lemon.set(addItem(tLastID = 551, "Lemon", "Don't make Lemonade", new Object[] { "cropLemon", new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_Tomato.set(addItem(tLastID = 552, "Tomato", "Solid Ketchup", new Object[] { "cropTomato", new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_MTomato.set(addItem(tLastID = 553, "Max Tomato", "Full Health in one Tomato", new Object[] { "cropTomato", new GT_FoodStat(9, 1.0F, EnumAction.eat, null, false, true, false, new int[] { Potion.regeneration.id, 100, 100, 100 }), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.SANO, 3L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_Grapes.set(addItem(tLastID = 554, "Grapes", "Source of Wine", new Object[] { "cropGrape", new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_Onion.set(addItem(tLastID = 555, "Onion", "Taking over the whole Taste", new Object[] { "cropOnion", new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Crop_Drop_Cucumber.set(addItem(tLastID = 556, "Cucumber", "Not a Sea Cucumber!", new Object[] { "cropCucumber", new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+
+ ItemList.Food_Cheese.set(addItem(tLastID = 558, "Cheese", "Click the Cheese", new Object[] { "foodCheese", new GT_FoodStat(3, 0.6F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 2L) }));
+ ItemList.Food_Dough.set(addItem(tLastID = 559, "Dough", "For making Breads", new Object[] { "foodDough", new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Flat_Dough.set(addItem(tLastID = 560, "Flattened Dough", "For making Pizza", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Raw_Bread.set(addItem(tLastID = 561, "Dough", "In Bread Shape", new Object[] { new GT_FoodStat(1, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Raw_Bun.set(addItem(tLastID = 562, "Dough", "In Bun Shape", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Raw_Baguette.set(addItem(tLastID = 563, "Dough", "In Baguette Shape", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Baked_Bun.set(addItem(tLastID = 564, "Bun", "Do not teleport Bread!", new Object[] { new GT_FoodStat(3, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Baked_Baguette.set(addItem(tLastID = 565, "Baguette", "I teleported nothing BUT Bread!!!", new Object[] { new GT_FoodStat(8, 0.5F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Sliced_Bread.set(addItem(tLastID = 566, "Sliced Bread", "Just half a Bread", new Object[] { new GT_FoodStat(2, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Sliced_Bun.set(addItem(tLastID = 567, "Sliced Bun", "Just half a Bun", new Object[] { new GT_FoodStat(1, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Sliced_Baguette.set(addItem(tLastID = 568, "Sliced Baguette", "Just half a Baguette", new Object[] { new GT_FoodStat(4, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L) }));
+ ItemList.Food_Raw_Cake.set(addItem(tLastID = 569, "Cake Bottom", "For making Cake", new Object[] { new GT_FoodStat(2, 0.2F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Baked_Cake.set(addItem(tLastID = 570, "Baked Cake Bottom", "I know I promised you an actual Cake, but well...", new Object[] { new GT_FoodStat(3, 0.3F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+ ItemList.Food_Sliced_Lemon.set(addItem(tLastID = 571, "Lemon Slice", "Ideal to put on your Drink", new Object[] { new GT_FoodStat(1, 0.075F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+ ItemList.Food_Sliced_Tomato.set(addItem(tLastID = 572, "Tomato Slice", "Solid Ketchup", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+ ItemList.Food_Sliced_Onion.set(addItem(tLastID = 573, "Onion Slice", "ONIONS, UNITE!", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+ ItemList.Food_Sliced_Cucumber.set(addItem(tLastID = 574, "Cucumber Slice", "QUEWWW-CUMMM-BERRR!!!", new Object[] { new GT_FoodStat(1, 0.05F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 1L) }));
+
+ ItemList.Food_Sliced_Cheese.set(addItem(tLastID = 576, "Cheese Slice", "ALIEN ATTACK!!!, throw the CHEEEEESE!!!", new Object[] { new GT_FoodStat(1, 0.1F, EnumAction.eat, null, false, true, false, new int[0]), new TC_Aspects.TC_AspectStack(TC_Aspects.FAMES, 1L) }));
+
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 0), new ItemStack(Items.dye, 2, 1));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 1), new ItemStack(Items.dye, 2, 12));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 2), new ItemStack(Items.dye, 2, 13));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 3), new ItemStack(Items.dye, 2, 7));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 4), new ItemStack(Items.dye, 2, 1));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 5), new ItemStack(Items.dye, 2, 14));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 6), new ItemStack(Items.dye, 2, 7));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 7), new ItemStack(Items.dye, 2, 9));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.red_flower, 1, 8), new ItemStack(Items.dye, 2, 7));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.yellow_flower, 1, 0), new ItemStack(Items.dye, 2, 11));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 0), new ItemStack(Items.dye, 3, 11));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 1), new ItemStack(Items.dye, 3, 13));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 4), new ItemStack(Items.dye, 3, 1));
+ GT_ModHandler.addExtractionRecipe(new ItemStack(Blocks.double_plant, 1, 5), new ItemStack(Items.dye, 3, 9));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Plumbilia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Lead, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Argentia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Silver, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Indigo.get(1L, new Object[0]), ItemList.Dye_Indigo.get(1L, new Object[0]));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Ferru.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Iron, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Aurelia.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Gold, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_BobsYerUncleRanks.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Emerald, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_MilkWart.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Milk, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Coppon.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Copper, 1L));
+ GT_ModHandler.addExtractionRecipe(ItemList.Crop_Drop_Tine.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Tin, 1L));
+
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Coppon.get(4L, new Object[0]), new ItemStack(Blocks.wool, 1, 1));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Plumbilia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Argentia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Indigo.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Ferru.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Aurelia.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_OilBerry.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_BobsYerUncleRanks.get(8L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(ItemList.Crop_Drop_Tine.get(4L, new Object[0]), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(new ItemStack(Blocks.red_flower, 8, 32767), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+ GT_ModHandler.addCompressionRecipe(new ItemStack(Blocks.yellow_flower, 8, 32767), ItemList.IC2_PlantballCompressed.get(1L, new Object[0]));
+
+ GT_ModHandler.addPulverisationRecipe(ItemList.Food_Sliced_Cheese.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Cheese, 1L));
+ GT_ModHandler.addPulverisationRecipe(ItemList.Dye_Cocoa.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L));
+ GT_ModHandler.addPulverisationRecipe(ItemList.Crop_Drop_Tine.get(1L, new Object[0]), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L));
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.reeds, 1), new ItemStack(Items.sugar, 1), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.melon_block, 1, 0), new ItemStack(Items.melon, 8, 0), new ItemStack(Items.melon_seeds, 1), 80, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.pumpkin, 1, 0), new ItemStack(Items.pumpkin_seeds, 4, 0), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.melon, 1, 0), new ItemStack(Items.melon_seeds, 1, 0), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.wheat, 1, 0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(GT_ModHandler.getIC2Item("crop", 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wood, 1L), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Items.stick, 1), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), null, 0, false);
+ GT_ModHandler.addPulverisationRecipe(new ItemStack(Blocks.wool, 1, 32767), new ItemStack(Items.string, 2), new ItemStack(Items.string, 1), 50, false);
+ try
+ {
+ Object tCrop;
+ GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[13], "mDrop").set(tCrop, ItemList.Crop_Drop_Ferru.get(1L, new Object[0]));
+ GT_Utility.getField(tCrop = ic2.api.crops.Crops.instance.getCropList()[14], "mDrop").set(tCrop, ItemList.Crop_Drop_Aurelia.get(1L, new Object[0]));
+ }
+ catch (Throwable e)
+ {
+ if (GT_Values.D1) {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ ItemList.Display_ITS_FREE.set(addItem(tLastID = 766, "ITS FREE", "(or at least almost free)", new Object[] { SubTag.INVISIBLE, new TC_Aspects.TC_AspectStack(TC_Aspects.LUCRUM, 1L) }));
+ }
+
+ public boolean onLeftClickEntity(ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ super.onLeftClickEntity(aStack, aPlayer, aEntity);
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage >= 25000) && (aDamage < 27000))
+ {
+ if (aDamage >= 26000) {
+ return Behaviour_Arrow.DEFAULT_PLASTIC.onLeftClickEntity(this, aStack, aPlayer, aEntity);
+ }
+ return Behaviour_Arrow.DEFAULT_WOODEN.onLeftClickEntity(this, aStack, aPlayer, aEntity);
+ }
+ return false;
+ }
+
+ public boolean hasProjectile(SubTag aProjectileType, ItemStack aStack)
+ {
+ int aDamage = aStack.getItemDamage();
+ return ((aDamage >= 25000) && (aDamage < 27000)) || (super.hasProjectile(aProjectileType, aStack));
+ }
+
+ public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
+ {
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage >= 25000) && (aDamage < 27000))
+ {
+ if (aDamage >= 26000) {
+ return Behaviour_Arrow.DEFAULT_PLASTIC.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ);
+ }
+ return Behaviour_Arrow.DEFAULT_WOODEN.getProjectile(this, aProjectileType, aStack, aWorld, aX, aY, aZ);
+ }
+ return super.getProjectile(aProjectileType, aStack, aWorld, aX, aY, aZ);
+ }
+
+ public EntityArrow getProjectile(SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage >= 25000) && (aDamage < 27000))
+ {
+ if (aDamage >= 26000) {
+ return Behaviour_Arrow.DEFAULT_PLASTIC.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
+ }
+ return Behaviour_Arrow.DEFAULT_WOODEN.getProjectile(this, aProjectileType, aStack, aWorld, aEntity, aSpeed);
+ }
+ return super.getProjectile(aProjectileType, aStack, aWorld, aEntity, aSpeed);
+ }
+
+ public boolean isItemStackUsable(ItemStack aStack)
+ {
+ int aDamage = aStack.getItemDamage();
+ Materials aMaterial = GregTech_API.sGeneratedMaterials[(aDamage % 1000)];
+ if ((aDamage >= 25000) && (aDamage < 27000) && (aMaterial != null) && (aMaterial.mEnchantmentTools != null))
+ {
+ Enchantment tEnchant = aMaterial.mEnchantmentTools == Enchantment.fortune ? Enchantment.looting : aMaterial.mEnchantmentTools;
+ if (tEnchant.type == EnumEnchantmentType.weapon)
+ {
+ NBTTagCompound tNBT = GT_Utility.ItemNBT.getNBT(aStack);
+ if (!tNBT.getBoolean("GT.HasBeenUpdated"))
+ {
+ tNBT.setBoolean("GT.HasBeenUpdated", true);
+ GT_Utility.ItemNBT.setNBT(aStack, tNBT);
+ GT_Utility.ItemNBT.addEnchantment(aStack, tEnchant, aMaterial.mEnchantmentToolsLevel);
+ }
+ }
+ }
+ return super.isItemStackUsable(aStack);
+ }
+
+ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
+ {
+ return (aDoShowAllItems) || (!aPrefix.name().startsWith("toolHead"));
+ }
+
+ public ItemStack onDispense(IBlockSource aSource, ItemStack aStack)
+ {
+ int aDamage = aStack.getItemDamage();
+ if ((aDamage >= 25000) && (aDamage < 27000))
+ {
+ if (aDamage >= 26000) {
+ return Behaviour_Arrow.DEFAULT_PLASTIC.onDispense(this, aSource, aStack);
+ }
+ return Behaviour_Arrow.DEFAULT_WOODEN.onDispense(this, aSource, aStack);
+ }
+ return super.onDispense(aSource, aStack);
+ }
+
+ public final ItemStack getContainerItem(ItemStack aStack)
+ {
+ int aDamage = aStack.getItemDamage();
+ if (aDamage < 32000) {
+ return null;
+ }
+ if (aDamage < 32100) {
+ return ItemList.ThermosCan_Empty.get(1L, new Object[0]);
+ }
+ if (aDamage < 32200) {
+ return ItemList.Bottle_Empty.get(1L, new Object[0]);
+ }
+ return 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/items/GT_MetaGenerated_Item_03.java b/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java index 8ded9c4860..66fd71c0f2 100644 --- a/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java +++ b/main/java/gregtech/common/items/GT_MetaGenerated_Item_03.java @@ -1,25 +1,25 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Item_X32;
-/* 6: */
-/* 7: */ public class GT_MetaGenerated_Item_03
-/* 8: */ extends GT_MetaGenerated_Item_X32
-/* 9: */ {
-/* 10: */ public static GT_MetaGenerated_Item_03 INSTANCE;
-/* 11: */
-/* 12: */ public GT_MetaGenerated_Item_03()
-/* 13: */ {
-/* 14:11 */ super("metaitem.03", new OrePrefixes[] { OrePrefixes.crateGtDust, OrePrefixes.crateGtIngot, OrePrefixes.crateGtGem, OrePrefixes.crateGtPlate });
-/* 15:12 */ INSTANCE = this;
-/* 16: */ }
-/* 17: */
-/* 18: */ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
-/* 19: */ {
-/* 20:17 */ return aDoShowAllItems;
-/* 21: */ }
-/* 22: */ }
+package gregtech.common.items;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.items.GT_MetaGenerated_Item_X32;
+
+public class GT_MetaGenerated_Item_03
+ extends GT_MetaGenerated_Item_X32
+{
+ public static GT_MetaGenerated_Item_03 INSTANCE;
+
+ public GT_MetaGenerated_Item_03()
+ {
+ super("metaitem.03", new OrePrefixes[] { OrePrefixes.crateGtDust, OrePrefixes.crateGtIngot, OrePrefixes.crateGtGem, OrePrefixes.crateGtPlate });
+ INSTANCE = this;
+ }
+
+ public boolean doesShowInCreative(OrePrefixes aPrefix, Materials aMaterial, boolean aDoShowAllItems)
+ {
+ return aDoShowAllItems;
+ }
+}
/* 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/items/GT_MetaGenerated_Tool_01.java b/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java index 7a593de334..786b48043a 100644 --- a/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java +++ b/main/java/gregtech/common/items/GT_MetaGenerated_Tool_01.java @@ -1,193 +1,193 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.items;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ConfigCategories.Tools;
-/* 5: */ import gregtech.api.enums.Materials;
-/* 6: */ import gregtech.api.enums.OrePrefixes;
-/* 7: */ import gregtech.api.enums.TC_Aspects;
-/* 8: */ import gregtech.api.enums.TC_Aspects.TC_AspectStack;
-/* 9: */ import gregtech.api.enums.ToolDictNames;
-/* 10: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 11: */ import gregtech.api.util.GT_Config;
-/* 12: */ import gregtech.api.util.GT_ModHandler;
-/* 13: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
-/* 14: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 15: */ import gregtech.common.tools.GT_Tool_Axe;
-/* 16: */ import gregtech.common.tools.GT_Tool_BranchCutter;
-/* 17: */ import gregtech.common.tools.GT_Tool_ButcheryKnife;
-/* 18: */ import gregtech.common.tools.GT_Tool_BuzzSaw;
-/* 19: */ import gregtech.common.tools.GT_Tool_Chainsaw_HV;
-/* 20: */ import gregtech.common.tools.GT_Tool_Chainsaw_LV;
-/* 21: */ import gregtech.common.tools.GT_Tool_Chainsaw_MV;
-/* 22: */ import gregtech.common.tools.GT_Tool_Crowbar;
-/* 23: */ import gregtech.common.tools.GT_Tool_Drill_HV;
-/* 24: */ import gregtech.common.tools.GT_Tool_Drill_LV;
-/* 25: */ import gregtech.common.tools.GT_Tool_Drill_MV;
-/* 26: */ import gregtech.common.tools.GT_Tool_File;
-/* 27: */ import gregtech.common.tools.GT_Tool_HardHammer;
-/* 28: */ import gregtech.common.tools.GT_Tool_Hoe;
-/* 29: */ import gregtech.common.tools.GT_Tool_JackHammer;
-/* 30: */ import gregtech.common.tools.GT_Tool_Knife;
-/* 31: */ import gregtech.common.tools.GT_Tool_Mortar;
-/* 32: */ import gregtech.common.tools.GT_Tool_Pickaxe;
-/* 33: */ import gregtech.common.tools.GT_Tool_Plow;
-/* 34: */ import gregtech.common.tools.GT_Tool_Plunger;
-/* 35: */ import gregtech.common.tools.GT_Tool_RollingPin;
-/* 36: */ import gregtech.common.tools.GT_Tool_Saw;
-/* 37: */ import gregtech.common.tools.GT_Tool_Scoop;
-/* 38: */ import gregtech.common.tools.GT_Tool_Screwdriver;
-/* 39: */ import gregtech.common.tools.GT_Tool_Screwdriver_LV;
-/* 40: */ import gregtech.common.tools.GT_Tool_Sense;
-/* 41: */ import gregtech.common.tools.GT_Tool_Shovel;
-/* 42: */ import gregtech.common.tools.GT_Tool_SoftHammer;
+import gregtech.api.enums.ConfigCategories.Tools;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.TC_Aspects;
+import gregtech.api.enums.TC_Aspects.TC_AspectStack;
+import gregtech.api.enums.ToolDictNames;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Config;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler.RecipeBits;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.common.tools.GT_Tool_Axe;
+import gregtech.common.tools.GT_Tool_BranchCutter;
+import gregtech.common.tools.GT_Tool_ButcheryKnife;
+import gregtech.common.tools.GT_Tool_BuzzSaw;
+import gregtech.common.tools.GT_Tool_Chainsaw_HV;
+import gregtech.common.tools.GT_Tool_Chainsaw_LV;
+import gregtech.common.tools.GT_Tool_Chainsaw_MV;
+import gregtech.common.tools.GT_Tool_Crowbar;
+import gregtech.common.tools.GT_Tool_Drill_HV;
+import gregtech.common.tools.GT_Tool_Drill_LV;
+import gregtech.common.tools.GT_Tool_Drill_MV;
+import gregtech.common.tools.GT_Tool_File;
+import gregtech.common.tools.GT_Tool_HardHammer;
+import gregtech.common.tools.GT_Tool_Hoe;
+import gregtech.common.tools.GT_Tool_JackHammer;
+import gregtech.common.tools.GT_Tool_Knife;
+import gregtech.common.tools.GT_Tool_Mortar;
+import gregtech.common.tools.GT_Tool_Pickaxe;
+import gregtech.common.tools.GT_Tool_Plow;
+import gregtech.common.tools.GT_Tool_Plunger;
+import gregtech.common.tools.GT_Tool_RollingPin;
+import gregtech.common.tools.GT_Tool_Saw;
+import gregtech.common.tools.GT_Tool_Scoop;
+import gregtech.common.tools.GT_Tool_Screwdriver;
+import gregtech.common.tools.GT_Tool_Screwdriver_LV;
+import gregtech.common.tools.GT_Tool_Sense;
+import gregtech.common.tools.GT_Tool_Shovel;
+import gregtech.common.tools.GT_Tool_SoftHammer;
import gregtech.common.tools.GT_Tool_Soldering_Iron;
-/* 43: */ import gregtech.common.tools.GT_Tool_Sword;
+import gregtech.common.tools.GT_Tool_Sword;
import gregtech.common.tools.GT_Tool_Turbine;
import gregtech.common.tools.GT_Tool_Turbine_Huge;
import gregtech.common.tools.GT_Tool_Turbine_Large;
import gregtech.common.tools.GT_Tool_Turbine_Normal;
import gregtech.common.tools.GT_Tool_Turbine_Small;
-/* 44: */ import gregtech.common.tools.GT_Tool_UniversalSpade;
-/* 45: */ import gregtech.common.tools.GT_Tool_WireCutter;
-/* 46: */ import gregtech.common.tools.GT_Tool_Wrench;
-/* 47: */ import gregtech.common.tools.GT_Tool_Wrench_HV;
-/* 48: */ import gregtech.common.tools.GT_Tool_Wrench_LV;
-/* 49: */ import gregtech.common.tools.GT_Tool_Wrench_MV;
-/* 50: */ import net.minecraft.init.Blocks;
-/* 51: */ import net.minecraft.init.Items;
-/* 52: */ import net.minecraft.item.ItemStack;
-/* 53: */
-/* 54: */ public class GT_MetaGenerated_Tool_01
-/* 55: */ extends GT_MetaGenerated_Tool
-/* 56: */ {
-/* 57: */ public static GT_MetaGenerated_Tool_01 INSTANCE;
-/* 58: */ public static final short SWORD = 0;
-/* 59: */ public static final short PICKAXE = 2;
-/* 60: */ public static final short SHOVEL = 4;
-/* 61: */ public static final short AXE = 6;
-/* 62: */ public static final short HOE = 8;
-/* 63: */ public static final short SAW = 10;
-/* 64: */ public static final short HARDHAMMER = 12;
-/* 65: */ public static final short SOFTHAMMER = 14;
-/* 66: */ public static final short WRENCH = 16;
-/* 67: */ public static final short FILE = 18;
-/* 68: */ public static final short CROWBAR = 20;
-/* 69: */ public static final short SCREWDRIVER = 22;
-/* 70: */ public static final short MORTAR = 24;
-/* 71: */ public static final short WIRECUTTER = 26;
-/* 72: */ public static final short SCOOP = 28;
-/* 73: */ public static final short BRANCHCUTTER = 30;
-/* 74: */ public static final short UNIVERSALSPADE = 32;
-/* 75: */ public static final short KNIFE = 34;
-/* 76: */ public static final short BUTCHERYKNIFE = 36;
-/* 77: */ public static final short SICKLE = 38;
-/* 78: */ public static final short SENSE = 40;
-/* 79: */ public static final short PLOW = 42;
-/* 80: */ public static final short PLUNGER = 44;
-/* 81: */ public static final short ROLLING_PIN = 46;
-/* 82: */ public static final short DRILL_LV = 100;
-/* 83: */ public static final short DRILL_MV = 102;
-/* 84: */ public static final short DRILL_HV = 104;
-/* 85: */ public static final short CHAINSAW_LV = 110;
-/* 86: */ public static final short CHAINSAW_MV = 112;
-/* 87: */ public static final short CHAINSAW_HV = 114;
-/* 88: */ public static final short WRENCH_LV = 120;
-/* 89: */ public static final short WRENCH_MV = 122;
-/* 90: */ public static final short WRENCH_HV = 124;
-/* 91: */ public static final short JACKHAMMER = 130;
-/* 92: */ public static final short BUZZSAW = 140;
-/* 93: */ public static final short SCREWDRIVER_LV = 150;
+import gregtech.common.tools.GT_Tool_UniversalSpade;
+import gregtech.common.tools.GT_Tool_WireCutter;
+import gregtech.common.tools.GT_Tool_Wrench;
+import gregtech.common.tools.GT_Tool_Wrench_HV;
+import gregtech.common.tools.GT_Tool_Wrench_LV;
+import gregtech.common.tools.GT_Tool_Wrench_MV;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaGenerated_Tool_01
+ extends GT_MetaGenerated_Tool
+{
+ public static GT_MetaGenerated_Tool_01 INSTANCE;
+ public static final short SWORD = 0;
+ public static final short PICKAXE = 2;
+ public static final short SHOVEL = 4;
+ public static final short AXE = 6;
+ public static final short HOE = 8;
+ public static final short SAW = 10;
+ public static final short HARDHAMMER = 12;
+ public static final short SOFTHAMMER = 14;
+ public static final short WRENCH = 16;
+ public static final short FILE = 18;
+ public static final short CROWBAR = 20;
+ public static final short SCREWDRIVER = 22;
+ public static final short MORTAR = 24;
+ public static final short WIRECUTTER = 26;
+ public static final short SCOOP = 28;
+ public static final short BRANCHCUTTER = 30;
+ public static final short UNIVERSALSPADE = 32;
+ public static final short KNIFE = 34;
+ public static final short BUTCHERYKNIFE = 36;
+ public static final short SICKLE = 38;
+ public static final short SENSE = 40;
+ public static final short PLOW = 42;
+ public static final short PLUNGER = 44;
+ public static final short ROLLING_PIN = 46;
+ public static final short DRILL_LV = 100;
+ public static final short DRILL_MV = 102;
+ public static final short DRILL_HV = 104;
+ public static final short CHAINSAW_LV = 110;
+ public static final short CHAINSAW_MV = 112;
+ public static final short CHAINSAW_HV = 114;
+ public static final short WRENCH_LV = 120;
+ public static final short WRENCH_MV = 122;
+ public static final short WRENCH_HV = 124;
+ public static final short JACKHAMMER = 130;
+ public static final short BUZZSAW = 140;
+ public static final short SCREWDRIVER_LV = 150;
public static final short SOLDERING_IRON_LV = 160;
public static final short TURBINE_SMALL = 170;
public static final short TURBINE = 172;
public static final short TURBINE_LARGE = 174;
public static final short TURBINE_HUGE = 176;
public static final short TURBINE_BLADE = 178;
-/* 94: */
-/* 95: */ public GT_MetaGenerated_Tool_01()
-/* 96: */ {
-/* 97:20 */ super("metatool.01");
-/* 98:21 */ INSTANCE = this;
-/* 99:22 */ addTool(0, "Sword", "", new GT_Tool_Sword(), new Object[] { ToolDictNames.craftingToolSword, ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 4L) });
-/* :0:23 */ addTool(2, "Pickaxe", "", new GT_Tool_Pickaxe(), new Object[] { ToolDictNames.craftingToolPickaxe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
-/* :1:24 */ addTool(4, "Shovel", "", new GT_Tool_Shovel(), new Object[] { ToolDictNames.craftingToolShovel, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
-/* :2:25 */ addTool(6, "Axe", "", new GT_Tool_Axe(), new Object[] { ToolDictNames.craftingToolAxe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* :3:26 */ addTool(8, "Hoe", "", new GT_Tool_Hoe(), new Object[] { ToolDictNames.craftingToolHoe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 4L) });
-/* :4:27 */ addTool(10, "Saw", "Can also harvest Ice", new GT_Tool_Saw(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* :5:28 */ GregTech_API.registerTool(addTool(12, "Hammer", "Crushes Ores instead of harvesting them", new GT_Tool_HardHammer(), new Object[] { ToolDictNames.craftingToolHardHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sHardHammerList);
-/* :6:29 */ GregTech_API.registerTool(addTool(14, "Soft Hammer", "", new GT_Tool_SoftHammer(), new Object[] { ToolDictNames.craftingToolSoftHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L) }), GregTech_API.sSoftHammerList);
-/* :7:30 */ GregTech_API.registerTool(addTool(WRENCH, "Wrench", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
-/* :8:31 */ addTool(18, "File", "", new GT_Tool_File(), new Object[] { ToolDictNames.craftingToolFile, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) });
-/* :9:32 */ GregTech_API.registerTool(addTool(20, "Crowbar", "Dismounts Covers and Rotates Rails", new GT_Tool_Crowbar(), new Object[] { ToolDictNames.craftingToolCrowbar, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L) }), GregTech_API.sCrowbarList);
-/* ;0:33 */ GregTech_API.registerTool(addTool(22, "Screwdriver", "Adjusts Covers and Machines", new GT_Tool_Screwdriver(), new Object[] { ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sScrewdriverList);
-/* ;1:34 */ addTool(24, "Mortar", "", new GT_Tool_Mortar(), new Object[] { ToolDictNames.craftingToolMortar, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L) });
-/* ;2:35 */ addTool(26, "Wire Cutter", "", new GT_Tool_WireCutter(), new Object[] { ToolDictNames.craftingToolWireCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) });
-/* ;3:36 */ addTool(28, "Scoop", "", new GT_Tool_Scoop(), new Object[] { ToolDictNames.craftingToolScoop, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.BESTIA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PANNUS, 2L) });
-/* ;4:37 */ addTool(30, "Branch Cutter", "", new GT_Tool_BranchCutter(), new Object[] { ToolDictNames.craftingToolBranchCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L) });
-/* ;5:38 */ GregTech_API.registerTool(addTool(32, "Universal Spade", "", new GT_Tool_UniversalSpade(), new Object[] { ToolDictNames.craftingToolBlade, ToolDictNames.craftingToolShovel, ToolDictNames.craftingToolCrowbar, ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }), GregTech_API.sCrowbarList);
-/* ;6:39 */ addTool(34, "Knife", "", new GT_Tool_Knife(), new Object[] { ToolDictNames.craftingToolBlade, ToolDictNames.craftingToolKnife, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L) });
-/* ;7:40 */ addTool(36, "Butchery Knife", "Has a slow Attack Rate", new GT_Tool_ButcheryKnife(), new Object[] { ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 4L) });
-/* ;8: */
-/* ;9:42 */ addTool(40, "Sense", "Because a Scythe doesn't make Sense", new GT_Tool_Sense(), new Object[] { ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 2L) });
-/* <0:43 */ addTool(42, "Plow", "Used to get rid of Snow", new GT_Tool_Plow(), new Object[] { ToolDictNames.craftingToolPlow, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 2L) });
-/* <1:44 */ addTool(44, "Plunger", "", new GT_Tool_Plunger(), new Object[] { ToolDictNames.craftingToolPlunger, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) });
-/* <2:45 */ addTool(46, "Rolling Pin", "", new GT_Tool_RollingPin(), new Object[] { ToolDictNames.craftingToolRollingPin, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L) });
-/* <3: */
-/* <4:47 */ addTool(100, "Drill (LV)", "", new GT_Tool_Drill_LV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
-/* <5:48 */ addTool(102, "Drill (MV)", "", new GT_Tool_Drill_MV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
-/* <6:49 */ addTool(104, "Drill (HV)", "", new GT_Tool_Drill_HV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
-/* <7:50 */ addTool(110, "Chainsaw (LV)", "Can also harvest Ice", new GT_Tool_Chainsaw_LV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* <8:51 */ addTool(112, "Chainsaw (MV)", "Can also harvest Ice", new GT_Tool_Chainsaw_MV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* <9:52 */ addTool(114, "Chainsaw (HV)", "Can also harvest Ice", new GT_Tool_Chainsaw_HV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* =0:53 */ GregTech_API.registerTool(addTool(WRENCH_LV, "Wrench (LV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_LV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
-/* =1:54 */ GregTech_API.registerTool(addTool(WRENCH_MV, "Wrench (MV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_MV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
-/* =2:55 */ GregTech_API.registerTool(addTool(WRENCH_HV, "Wrench (HV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_HV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
-/* =3:56 */ addTool(130, "JackHammer (HV)", "Breaks Rocks into pieces", new GT_Tool_JackHammer(), new Object[] { ToolDictNames.craftingToolJackHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L) });
-/* =4:57 */ addTool(140, "Buzzsaw (LV)", "Not suitable for harvesting Blocks", new GT_Tool_BuzzSaw(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
-/* =5:58 */ GregTech_API.registerTool(addTool(150, "Screwdriver (LV)", "Adjusts Covers and Machines", new GT_Tool_Screwdriver_LV(), new Object[] { ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sScrewdriverList);
-/* =6: */ GregTech_API.registerTool(addTool(SOLDERING_IRON_LV, "Soldering Iron (LV)", "Fixes burned out Circuits. Needs soldering materials in inventory", new GT_Tool_Soldering_Iron(), new Object[] { ToolDictNames.craftingToolSolderingIron, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sSolderingToolList);
+
+ public GT_MetaGenerated_Tool_01()
+ {
+ super("metatool.01");
+ INSTANCE = this;
+ addTool(0, "Sword", "", new GT_Tool_Sword(), new Object[] { ToolDictNames.craftingToolSword, ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 4L) });
+ addTool(2, "Pickaxe", "", new GT_Tool_Pickaxe(), new Object[] { ToolDictNames.craftingToolPickaxe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
+ addTool(4, "Shovel", "", new GT_Tool_Shovel(), new Object[] { ToolDictNames.craftingToolShovel, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
+ addTool(6, "Axe", "", new GT_Tool_Axe(), new Object[] { ToolDictNames.craftingToolAxe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ addTool(8, "Hoe", "", new GT_Tool_Hoe(), new Object[] { ToolDictNames.craftingToolHoe, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MESSIS, 4L) });
+ addTool(10, "Saw", "Can also harvest Ice", new GT_Tool_Saw(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ GregTech_API.registerTool(addTool(12, "Hammer", "Crushes Ores instead of harvesting them", new GT_Tool_HardHammer(), new Object[] { ToolDictNames.craftingToolHardHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sHardHammerList);
+ GregTech_API.registerTool(addTool(14, "Soft Hammer", "", new GT_Tool_SoftHammer(), new Object[] { ToolDictNames.craftingToolSoftHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L) }), GregTech_API.sSoftHammerList);
+ GregTech_API.registerTool(addTool(WRENCH, "Wrench", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
+ addTool(18, "File", "", new GT_Tool_File(), new Object[] { ToolDictNames.craftingToolFile, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) });
+ GregTech_API.registerTool(addTool(20, "Crowbar", "Dismounts Covers and Rotates Rails", new GT_Tool_Crowbar(), new Object[] { ToolDictNames.craftingToolCrowbar, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L) }), GregTech_API.sCrowbarList);
+ GregTech_API.registerTool(addTool(22, "Screwdriver", "Adjusts Covers and Machines", new GT_Tool_Screwdriver(), new Object[] { ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sScrewdriverList);
+ addTool(24, "Mortar", "", new GT_Tool_Mortar(), new Object[] { ToolDictNames.craftingToolMortar, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L) });
+ addTool(26, "Wire Cutter", "", new GT_Tool_WireCutter(), new Object[] { ToolDictNames.craftingToolWireCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) });
+ addTool(28, "Scoop", "", new GT_Tool_Scoop(), new Object[] { ToolDictNames.craftingToolScoop, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.BESTIA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PANNUS, 2L) });
+ addTool(30, "Branch Cutter", "", new GT_Tool_BranchCutter(), new Object[] { ToolDictNames.craftingToolBranchCutter, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L) });
+ GregTech_API.registerTool(addTool(32, "Universal Spade", "", new GT_Tool_UniversalSpade(), new Object[] { ToolDictNames.craftingToolBlade, ToolDictNames.craftingToolShovel, ToolDictNames.craftingToolCrowbar, ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 1L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 1L) }), GregTech_API.sCrowbarList);
+ addTool(34, "Knife", "", new GT_Tool_Knife(), new Object[] { ToolDictNames.craftingToolBlade, ToolDictNames.craftingToolKnife, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.TELUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 2L) });
+ addTool(36, "Butchery Knife", "Has a slow Attack Rate", new GT_Tool_ButcheryKnife(), new Object[] { ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.CORPUS, 4L) });
+
+ addTool(40, "Sense", "Because a Scythe doesn't make Sense", new GT_Tool_Sense(), new Object[] { ToolDictNames.craftingToolBlade, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.HERBA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.MORTUUS, 2L) });
+ addTool(42, "Plow", "Used to get rid of Snow", new GT_Tool_Plow(), new Object[] { ToolDictNames.craftingToolPlow, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.GELUM, 2L) });
+ addTool(44, "Plunger", "", new GT_Tool_Plunger(), new Object[] { ToolDictNames.craftingToolPlunger, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ITER, 2L) });
+ addTool(46, "Rolling Pin", "", new GT_Tool_RollingPin(), new Object[] { ToolDictNames.craftingToolRollingPin, new TC_Aspects.TC_AspectStack(TC_Aspects.INSTRUMENTUM, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.LIMUS, 4L) });
+
+ addTool(100, "Drill (LV)", "", new GT_Tool_Drill_LV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
+ addTool(102, "Drill (MV)", "", new GT_Tool_Drill_MV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
+ addTool(104, "Drill (HV)", "", new GT_Tool_Drill_HV(), new Object[] { ToolDictNames.craftingToolMiningDrill, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 4L) });
+ addTool(110, "Chainsaw (LV)", "Can also harvest Ice", new GT_Tool_Chainsaw_LV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ addTool(112, "Chainsaw (MV)", "Can also harvest Ice", new GT_Tool_Chainsaw_MV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ addTool(114, "Chainsaw (HV)", "Can also harvest Ice", new GT_Tool_Chainsaw_HV(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.METO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ GregTech_API.registerTool(addTool(WRENCH_LV, "Wrench (LV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_LV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
+ GregTech_API.registerTool(addTool(WRENCH_MV, "Wrench (MV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_MV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
+ GregTech_API.registerTool(addTool(WRENCH_HV, "Wrench (HV)", "Hold Leftclick to dismantle Machines", new GT_Tool_Wrench_HV(), new Object[] { ToolDictNames.craftingToolWrench, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 4L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sWrenchList);
+ addTool(130, "JackHammer (HV)", "Breaks Rocks into pieces", new GT_Tool_JackHammer(), new Object[] { ToolDictNames.craftingToolJackHammer, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERFODIO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERDITIO, 2L) });
+ addTool(140, "Buzzsaw (LV)", "Not suitable for harvesting Blocks", new GT_Tool_BuzzSaw(), new Object[] { ToolDictNames.craftingToolSaw, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 2L) });
+ GregTech_API.registerTool(addTool(150, "Screwdriver (LV)", "Adjusts Covers and Machines", new GT_Tool_Screwdriver_LV(), new Object[] { ToolDictNames.craftingToolScrewdriver, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sScrewdriverList);
+ GregTech_API.registerTool(addTool(SOLDERING_IRON_LV, "Soldering Iron (LV)", "Fixes burned out Circuits. Needs soldering materials in inventory", new GT_Tool_Soldering_Iron(), new Object[] { ToolDictNames.craftingToolSolderingIron, new TC_Aspects.TC_AspectStack(TC_Aspects.MACHINA, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.FABRICO, 2L), new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 2L) }), GregTech_API.sSolderingToolList);
addTool(TURBINE_SMALL, "Small Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Small(), new Object[] {});
addTool(TURBINE, "Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Normal(), new Object[] {});
addTool(TURBINE_LARGE, "Large Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Large(), new Object[] {});
addTool(TURBINE_HUGE, "Huge Turbine", "Turbine Rotors for your power station", new GT_Tool_Turbine_Huge(), new Object[] {});
-/* =7:60 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Flint, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), new ItemStack(Items.flint, 1), Character.valueOf('S'), OrePrefixes.stone });
-/* =8:61 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Bronze, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Bronze), Character.valueOf('S'), OrePrefixes.stone });
-/* =9:62 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Iron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Iron), Character.valueOf('S'), OrePrefixes.stone });
-/* >0:63 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Steel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stone });
-/* >1:64 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.WroughtIron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.WroughtIron), Character.valueOf('S'), OrePrefixes.stone });
-/* >2:65 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.RedSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.RedSteel), Character.valueOf('S'), OrePrefixes.stone });
-/* >3:66 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.BlueSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.BlueSteel), Character.valueOf('S'), OrePrefixes.stone });
-/* >4:67 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.BlackSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.BlackSteel), Character.valueOf('S'), OrePrefixes.stone });
-/* >5:68 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.DamascusSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.DamascusSteel), Character.valueOf('S'), OrePrefixes.stone });
-/* >6:69 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Thaumium, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Thaumium), Character.valueOf('S'), OrePrefixes.stone });
-/* >7: */
-/* >8:71 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Wood, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
-/* >9:72 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Plastic, Materials.Plastic, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Plastic), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
-/* ?0:73 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Aluminium, Materials.Aluminium, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Aluminium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium) });
-/* ?1:74 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.StainlessSteel, Materials.StainlessSteel, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel) });
-/* ?2: */
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Flint, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), new ItemStack(Items.flint, 1), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Bronze, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Bronze), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Iron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Iron), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Steel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Steel), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.WroughtIron, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.WroughtIron), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.RedSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.RedSteel), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.BlueSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.BlueSteel), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.BlackSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.BlackSteel), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.DamascusSteel, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.DamascusSteel), Character.valueOf('S'), OrePrefixes.stone });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(24, 1, Materials.Thaumium, Materials.Stone, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " I ", "SIS", "SSS", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Thaumium), Character.valueOf('S'), OrePrefixes.stone });
+
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Wood, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.plank.get(Materials.Wood), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Plastic, Materials.Plastic, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Plastic), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Plastic) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.Aluminium, Materials.Aluminium, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.Aluminium), Character.valueOf('S'), OrePrefixes.stick.get(Materials.Aluminium) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(46, 1, Materials.StainlessSteel, Materials.StainlessSteel, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { " S", " I ", "S f", Character.valueOf('I'), OrePrefixes.ingot.get(Materials.StainlessSteel), Character.valueOf('S'), OrePrefixes.stick.get(Materials.StainlessSteel) });
+
if(!GregTech_API.sSpecialFile.get(ConfigCategories.general, "DisableFlintTools", false)){
-/* ?3:76 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(0, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "F", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?4:77 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(2, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FFF", " S ", " S ", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?5:78 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(4, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "S", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?6:79 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(6, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FF", "FS", " S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?7:80 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(8, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FF", " S", " S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?8:81 */ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(34, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
-/* ?9:83 */ }if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Coal", true)) {
-/* @0:83 */ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.coal, 1) });
-/* @1: */ }
-/* @2:84 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Clay", true)) {
-/* @3:84 */ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.clay, 1) });
-/* @4: */ }
-/* @5:85 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Wheat", true)) {
-/* @6:85 */ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.wheat, 1) });
-/* @7: */ }
-/* @8:86 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Flint", true)) {
-/* @9:86 */ GT_ModHandler.addShapelessCraftingRecipe(new ItemStack(Items.flint, 1), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.gravel, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(0, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "F", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(2, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FFF", " S ", " S ", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(4, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "S", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(6, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FF", "FS", " S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(8, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.MIRRORED | GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "FF", " S", " S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ GT_ModHandler.addCraftingRecipe(INSTANCE.getToolWithStats(34, 1, Materials.Flint, Materials.Wood, null), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { "F", "S", Character.valueOf('S'), OrePrefixes.stick.get(Materials.Wood), Character.valueOf('F'), new ItemStack(Items.flint, 1) });
+ }if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Coal", true)) {
+ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.coal, 1) });
+ }
+ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Clay", true)) {
+ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Clay, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.clay, 1) });
+ }
+ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Wheat", true)) {
+ GT_ModHandler.addShapelessCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Wheat, 1L), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.wheat, 1) });
+ }
+ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Flint", true)) {
+ GT_ModHandler.addShapelessCraftingRecipe(new ItemStack(Items.flint, 1), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Blocks.gravel, 1) });
/* A0: */ }
/* A1:87 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.mortar, "Blaze", true)) {
/* A2:87 */ GT_ModHandler.addShapelessCraftingRecipe(new ItemStack(Items.blaze_powder, 2), GT_ModHandler.RecipeBits.NOT_REMOVABLE, new Object[] { ToolDictNames.craftingToolMortar, new ItemStack(Items.blaze_rod, 1) });
diff --git a/main/java/gregtech/common/items/GT_SensorCard_Item.java b/main/java/gregtech/common/items/GT_SensorCard_Item.java index 0527027887..aa0f6c2288 100644 --- a/main/java/gregtech/common/items/GT_SensorCard_Item.java +++ b/main/java/gregtech/common/items/GT_SensorCard_Item.java @@ -1,104 +1,104 @@ -/* 1: */ package gregtech.common.items;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
-/* 6: */ import gregtech.api.items.GT_Generic_Item;
-/* 7: */ import gregtech.api.util.GT_LanguageManager;
-/* 8: */ import java.util.ArrayList;
-/* 9: */ import java.util.LinkedList;
-/* 10: */ import java.util.List;
-/* 11: */ import java.util.UUID;
-/* 12: */ import net.minecraft.creativetab.CreativeTabs;
-/* 13: */ import net.minecraft.item.Item;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.nbt.NBTTagCompound;
-/* 16: */ import net.minecraft.tileentity.TileEntity;
-/* 17: */ import net.minecraft.util.ChunkCoordinates;
-/* 18: */ import net.minecraft.world.World;
-/* 19: */ import shedar.mods.ic2.nuclearcontrol.api.CardState;
-/* 20: */ import shedar.mods.ic2.nuclearcontrol.api.ICardWrapper;
-/* 21: */ import shedar.mods.ic2.nuclearcontrol.api.IPanelDataSource;
-/* 22: */ import shedar.mods.ic2.nuclearcontrol.api.IRemoteSensor;
-/* 23: */ import shedar.mods.ic2.nuclearcontrol.api.PanelSetting;
-/* 24: */ import shedar.mods.ic2.nuclearcontrol.api.PanelString;
-/* 25: */
-/* 26: */ public class GT_SensorCard_Item
-/* 27: */ extends GT_Generic_Item
-/* 28: */ implements IRemoteSensor, IPanelDataSource
-/* 29: */ {
-/* 30: */ public GT_SensorCard_Item(String aUnlocalized, String aEnglish)
-/* 31: */ {
-/* 32:26 */ super(aUnlocalized, aEnglish, "Insert into Display Panel");
-/* 33:27 */ setMaxStackSize(1);
-/* 34: */ }
-/* 35: */
-/* 36: */ public void addAdditionalToolTips(List aList, ItemStack aStack)
-/* 37: */ {
-/* 38:32 */ super.addAdditionalToolTips(aList, aStack);
-/* 39:33 */ if (aStack != null)
-/* 40: */ {
-/* 41:34 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 42:35 */ if (tNBT == null)
-/* 43: */ {
-/* 44:36 */ aList.add("Missing Coodinates!");
-/* 45: */ }
-/* 46: */ else
-/* 47: */ {
-/* 48:38 */ aList.add("Device at:");
-/* 49:39 */ aList.add(String.format("x: %d, y: %d, z: %d", new Object[] { Integer.valueOf(tNBT.getInteger("x")), Integer.valueOf(tNBT.getInteger("y")), Integer.valueOf(tNBT.getInteger("z")) }));
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53: */
-/* 54: */ public CardState update(TileEntity aPanel, ICardWrapper aCard, int aMaxRange)
-/* 55: */ {
-/* 56:46 */ ChunkCoordinates target = aCard.getTarget();
-/* 57:47 */ TileEntity tTileEntity = aPanel.getWorldObj().getTileEntity(target.posX, target.posY, target.posZ);
-/* 58:48 */ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation()))
-/* 59: */ {
-/* 60:49 */ String[] tInfoData = ((IGregTechDeviceInformation)tTileEntity).getInfoData();
-/* 61:50 */ for (int i = 0; i < tInfoData.length; i++) {
-/* 62:50 */ aCard.setString("mString" + i, tInfoData[i]);
-/* 63: */ }
-/* 64:51 */ return CardState.OK;
-/* 65: */ }
-/* 66:53 */ return CardState.NO_TARGET;
-/* 67: */ }
-/* 68: */
-/* 69: */ public List<PanelString> getStringData(int aSettings, ICardWrapper aCard, boolean aLabels)
-/* 70: */ {
-/* 71:58 */ List<PanelString> rList = new LinkedList();
-/* 72:59 */ for (int i = 0; i < 8; i++) {
-/* 73:60 */ if ((aSettings & 1 << i) != 0)
-/* 74: */ {
-/* 75:61 */ PanelString line = new PanelString();
-/* 76:62 */ line.textLeft = GT_LanguageManager.getTranslation(aCard.getString("mString" + i), "\\\\");
-/* 77:63 */ rList.add(line);
-/* 78: */ }
-/* 79: */ }
-/* 80:66 */ return rList;
-/* 81: */ }
-/* 82: */
-/* 83: */ public List<PanelSetting> getSettingsList()
-/* 84: */ {
-/* 85:71 */ List<PanelSetting> rList = new ArrayList(30);
-/* 86:72 */ for (int i = 0; i < 8; i++) {
-/* 87:72 */ rList.add(new PanelSetting("" + (i + 1), 1 << i, getCardType()));
-/* 88: */ }
-/* 89:73 */ return rList;
-/* 90: */ }
-/* 91: */
-/* 92:76 */ private static final UUID CARD_TYPE = new UUID(0L, 41L);
-/* 93: */
-/* 94: */ public UUID getCardType()
-/* 95: */ {
-/* 96:77 */ return CARD_TYPE;
-/* 97: */ }
-/* 98: */
-/* 99: */ @SideOnly(Side.CLIENT)
-/* :0: */ public void getSubItems(Item var1, CreativeTabs aTab, List aList) {}
-/* :1: */ }
+package gregtech.common.items;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
+import gregtech.api.items.GT_Generic_Item;
+import gregtech.api.util.GT_LanguageManager;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.UUID;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.util.ChunkCoordinates;
+import net.minecraft.world.World;
+import shedar.mods.ic2.nuclearcontrol.api.CardState;
+import shedar.mods.ic2.nuclearcontrol.api.ICardWrapper;
+import shedar.mods.ic2.nuclearcontrol.api.IPanelDataSource;
+import shedar.mods.ic2.nuclearcontrol.api.IRemoteSensor;
+import shedar.mods.ic2.nuclearcontrol.api.PanelSetting;
+import shedar.mods.ic2.nuclearcontrol.api.PanelString;
+
+public class GT_SensorCard_Item
+ extends GT_Generic_Item
+ implements IRemoteSensor, IPanelDataSource
+{
+ public GT_SensorCard_Item(String aUnlocalized, String aEnglish)
+ {
+ super(aUnlocalized, aEnglish, "Insert into Display Panel");
+ setMaxStackSize(1);
+ }
+
+ public void addAdditionalToolTips(List aList, ItemStack aStack)
+ {
+ super.addAdditionalToolTips(aList, aStack);
+ if (aStack != null)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null)
+ {
+ aList.add("Missing Coodinates!");
+ }
+ else
+ {
+ aList.add("Device at:");
+ aList.add(String.format("x: %d, y: %d, z: %d", new Object[] { Integer.valueOf(tNBT.getInteger("x")), Integer.valueOf(tNBT.getInteger("y")), Integer.valueOf(tNBT.getInteger("z")) }));
+ }
+ }
+ }
+
+ public CardState update(TileEntity aPanel, ICardWrapper aCard, int aMaxRange)
+ {
+ ChunkCoordinates target = aCard.getTarget();
+ TileEntity tTileEntity = aPanel.getWorldObj().getTileEntity(target.posX, target.posY, target.posZ);
+ if ((tTileEntity != null) && ((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation()))
+ {
+ String[] tInfoData = ((IGregTechDeviceInformation)tTileEntity).getInfoData();
+ for (int i = 0; i < tInfoData.length; i++) {
+ aCard.setString("mString" + i, tInfoData[i]);
+ }
+ return CardState.OK;
+ }
+ return CardState.NO_TARGET;
+ }
+
+ public List<PanelString> getStringData(int aSettings, ICardWrapper aCard, boolean aLabels)
+ {
+ List<PanelString> rList = new LinkedList();
+ for (int i = 0; i < 8; i++) {
+ if ((aSettings & 1 << i) != 0)
+ {
+ PanelString line = new PanelString();
+ line.textLeft = GT_LanguageManager.getTranslation(aCard.getString("mString" + i), "\\\\");
+ rList.add(line);
+ }
+ }
+ return rList;
+ }
+
+ public List<PanelSetting> getSettingsList()
+ {
+ List<PanelSetting> rList = new ArrayList(30);
+ for (int i = 0; i < 8; i++) {
+ rList.add(new PanelSetting("" + (i + 1), 1 << i, getCardType()));
+ }
+ return rList;
+ }
+
+ private static final UUID CARD_TYPE = new UUID(0L, 41L);
+
+ public UUID getCardType()
+ {
+ return CARD_TYPE;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public void getSubItems(Item var1, CreativeTabs aTab, List aList) {}
+}
/* 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/items/behaviors/Behaviour_Arrow.java b/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java index 0b59f2772a..ff13e1287b 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Arrow.java @@ -1,132 +1,132 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.enums.SubTag;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import gregtech.api.util.GT_Utility.GT_EnchantmentHelper;
-/* 7: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 8: */ import gregtech.common.entities.GT_Entity_Arrow;
-/* 9: */ import net.minecraft.block.BlockDispenser;
-/* 10: */ import net.minecraft.dispenser.IBlockSource;
-/* 11: */ import net.minecraft.dispenser.IPosition;
-/* 12: */ import net.minecraft.enchantment.Enchantment;
-/* 13: */ import net.minecraft.entity.Entity;
-/* 14: */ import net.minecraft.entity.EntityLivingBase;
-/* 15: */ import net.minecraft.entity.player.EntityPlayer;
-/* 16: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 17: */ import net.minecraft.entity.projectile.EntityArrow;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraft.nbt.NBTTagCompound;
-/* 20: */ import net.minecraft.util.EnumFacing;
-/* 21: */ import net.minecraft.world.World;
-/* 22: */
-/* 23: */ public class Behaviour_Arrow
-/* 24: */ extends Behaviour_None
-/* 25: */ {
-/* 26: 22 */ public static Behaviour_Arrow DEFAULT_WOODEN = new Behaviour_Arrow(GT_Entity_Arrow.class, 1.0F, 6.0F);
-/* 27: 23 */ public static Behaviour_Arrow DEFAULT_PLASTIC = new Behaviour_Arrow(GT_Entity_Arrow.class, 1.5F, 6.0F);
-/* 28: */ private final int mLevel;
-/* 29: */ private final Enchantment mEnchantment;
-/* 30: */ private final float mSpeedMultiplier;
-/* 31: */ private final float mPrecision;
-/* 32: */ private final Class<? extends GT_Entity_Arrow> mArrow;
-/* 33: */
-/* 34: */ public Behaviour_Arrow(Class<? extends GT_Entity_Arrow> aArrow, float aSpeed, float aPrecision)
-/* 35: */ {
-/* 36: 31 */ this(aArrow, aSpeed, aPrecision, null, 0);
-/* 37: */ }
-/* 38: */
-/* 39: */ public Behaviour_Arrow(Class<? extends GT_Entity_Arrow> aArrow, float aSpeed, float aPrecision, Enchantment aEnchantment, int aLevel)
-/* 40: */ {
-/* 41: 35 */ this.mArrow = aArrow;
-/* 42: 36 */ this.mSpeedMultiplier = aSpeed;
-/* 43: 37 */ this.mPrecision = aPrecision;
-/* 44: 38 */ this.mEnchantment = aEnchantment;
-/* 45: 39 */ this.mLevel = aLevel;
-/* 46: */ }
-/* 47: */
-/* 48: */ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 49: */ {
-/* 50: 44 */ if ((aEntity instanceof EntityLivingBase))
-/* 51: */ {
-/* 52: 45 */ GT_Utility.GT_EnchantmentHelper.applyBullshitA((EntityLivingBase)aEntity, aPlayer, aStack);
-/* 53: 46 */ GT_Utility.GT_EnchantmentHelper.applyBullshitB(aPlayer, aEntity, aStack);
-/* 54: 47 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 55: 47 */ aStack.stackSize -= 1;
-/* 56: */ }
-/* 57: 48 */ if (aStack.stackSize <= 0) {
-/* 58: 48 */ aPlayer.destroyCurrentEquippedItem();
-/* 59: */ }
-/* 60: 49 */ return false;
-/* 61: */ }
-/* 62: 51 */ return false;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean isItemStackUsable(GT_MetaBase_Item aItem, ItemStack aStack)
-/* 66: */ {
-/* 67: 56 */ if ((this.mEnchantment != null) && (this.mLevel > 0))
-/* 68: */ {
-/* 69: 57 */ NBTTagCompound tNBT = GT_Utility.ItemNBT.getNBT(aStack);
-/* 70: 58 */ if (!tNBT.getBoolean("GT.HasBeenUpdated"))
-/* 71: */ {
-/* 72: 59 */ tNBT.setBoolean("GT.HasBeenUpdated", true);
-/* 73: 60 */ GT_Utility.ItemNBT.setNBT(aStack, tNBT);
-/* 74: 61 */ GT_Utility.ItemNBT.addEnchantment(aStack, this.mEnchantment, this.mLevel);
-/* 75: */ }
-/* 76: */ }
-/* 77: 64 */ return true;
-/* 78: */ }
-/* 79: */
-/* 80: */ public boolean canDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
-/* 81: */ {
-/* 82: 69 */ return true;
-/* 83: */ }
-/* 84: */
-/* 85: */ public ItemStack onDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
-/* 86: */ {
-/* 87: 74 */ World aWorld = aSource.getWorld();
-/* 88: 75 */ IPosition tPosition = BlockDispenser.func_149939_a(aSource);
-/* 89: 76 */ EnumFacing tFacing = BlockDispenser.func_149937_b(aSource.getBlockMetadata());
-/* 90: 77 */ GT_Entity_Arrow tEntityArrow = (GT_Entity_Arrow)getProjectile(aItem, SubTag.PROJECTILE_ARROW, aStack, aWorld, tPosition.getX(), tPosition.getY(), tPosition.getZ());
-/* 91: 78 */ if (tEntityArrow != null)
-/* 92: */ {
-/* 93: 79 */ tEntityArrow.setThrowableHeading(tFacing.getFrontOffsetX(), tFacing.getFrontOffsetY() + 0.1F, tFacing.getFrontOffsetZ(), this.mSpeedMultiplier * 1.1F, this.mPrecision);
-/* 94: 80 */ tEntityArrow.setArrowItem(aStack);
-/* 95: 81 */ tEntityArrow.canBePickedUp = 1;
-/* 96: 82 */ aWorld.spawnEntityInWorld(tEntityArrow);
-/* 97: 83 */ if (aStack.stackSize < 100) {
-/* 98: 83 */ aStack.stackSize -= 1;
-/* 99: */ }
-/* 100: 84 */ return aStack;
-/* 101: */ }
-/* 102: 86 */ return super.onDispense(aItem, aSource, aStack);
-/* 103: */ }
-/* 104: */
-/* 105: */ public boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack)
-/* 106: */ {
-/* 107: 91 */ return aProjectileType == SubTag.PROJECTILE_ARROW;
-/* 108: */ }
-/* 109: */
-/* 110: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
-/* 111: */ {
-/* 112: 96 */ if (!hasProjectile(aItem, aProjectileType, aStack)) {
-/* 113: 96 */ return null;
-/* 114: */ }
-/* 115: 97 */ GT_Entity_Arrow rArrow = (GT_Entity_Arrow)GT_Utility.callConstructor(this.mArrow.getName(), -1, null, true, new Object[] { aWorld, Double.valueOf(aX), Double.valueOf(aY), Double.valueOf(aZ) });
-/* 116: 98 */ rArrow.setArrowItem(aStack);
-/* 117: 99 */ return rArrow;
-/* 118: */ }
-/* 119: */
-/* 120: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 121: */ {
-/* 122:104 */ if (!hasProjectile(aItem, aProjectileType, aStack)) {
-/* 123:104 */ return null;
-/* 124: */ }
-/* 125:105 */ GT_Entity_Arrow rArrow = (GT_Entity_Arrow)GT_Utility.callConstructor(this.mArrow.getName(), -1, null, true, new Object[] { aWorld, aEntity, Float.valueOf(this.mSpeedMultiplier * aSpeed) });
-/* 126:106 */ rArrow.setArrowItem(aStack);
-/* 127:107 */ return rArrow;
-/* 128: */ }
-/* 129: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.enums.SubTag;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.GT_EnchantmentHelper;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import gregtech.common.entities.GT_Entity_Arrow;
+import net.minecraft.block.BlockDispenser;
+import net.minecraft.dispenser.IBlockSource;
+import net.minecraft.dispenser.IPosition;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.entity.projectile.EntityArrow;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.EnumFacing;
+import net.minecraft.world.World;
+
+public class Behaviour_Arrow
+ extends Behaviour_None
+{
+ public static Behaviour_Arrow DEFAULT_WOODEN = new Behaviour_Arrow(GT_Entity_Arrow.class, 1.0F, 6.0F);
+ public static Behaviour_Arrow DEFAULT_PLASTIC = new Behaviour_Arrow(GT_Entity_Arrow.class, 1.5F, 6.0F);
+ private final int mLevel;
+ private final Enchantment mEnchantment;
+ private final float mSpeedMultiplier;
+ private final float mPrecision;
+ private final Class<? extends GT_Entity_Arrow> mArrow;
+
+ public Behaviour_Arrow(Class<? extends GT_Entity_Arrow> aArrow, float aSpeed, float aPrecision)
+ {
+ this(aArrow, aSpeed, aPrecision, null, 0);
+ }
+
+ public Behaviour_Arrow(Class<? extends GT_Entity_Arrow> aArrow, float aSpeed, float aPrecision, Enchantment aEnchantment, int aLevel)
+ {
+ this.mArrow = aArrow;
+ this.mSpeedMultiplier = aSpeed;
+ this.mPrecision = aPrecision;
+ this.mEnchantment = aEnchantment;
+ this.mLevel = aLevel;
+ }
+
+ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ if ((aEntity instanceof EntityLivingBase))
+ {
+ GT_Utility.GT_EnchantmentHelper.applyBullshitA((EntityLivingBase)aEntity, aPlayer, aStack);
+ GT_Utility.GT_EnchantmentHelper.applyBullshitB(aPlayer, aEntity, aStack);
+ if (!aPlayer.capabilities.isCreativeMode) {
+ aStack.stackSize -= 1;
+ }
+ if (aStack.stackSize <= 0) {
+ aPlayer.destroyCurrentEquippedItem();
+ }
+ return false;
+ }
+ return false;
+ }
+
+ public boolean isItemStackUsable(GT_MetaBase_Item aItem, ItemStack aStack)
+ {
+ if ((this.mEnchantment != null) && (this.mLevel > 0))
+ {
+ NBTTagCompound tNBT = GT_Utility.ItemNBT.getNBT(aStack);
+ if (!tNBT.getBoolean("GT.HasBeenUpdated"))
+ {
+ tNBT.setBoolean("GT.HasBeenUpdated", true);
+ GT_Utility.ItemNBT.setNBT(aStack, tNBT);
+ GT_Utility.ItemNBT.addEnchantment(aStack, this.mEnchantment, this.mLevel);
+ }
+ }
+ return true;
+ }
+
+ public boolean canDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
+ {
+ return true;
+ }
+
+ public ItemStack onDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
+ {
+ World aWorld = aSource.getWorld();
+ IPosition tPosition = BlockDispenser.func_149939_a(aSource);
+ EnumFacing tFacing = BlockDispenser.func_149937_b(aSource.getBlockMetadata());
+ GT_Entity_Arrow tEntityArrow = (GT_Entity_Arrow)getProjectile(aItem, SubTag.PROJECTILE_ARROW, aStack, aWorld, tPosition.getX(), tPosition.getY(), tPosition.getZ());
+ if (tEntityArrow != null)
+ {
+ tEntityArrow.setThrowableHeading(tFacing.getFrontOffsetX(), tFacing.getFrontOffsetY() + 0.1F, tFacing.getFrontOffsetZ(), this.mSpeedMultiplier * 1.1F, this.mPrecision);
+ tEntityArrow.setArrowItem(aStack);
+ tEntityArrow.canBePickedUp = 1;
+ aWorld.spawnEntityInWorld(tEntityArrow);
+ if (aStack.stackSize < 100) {
+ aStack.stackSize -= 1;
+ }
+ return aStack;
+ }
+ return super.onDispense(aItem, aSource, aStack);
+ }
+
+ public boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack)
+ {
+ return aProjectileType == SubTag.PROJECTILE_ARROW;
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
+ {
+ if (!hasProjectile(aItem, aProjectileType, aStack)) {
+ return null;
+ }
+ GT_Entity_Arrow rArrow = (GT_Entity_Arrow)GT_Utility.callConstructor(this.mArrow.getName(), -1, null, true, new Object[] { aWorld, Double.valueOf(aX), Double.valueOf(aY), Double.valueOf(aZ) });
+ rArrow.setArrowItem(aStack);
+ return rArrow;
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ if (!hasProjectile(aItem, aProjectileType, aStack)) {
+ return null;
+ }
+ GT_Entity_Arrow rArrow = (GT_Entity_Arrow)GT_Utility.callConstructor(this.mArrow.getName(), -1, null, true, new Object[] { aWorld, aEntity, Float.valueOf(this.mSpeedMultiplier * aSpeed) });
+ rArrow.setArrowItem(aStack);
+ return rArrow;
+ }
+}
/* 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/items/behaviors/Behaviour_Arrow_Potion.java b/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java index ac0d341e73..a6c8b139ab 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Arrow_Potion.java @@ -1,69 +1,69 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.enums.SubTag;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.common.entities.GT_Entity_Arrow_Potion;
-/* 6: */ import java.util.Random;
-/* 7: */ import net.minecraft.enchantment.Enchantment;
-/* 8: */ import net.minecraft.entity.Entity;
-/* 9: */ import net.minecraft.entity.EntityLivingBase;
-/* 10: */ import net.minecraft.entity.player.EntityPlayer;
-/* 11: */ import net.minecraft.entity.projectile.EntityArrow;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.potion.PotionEffect;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */
-/* 16: */ public class Behaviour_Arrow_Potion
-/* 17: */ extends Behaviour_Arrow
-/* 18: */ {
-/* 19: */ private final int[] mPotions;
-/* 20: */
-/* 21: */ public Behaviour_Arrow_Potion(float aSpeed, float aPrecision, int... aPotions)
-/* 22: */ {
-/* 23:19 */ super(GT_Entity_Arrow_Potion.class, aSpeed, aPrecision);
-/* 24:20 */ this.mPotions = aPotions;
-/* 25: */ }
-/* 26: */
-/* 27: */ public Behaviour_Arrow_Potion(float aSpeed, float aPrecision, Enchantment aEnchantment, int aLevel, int... aPotions)
-/* 28: */ {
-/* 29:24 */ super(GT_Entity_Arrow_Potion.class, aSpeed, aPrecision, aEnchantment, aLevel);
-/* 30:25 */ this.mPotions = aPotions;
-/* 31: */ }
-/* 32: */
-/* 33: */ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 34: */ {
-/* 35:30 */ if ((aEntity instanceof EntityLivingBase)) {
-/* 36:30 */ for (int i = 3; i < this.mPotions.length; i += 4) {
-/* 37:30 */ if (aEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) {
-/* 38:30 */ ((EntityLivingBase)aEntity).addPotionEffect(new PotionEffect(this.mPotions[(i - 3)], this.mPotions[(i - 2)], this.mPotions[(i - 1)], false));
-/* 39: */ }
-/* 40: */ }
-/* 41: */ }
-/* 42:31 */ return super.onLeftClickEntity(aItem, aStack, aPlayer, aEntity);
-/* 43: */ }
-/* 44: */
-/* 45: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
-/* 46: */ {
-/* 47:36 */ if (!hasProjectile(aItem, aProjectileType, aStack)) {
-/* 48:36 */ return null;
-/* 49: */ }
-/* 50:37 */ GT_Entity_Arrow_Potion rArrow = new GT_Entity_Arrow_Potion(aWorld, aX, aY, aZ);
-/* 51:38 */ rArrow.setArrowItem(aStack);
-/* 52:39 */ rArrow.setPotions(this.mPotions);
-/* 53:40 */ return rArrow;
-/* 54: */ }
-/* 55: */
-/* 56: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 57: */ {
-/* 58:45 */ if (!hasProjectile(aItem, aProjectileType, aStack)) {
-/* 59:45 */ return null;
-/* 60: */ }
-/* 61:46 */ GT_Entity_Arrow_Potion rArrow = new GT_Entity_Arrow_Potion(aWorld, aEntity, aSpeed);
-/* 62:47 */ rArrow.setArrowItem(aStack);
-/* 63:48 */ rArrow.setPotions(this.mPotions);
-/* 64:49 */ return rArrow;
-/* 65: */ }
-/* 66: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.enums.SubTag;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.common.entities.GT_Entity_Arrow_Potion;
+import java.util.Random;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.projectile.EntityArrow;
+import net.minecraft.item.ItemStack;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.world.World;
+
+public class Behaviour_Arrow_Potion
+ extends Behaviour_Arrow
+{
+ private final int[] mPotions;
+
+ public Behaviour_Arrow_Potion(float aSpeed, float aPrecision, int... aPotions)
+ {
+ super(GT_Entity_Arrow_Potion.class, aSpeed, aPrecision);
+ this.mPotions = aPotions;
+ }
+
+ public Behaviour_Arrow_Potion(float aSpeed, float aPrecision, Enchantment aEnchantment, int aLevel, int... aPotions)
+ {
+ super(GT_Entity_Arrow_Potion.class, aSpeed, aPrecision, aEnchantment, aLevel);
+ this.mPotions = aPotions;
+ }
+
+ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ if ((aEntity instanceof EntityLivingBase)) {
+ for (int i = 3; i < this.mPotions.length; i += 4) {
+ if (aEntity.worldObj.rand.nextInt(100) < this.mPotions[i]) {
+ ((EntityLivingBase)aEntity).addPotionEffect(new PotionEffect(this.mPotions[(i - 3)], this.mPotions[(i - 2)], this.mPotions[(i - 1)], false));
+ }
+ }
+ }
+ return super.onLeftClickEntity(aItem, aStack, aPlayer, aEntity);
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
+ {
+ if (!hasProjectile(aItem, aProjectileType, aStack)) {
+ return null;
+ }
+ GT_Entity_Arrow_Potion rArrow = new GT_Entity_Arrow_Potion(aWorld, aX, aY, aZ);
+ rArrow.setArrowItem(aStack);
+ rArrow.setPotions(this.mPotions);
+ return rArrow;
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ if (!hasProjectile(aItem, aProjectileType, aStack)) {
+ return null;
+ }
+ GT_Entity_Arrow_Potion rArrow = new GT_Entity_Arrow_Potion(aWorld, aEntity, aSpeed);
+ rArrow.setArrowItem(aStack);
+ rArrow.setPotions(this.mPotions);
+ return rArrow;
+ }
+}
/* 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/items/behaviors/Behaviour_Crowbar.java b/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java index 7fb185a7a4..07fa993422 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Crowbar.java @@ -1,66 +1,66 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.util.GT_ModHandler;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import java.util.Map;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.init.Blocks;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */
-/* 14: */ public class Behaviour_Crowbar
-/* 15: */ extends Behaviour_None
-/* 16: */ {
-/* 17: */ private final int mVanillaCosts;
-/* 18: */ private final int mEUCosts;
-/* 19: */
-/* 20: */ public Behaviour_Crowbar(int aVanillaCosts, int aEUCosts)
-/* 21: */ {
-/* 22:18 */ this.mVanillaCosts = aVanillaCosts;
-/* 23:19 */ this.mEUCosts = aEUCosts;
-/* 24: */ }
-/* 25: */
-/* 26: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 27: */ {
-/* 28:24 */ if (aWorld.isRemote) {
-/* 29:25 */ return false;
-/* 30: */ }
-/* 31:27 */ if (GT_ModHandler.getModItem("Railcraft", "fluid.creosote.bucket", 1L) != null) {
-/* 32:27 */ return false;
-/* 33: */ }
-/* 34:28 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 35:29 */ if (aBlock == null) {
-/* 36:29 */ return false;
-/* 37: */ }
-/* 38:30 */ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
-/* 39:33 */ if (aBlock == Blocks.rail)
-/* 40: */ {
-/* 41:34 */ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
-/* 42: */ {
-/* 43:35 */ aWorld.isRemote = true;
-/* 44:36 */ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 1) % 10, 0);
-/* 45:37 */ aWorld.isRemote = false;
-/* 46:38 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(0)), 1.0F, -1.0F, aX, aY, aZ);
-/* 47: */ }
-/* 48:40 */ return true;
-/* 49: */ }
-/* 50:42 */ if ((aBlock == Blocks.detector_rail) || (aBlock == Blocks.activator_rail) || (aBlock == Blocks.golden_rail))
-/* 51: */ {
-/* 52:43 */ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
-/* 53: */ {
-/* 54:44 */ aWorld.isRemote = true;
-/* 55:45 */ aWorld.setBlock(aX, aY, aZ, aBlock, aMeta / 8 * 8 + (aMeta % 8 + 1) % 6, 0);
-/* 56:46 */ aWorld.isRemote = false;
-/* 57:47 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(0)), 1.0F, -1.0F, aX, aY, aZ);
-/* 58: */ }
-/* 59:49 */ return true;
-/* 60: */ }
-/* 61:51 */ return false;
-/* 62: */ }
-/* 63: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_Crowbar
+ extends Behaviour_None
+{
+ private final int mVanillaCosts;
+ private final int mEUCosts;
+
+ public Behaviour_Crowbar(int aVanillaCosts, int aEUCosts)
+ {
+ this.mVanillaCosts = aVanillaCosts;
+ this.mEUCosts = aEUCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ if (GT_ModHandler.getModItem("Railcraft", "fluid.creosote.bucket", 1L) != null) {
+ return false;
+ }
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if (aBlock == null) {
+ return false;
+ }
+ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
+ if (aBlock == Blocks.rail)
+ {
+ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 1) % 10, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(0)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if ((aBlock == Blocks.detector_rail) || (aBlock == Blocks.activator_rail) || (aBlock == Blocks.golden_rail))
+ {
+ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, aBlock, aMeta / 8 * 8 + (aMeta % 8 + 1) % 6, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(0)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ return false;
+ }
+}
/* 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/items/behaviors/Behaviour_DataOrb.java b/main/java/gregtech/common/items/behaviors/Behaviour_DataOrb.java index 3d0107180c..5738962c10 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_DataOrb.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_DataOrb.java @@ -1,118 +1,118 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 4: */ import gregtech.api.util.GT_Utility;
-/* 5: */ import java.util.List;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */ import net.minecraft.nbt.NBTTagCompound;
-/* 8: */ import net.minecraft.nbt.NBTTagList;
-/* 9: */
-/* 10: */ public class Behaviour_DataOrb
-/* 11: */ extends Behaviour_None
-/* 12: */ {
-/* 13: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 14: */ {
-/* 15:15 */ if (!getDataTitle(aStack).equals(""))
-/* 16: */ {
-/* 17:16 */ aList.add(getDataTitle(aStack));
-/* 18:17 */ aList.add(getDataName(aStack));
-/* 19: */ }
-/* 20:19 */ return aList;
-/* 21: */ }
-/* 22: */
-/* 23: */ public static void copyInventory(ItemStack[] aInventory, ItemStack[] aNewContent, int aIndexlength)
-/* 24: */ {
-/* 25:23 */ for (int i = 0; i < aIndexlength; i++) {
-/* 26:24 */ if (aNewContent[i] == null) {
-/* 27:25 */ aInventory[i] = null;
-/* 28: */ } else {
-/* 29:27 */ aInventory[i] = GT_Utility.copy(new Object[] { aNewContent[i] });
-/* 30: */ }
-/* 31: */ }
-/* 32: */ }
-/* 33: */
-/* 34: */ public static String getDataName(ItemStack aStack)
-/* 35: */ {
-/* 36:32 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 37:33 */ if (tNBT == null) {
-/* 38:33 */ return "";
-/* 39: */ }
-/* 40:34 */ return tNBT.getString("mDataName");
-/* 41: */ }
-/* 42: */
-/* 43: */ public static String getDataTitle(ItemStack aStack)
-/* 44: */ {
-/* 45:38 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 46:39 */ if (tNBT == null) {
-/* 47:39 */ return "";
-/* 48: */ }
-/* 49:40 */ return tNBT.getString("mDataTitle");
-/* 50: */ }
-/* 51: */
-/* 52: */ public static NBTTagCompound setDataName(ItemStack aStack, String aDataName)
-/* 53: */ {
-/* 54:44 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 55:45 */ if (tNBT == null) {
-/* 56:45 */ tNBT = new NBTTagCompound();
-/* 57: */ }
-/* 58:46 */ tNBT.setString("mDataName", aDataName);
-/* 59:47 */ aStack.setTagCompound(tNBT);
-/* 60:48 */ return tNBT;
-/* 61: */ }
-/* 62: */
-/* 63: */ public static NBTTagCompound setDataTitle(ItemStack aStack, String aDataTitle)
-/* 64: */ {
-/* 65:52 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 66:53 */ if (tNBT == null) {
-/* 67:53 */ tNBT = new NBTTagCompound();
-/* 68: */ }
-/* 69:54 */ tNBT.setString("mDataTitle", aDataTitle);
-/* 70:55 */ aStack.setTagCompound(tNBT);
-/* 71:56 */ return tNBT;
-/* 72: */ }
-/* 73: */
-/* 74: */ public static ItemStack[] getNBTInventory(ItemStack aStack)
-/* 75: */ {
-/* 76:60 */ ItemStack[] tInventory = new ItemStack[256];
-/* 77:61 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 78:62 */ if (tNBT == null) {
-/* 79:62 */ return tInventory;
-/* 80: */ }
-/* 81:64 */ NBTTagList tNBT_ItemList = tNBT.getTagList("Inventory", 10);
-/* 82:65 */ for (int i = 0; i < tNBT_ItemList.tagCount(); i++)
-/* 83: */ {
-/* 84:66 */ NBTTagCompound tag = tNBT_ItemList.getCompoundTagAt(i);
-/* 85:67 */ byte slot = tag.getByte("Slot");
-/* 86:68 */ if ((slot >= 0) && (slot < tInventory.length)) {
-/* 87:69 */ tInventory[slot] = GT_Utility.loadItem(tag);
-/* 88: */ }
-/* 89: */ }
-/* 90:72 */ return tInventory;
-/* 91: */ }
-/* 92: */
-/* 93: */ public static NBTTagCompound setNBTInventory(ItemStack aStack, ItemStack[] aInventory)
-/* 94: */ {
-/* 95:76 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 96:77 */ if (tNBT == null) {
-/* 97:77 */ tNBT = new NBTTagCompound();
-/* 98: */ }
-/* 99:79 */ NBTTagList tNBT_ItemList = new NBTTagList();
-/* :0:80 */ for (int i = 0; i < aInventory.length; i++)
-/* :1: */ {
-/* :2:81 */ ItemStack stack = aInventory[i];
-/* :3:82 */ if (stack != null)
-/* :4: */ {
-/* :5:83 */ NBTTagCompound tag = new NBTTagCompound();
-/* :6:84 */ tag.setByte("Slot", (byte)i);
-/* :7:85 */ stack.writeToNBT(tag);
-/* :8:86 */ tNBT_ItemList.appendTag(tag);
-/* :9: */ }
-/* ;0: */ }
-/* ;1:89 */ tNBT.setTag("Inventory", tNBT_ItemList);
-/* ;2:90 */ aStack.setTagCompound(tNBT);
-/* ;3:91 */ return tNBT;
-/* ;4: */ }
-/* ;5: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.nbt.NBTTagList;
+
+public class Behaviour_DataOrb
+ extends Behaviour_None
+{
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ if (!getDataTitle(aStack).equals(""))
+ {
+ aList.add(getDataTitle(aStack));
+ aList.add(getDataName(aStack));
+ }
+ return aList;
+ }
+
+ public static void copyInventory(ItemStack[] aInventory, ItemStack[] aNewContent, int aIndexlength)
+ {
+ for (int i = 0; i < aIndexlength; i++) {
+ if (aNewContent[i] == null) {
+ aInventory[i] = null;
+ } else {
+ aInventory[i] = GT_Utility.copy(new Object[] { aNewContent[i] });
+ }
+ }
+ }
+
+ public static String getDataName(ItemStack aStack)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return "";
+ }
+ return tNBT.getString("mDataName");
+ }
+
+ public static String getDataTitle(ItemStack aStack)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return "";
+ }
+ return tNBT.getString("mDataTitle");
+ }
+
+ public static NBTTagCompound setDataName(ItemStack aStack, String aDataName)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ tNBT.setString("mDataName", aDataName);
+ aStack.setTagCompound(tNBT);
+ return tNBT;
+ }
+
+ public static NBTTagCompound setDataTitle(ItemStack aStack, String aDataTitle)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ tNBT.setString("mDataTitle", aDataTitle);
+ aStack.setTagCompound(tNBT);
+ return tNBT;
+ }
+
+ public static ItemStack[] getNBTInventory(ItemStack aStack)
+ {
+ ItemStack[] tInventory = new ItemStack[256];
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return tInventory;
+ }
+ NBTTagList tNBT_ItemList = tNBT.getTagList("Inventory", 10);
+ for (int i = 0; i < tNBT_ItemList.tagCount(); i++)
+ {
+ NBTTagCompound tag = tNBT_ItemList.getCompoundTagAt(i);
+ byte slot = tag.getByte("Slot");
+ if ((slot >= 0) && (slot < tInventory.length)) {
+ tInventory[slot] = GT_Utility.loadItem(tag);
+ }
+ }
+ return tInventory;
+ }
+
+ public static NBTTagCompound setNBTInventory(ItemStack aStack, ItemStack[] aInventory)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ NBTTagList tNBT_ItemList = new NBTTagList();
+ for (int i = 0; i < aInventory.length; i++)
+ {
+ ItemStack stack = aInventory[i];
+ if (stack != null)
+ {
+ NBTTagCompound tag = new NBTTagCompound();
+ tag.setByte("Slot", (byte)i);
+ stack.writeToNBT(tag);
+ tNBT_ItemList.appendTag(tag);
+ }
+ }
+ tNBT.setTag("Inventory", tNBT_ItemList);
+ aStack.setTagCompound(tNBT);
+ return tNBT;
+ }
+}
/* 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/items/behaviors/Behaviour_DataStick.java b/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java index 99de403586..d5b5e0b867 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_DataStick.java @@ -1,40 +1,40 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 4: */ import gregtech.api.util.GT_Utility;
-/* 5: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 6: */ import java.util.List;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class Behaviour_DataStick
-/* 10: */ extends Behaviour_None
-/* 11: */ {
-/* 12: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 13: */ {
-/* 14:14 */ String tString = GT_Utility.ItemNBT.getBookTitle(aStack);
-/* 15:15 */ if (GT_Utility.isStringValid(tString)) {
-/* 16:15 */ aList.add(tString);
-/* 17: */ }
-/* 18:16 */ tString = GT_Utility.ItemNBT.getBookAuthor(aStack);
-/* 19:17 */ if (GT_Utility.isStringValid(tString)) {
-/* 20:17 */ aList.add("by " + tString);
-/* 21: */ }
-/* 22:19 */ short tMapID = GT_Utility.ItemNBT.getMapID(aStack);
-/* 23:20 */ if (tMapID >= 0) {
-/* 24:20 */ aList.add("Map ID: " + tMapID);
-/* 25: */ }
-/* 26:21 */ tString = GT_Utility.ItemNBT.getPunchCardData(aStack);
-/* 27:22 */ if (GT_Utility.isStringValid(tString))
-/* 28: */ {
-/* 29:23 */ aList.add("Punch Card Data");
-/* 30:24 */ int i = 0;
-/* 31:24 */ for (int j = tString.length(); i < j; i += 64) {
-/* 32:24 */ aList.add(tString.substring(i, Math.min(i + 64, j)));
-/* 33: */ }
-/* 34: */ }
-/* 35:26 */ return aList;
-/* 36: */ }
-/* 37: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import java.util.List;
+import net.minecraft.item.ItemStack;
+
+public class Behaviour_DataStick
+ extends Behaviour_None
+{
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ String tString = GT_Utility.ItemNBT.getBookTitle(aStack);
+ if (GT_Utility.isStringValid(tString)) {
+ aList.add(tString);
+ }
+ tString = GT_Utility.ItemNBT.getBookAuthor(aStack);
+ if (GT_Utility.isStringValid(tString)) {
+ aList.add("by " + tString);
+ }
+ short tMapID = GT_Utility.ItemNBT.getMapID(aStack);
+ if (tMapID >= 0) {
+ aList.add("Map ID: " + tMapID);
+ }
+ tString = GT_Utility.ItemNBT.getPunchCardData(aStack);
+ if (GT_Utility.isStringValid(tString))
+ {
+ aList.add("Punch Card Data");
+ int i = 0;
+ for (int j = tString.length(); i < j; i += 64) {
+ aList.add(tString.substring(i, Math.min(i + 64, j)));
+ }
+ }
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Hoe.java b/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java index f2b2591a00..0867412222 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Hoe.java @@ -1,71 +1,71 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import cpw.mods.fml.common.eventhandler.*;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.api.util.GT_LanguageManager;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import java.util.List;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.block.Block.SoundType;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 14: */ import net.minecraft.init.Blocks;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.world.World;
-/* 17: */ import net.minecraftforge.common.MinecraftForge;
-/* 18: */ import net.minecraftforge.event.entity.player.UseHoeEvent;
-/* 19: */
-/* 20: */ public class Behaviour_Hoe
-/* 21: */ extends Behaviour_None
-/* 22: */ {
-/* 23: */ private final int mCosts;
-/* 24: */
-/* 25: */ public Behaviour_Hoe(int aCosts)
-/* 26: */ {
-/* 27:23 */ this.mCosts = aCosts;
-/* 28: */ }
-/* 29: */
-/* 30: */ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 31: */ {
-/* 32:28 */ if (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack)) {
-/* 33:28 */ return false;
-/* 34: */ }
-/* 35:29 */ UseHoeEvent event = new UseHoeEvent(aPlayer, aStack, aWorld, aX, aY, aZ);
-/* 36:30 */ if (MinecraftForge.EVENT_BUS.post(event)) {
-/* 37:30 */ return false;
-/* 38: */ }
-/* 39:32 */ if (event.getResult() == Event.Result.ALLOW)
-/* 40: */ {
-/* 41:33 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 42:33 */ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
-/* 43: */ }
-/* 44:34 */ return true;
-/* 45: */ }
-/* 46:37 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 47:39 */ if ((aSide != 0) && (GT_Utility.isAirBlock(aWorld, aX, aY + 1, aZ)) && ((aBlock == Blocks.grass) || (aBlock == Blocks.dirt)))
-/* 48: */ {
-/* 49:40 */ aWorld.playSoundEffect(aX + 0.5F, aY + 0.5F, aZ + 0.5F, Blocks.farmland.stepSound.getStepResourcePath(), (Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F, Blocks.farmland.stepSound.getPitch() * 0.8F);
-/* 50:41 */ if (aWorld.isRemote) {
-/* 51:41 */ return true;
-/* 52: */ }
-/* 53:42 */ aWorld.setBlock(aX, aY, aZ, Blocks.farmland);
-/* 54:43 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 55:43 */ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
-/* 56: */ }
-/* 57:44 */ return true;
-/* 58: */ }
-/* 59:46 */ return false;
-/* 60: */ }
-/* 61: */
-/* 62:49 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.hoe", "Can till Dirt");
-/* 63: */
-/* 64: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 65: */ {
-/* 66:53 */ aList.add(this.mTooltip);
-/* 67:54 */ return aList;
-/* 68: */ }
-/* 69: */ }
+package gregtech.common.items.behaviors;
+
+import cpw.mods.fml.common.eventhandler.*;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import net.minecraft.block.Block;
+import net.minecraft.block.Block.SoundType;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.event.entity.player.UseHoeEvent;
+
+public class Behaviour_Hoe
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Hoe(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack)) {
+ return false;
+ }
+ UseHoeEvent event = new UseHoeEvent(aPlayer, aStack, aWorld, aX, aY, aZ);
+ if (MinecraftForge.EVENT_BUS.post(event)) {
+ return false;
+ }
+ if (event.getResult() == Event.Result.ALLOW)
+ {
+ if (!aPlayer.capabilities.isCreativeMode) {
+ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
+ }
+ return true;
+ }
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if ((aSide != 0) && (GT_Utility.isAirBlock(aWorld, aX, aY + 1, aZ)) && ((aBlock == Blocks.grass) || (aBlock == Blocks.dirt)))
+ {
+ aWorld.playSoundEffect(aX + 0.5F, aY + 0.5F, aZ + 0.5F, Blocks.farmland.stepSound.getStepResourcePath(), (Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F, Blocks.farmland.stepSound.getPitch() * 0.8F);
+ if (aWorld.isRemote) {
+ return true;
+ }
+ aWorld.setBlock(aX, aY, aZ, Blocks.farmland);
+ if (!aPlayer.capabilities.isCreativeMode) {
+ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.hoe", "Can till Dirt");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Lighter.java b/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java index 09e8525b0a..286048a4c6 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Lighter.java @@ -1,140 +1,140 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import codechicken.lib.math.MathHelper;
-/* 4: */ import gregtech.api.GregTech_API;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 9: */ import java.util.List;
-/* 10: */ import java.util.Map;
-/* 11: */ import net.minecraft.entity.Entity;
-/* 12: */ import net.minecraft.entity.monster.EntityCreeper;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 15: */ import net.minecraft.init.Blocks;
-/* 16: */ import net.minecraft.init.Items;
-/* 17: */ import net.minecraft.item.Item;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraft.nbt.NBTTagCompound;
-/* 20: */ import net.minecraft.world.World;
-/* 21: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 22: */
-/* 23: */ public class Behaviour_Lighter
-/* 24: */ extends Behaviour_None
-/* 25: */ {
-/* 26: */ private final ItemStack mEmptyLighter;
-/* 27: */ private final ItemStack mUsedLighter;
-/* 28: */ private final ItemStack mFullLighter;
-/* 29: */ private final long mFuelAmount;
-/* 30: */
-/* 31: */ public Behaviour_Lighter(ItemStack aEmptyLighter, ItemStack aUsedLighter, ItemStack aFullLighter, long aFuelAmount)
-/* 32: */ {
-/* 33: 26 */ this.mFullLighter = aFullLighter;
-/* 34: 27 */ this.mUsedLighter = aUsedLighter;
-/* 35: 28 */ this.mEmptyLighter = aEmptyLighter;
-/* 36: 29 */ this.mFuelAmount = aFuelAmount;
-/* 37: */ }
-/* 38: */
-/* 39: */ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 40: */ {
-/* 41: 34 */ if ((aPlayer.worldObj.isRemote) || (aStack.stackSize != 1)) {
-/* 42: 34 */ return false;
-/* 43: */ }
-/* 44: 36 */ boolean rOutput = false;
-/* 45: 38 */ if ((aEntity instanceof EntityCreeper))
-/* 46: */ {
-/* 47: 39 */ prepare(aStack);
-/* 48: 40 */ long tFuelAmount = GT_Utility.ItemNBT.getLighterFuel(aStack);
-/* 49: 41 */ if (GT_Utility.areStacksEqual(aStack, this.mUsedLighter, true))
-/* 50: */ {
-/* 51: 42 */ GT_Utility.sendSoundToPlayers(aPlayer.worldObj, (String)GregTech_API.sSoundList.get(Integer.valueOf(6)), 1.0F, 1.0F, MathHelper.floor_double(aEntity.posX), MathHelper.floor_double(aEntity.posY), MathHelper.floor_double(aEntity.posZ));
-/* 52: 43 */ ((EntityCreeper)aEntity).func_146079_cb();
-/* 53: 44 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 54: 44 */ tFuelAmount -= 1L;
-/* 55: */ }
-/* 56: 45 */ rOutput = true;
-/* 57: */ }
-/* 58: 47 */ GT_Utility.ItemNBT.setLighterFuel(aStack, tFuelAmount);
-/* 59: 48 */ if (tFuelAmount <= 0L) {
-/* 60: 48 */ useUp(aStack);
-/* 61: */ }
-/* 62: */ }
-/* 63: 50 */ return rOutput;
-/* 64: */ }
-/* 65: */
-/* 66: */ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 67: */ {
-/* 68: 55 */ return false;
-/* 69: */ }
-/* 70: */
-/* 71: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 72: */ {
-/* 73: 60 */ if ((aWorld.isRemote) || (aStack.stackSize != 1)) {
-/* 74: 60 */ return false;
-/* 75: */ }
-/* 76: 62 */ boolean rOutput = false;
-/* 77: */
-/* 78: 64 */ ForgeDirection tDirection = ForgeDirection.getOrientation(aSide);
-/* 79: 65 */ aX += tDirection.offsetX;aY += tDirection.offsetY;aZ += tDirection.offsetZ;
-/* 80: 67 */ if ((!GT_Utility.isAirBlock(aWorld, aX, aY, aZ)) || (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack))) {
-/* 81: 67 */ return false;
-/* 82: */ }
-/* 83: 68 */ prepare(aStack);
-/* 84: 69 */ long tFuelAmount = GT_Utility.ItemNBT.getLighterFuel(aStack);
-/* 85: 70 */ if (GT_Utility.areStacksEqual(aStack, this.mUsedLighter, true))
-/* 86: */ {
-/* 87: 71 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(6)), 1.0F, 1.0F, aX, aY, aZ);
-/* 88: 72 */ aWorld.setBlock(aX, aY, aZ, Blocks.fire);
-/* 89: 73 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 90: 73 */ tFuelAmount -= 1L;
-/* 91: */ }
-/* 92: 74 */ rOutput = true;
-/* 93: */ }
-/* 94: 76 */ GT_Utility.ItemNBT.setLighterFuel(aStack, tFuelAmount);
-/* 95: 77 */ if (tFuelAmount <= 0L) {
-/* 96: 77 */ useUp(aStack);
-/* 97: */ }
-/* 98: 78 */ return rOutput;
-/* 99: */ }
-/* 100: */
-/* 101: */ private void prepare(ItemStack aStack)
-/* 102: */ {
-/* 103: 82 */ if (GT_Utility.areStacksEqual(aStack, this.mFullLighter, true))
-/* 104: */ {
-/* 105: 83 */ aStack.func_150996_a(this.mUsedLighter.getItem());
-/* 106: 84 */ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mUsedLighter));
-/* 107: 85 */ GT_Utility.ItemNBT.setLighterFuel(aStack, this.mFuelAmount);
-/* 108: */ }
-/* 109: */ }
-/* 110: */
-/* 111: */ private void useUp(ItemStack aStack)
-/* 112: */ {
-/* 113: 90 */ if (this.mEmptyLighter == null)
-/* 114: */ {
-/* 115: 91 */ aStack.stackSize -= 1;
-/* 116: */ }
-/* 117: */ else
-/* 118: */ {
-/* 119: 93 */ aStack.func_150996_a(this.mEmptyLighter.getItem());
-/* 120: 94 */ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mEmptyLighter));
-/* 121: */ }
-/* 122: */ }
-/* 123: */
-/* 124: 98 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.lighter.tooltip", "Can light things on Fire");
-/* 125: 99 */ private final String mTooltipUses = GT_LanguageManager.addStringLocalization("gt.behaviour.lighter.uses", "Remaining Uses:");
-/* 126:100 */ private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
-/* 127: */
-/* 128: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 129: */ {
-/* 130:104 */ aList.add(this.mTooltip);
-/* 131:105 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 132:106 */ long tFuelAmount = tNBT == null ? 0L : GT_Utility.areStacksEqual(aStack, this.mFullLighter, true) ? this.mFuelAmount : tNBT.getLong("GT.LighterFuel");
-/* 133:107 */ aList.add(this.mTooltipUses + " " + tFuelAmount);
-/* 134:108 */ aList.add(this.mTooltipUnstackable);
-/* 135:109 */ return aList;
-/* 136: */ }
-/* 137: */ }
+package gregtech.common.items.behaviors;
+
+import codechicken.lib.math.MathHelper;
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.monster.EntityCreeper;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+
+public class Behaviour_Lighter
+ extends Behaviour_None
+{
+ private final ItemStack mEmptyLighter;
+ private final ItemStack mUsedLighter;
+ private final ItemStack mFullLighter;
+ private final long mFuelAmount;
+
+ public Behaviour_Lighter(ItemStack aEmptyLighter, ItemStack aUsedLighter, ItemStack aFullLighter, long aFuelAmount)
+ {
+ this.mFullLighter = aFullLighter;
+ this.mUsedLighter = aUsedLighter;
+ this.mEmptyLighter = aEmptyLighter;
+ this.mFuelAmount = aFuelAmount;
+ }
+
+ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ if ((aPlayer.worldObj.isRemote) || (aStack.stackSize != 1)) {
+ return false;
+ }
+ boolean rOutput = false;
+ if ((aEntity instanceof EntityCreeper))
+ {
+ prepare(aStack);
+ long tFuelAmount = GT_Utility.ItemNBT.getLighterFuel(aStack);
+ if (GT_Utility.areStacksEqual(aStack, this.mUsedLighter, true))
+ {
+ GT_Utility.sendSoundToPlayers(aPlayer.worldObj, (String)GregTech_API.sSoundList.get(Integer.valueOf(6)), 1.0F, 1.0F, MathHelper.floor_double(aEntity.posX), MathHelper.floor_double(aEntity.posY), MathHelper.floor_double(aEntity.posZ));
+ ((EntityCreeper)aEntity).func_146079_cb();
+ if (!aPlayer.capabilities.isCreativeMode) {
+ tFuelAmount -= 1L;
+ }
+ rOutput = true;
+ }
+ GT_Utility.ItemNBT.setLighterFuel(aStack, tFuelAmount);
+ if (tFuelAmount <= 0L) {
+ useUp(aStack);
+ }
+ }
+ return rOutput;
+ }
+
+ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ return false;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if ((aWorld.isRemote) || (aStack.stackSize != 1)) {
+ return false;
+ }
+ boolean rOutput = false;
+
+ ForgeDirection tDirection = ForgeDirection.getOrientation(aSide);
+ aX += tDirection.offsetX;aY += tDirection.offsetY;aZ += tDirection.offsetZ;
+ if ((!GT_Utility.isAirBlock(aWorld, aX, aY, aZ)) || (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack))) {
+ return false;
+ }
+ prepare(aStack);
+ long tFuelAmount = GT_Utility.ItemNBT.getLighterFuel(aStack);
+ if (GT_Utility.areStacksEqual(aStack, this.mUsedLighter, true))
+ {
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(6)), 1.0F, 1.0F, aX, aY, aZ);
+ aWorld.setBlock(aX, aY, aZ, Blocks.fire);
+ if (!aPlayer.capabilities.isCreativeMode) {
+ tFuelAmount -= 1L;
+ }
+ rOutput = true;
+ }
+ GT_Utility.ItemNBT.setLighterFuel(aStack, tFuelAmount);
+ if (tFuelAmount <= 0L) {
+ useUp(aStack);
+ }
+ return rOutput;
+ }
+
+ private void prepare(ItemStack aStack)
+ {
+ if (GT_Utility.areStacksEqual(aStack, this.mFullLighter, true))
+ {
+ aStack.func_150996_a(this.mUsedLighter.getItem());
+ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mUsedLighter));
+ GT_Utility.ItemNBT.setLighterFuel(aStack, this.mFuelAmount);
+ }
+ }
+
+ private void useUp(ItemStack aStack)
+ {
+ if (this.mEmptyLighter == null)
+ {
+ aStack.stackSize -= 1;
+ }
+ else
+ {
+ aStack.func_150996_a(this.mEmptyLighter.getItem());
+ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mEmptyLighter));
+ }
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.lighter.tooltip", "Can light things on Fire");
+ private final String mTooltipUses = GT_LanguageManager.addStringLocalization("gt.behaviour.lighter.uses", "Remaining Uses:");
+ private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ long tFuelAmount = tNBT == null ? 0L : GT_Utility.areStacksEqual(aStack, this.mFullLighter, true) ? this.mFuelAmount : tNBT.getLong("GT.LighterFuel");
+ aList.add(this.mTooltipUses + " " + tFuelAmount);
+ aList.add(this.mTooltipUnstackable);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_None.java b/main/java/gregtech/common/items/behaviors/Behaviour_None.java index 3e55af1e97..caf6325e1d 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_None.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_None.java @@ -1,85 +1,85 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.enums.SubTag;
-/* 4: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import java.util.List;
-/* 7: */ import net.minecraft.block.BlockDispenser;
-/* 8: */ import net.minecraft.dispenser.BehaviorDefaultDispenseItem;
-/* 9: */ import net.minecraft.dispenser.IBlockSource;
-/* 10: */ import net.minecraft.dispenser.IPosition;
-/* 11: */ import net.minecraft.entity.Entity;
-/* 12: */ import net.minecraft.entity.EntityLivingBase;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.entity.projectile.EntityArrow;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.util.EnumFacing;
-/* 17: */ import net.minecraft.world.World;
-/* 18: */
-/* 19: */ public class Behaviour_None
-/* 20: */ implements IItemBehaviour<GT_MetaBase_Item>
-/* 21: */ {
-/* 22: */ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 23: */ {
-/* 24:24 */ return false;
-/* 25: */ }
-/* 26: */
-/* 27: */ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 28: */ {
-/* 29:29 */ return false;
-/* 30: */ }
-/* 31: */
-/* 32: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 33: */ {
-/* 34:34 */ return false;
-/* 35: */ }
-/* 36: */
-/* 37: */ public ItemStack onItemRightClick(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer)
-/* 38: */ {
-/* 39:39 */ return aStack;
-/* 40: */ }
-/* 41: */
-/* 42: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 43: */ {
-/* 44:44 */ return aList;
-/* 45: */ }
-/* 46: */
-/* 47: */ public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand) {}
-/* 48: */
-/* 49: */ public boolean isItemStackUsable(GT_MetaBase_Item aItem, ItemStack aStack)
-/* 50: */ {
-/* 51:54 */ return true;
-/* 52: */ }
-/* 53: */
-/* 54: */ public boolean canDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
-/* 55: */ {
-/* 56:59 */ return false;
-/* 57: */ }
-/* 58: */
-/* 59: */ public ItemStack onDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
-/* 60: */ {
-/* 61:64 */ EnumFacing enumfacing = BlockDispenser.func_149937_b(aSource.getBlockMetadata());
-/* 62:65 */ IPosition iposition = BlockDispenser.func_149939_a(aSource);
-/* 63:66 */ ItemStack itemstack1 = aStack.splitStack(1);
-/* 64:67 */ BehaviorDefaultDispenseItem.doDispense(aSource.getWorld(), itemstack1, 6, enumfacing, iposition);
-/* 65:68 */ return aStack;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack)
-/* 69: */ {
-/* 70:73 */ return false;
-/* 71: */ }
-/* 72: */
-/* 73: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
-/* 74: */ {
-/* 75:78 */ return null;
-/* 76: */ }
-/* 77: */
-/* 78: */ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
-/* 79: */ {
-/* 80:83 */ return null;
-/* 81: */ }
-/* 82: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.enums.SubTag;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.items.GT_MetaBase_Item;
+import java.util.List;
+import net.minecraft.block.BlockDispenser;
+import net.minecraft.dispenser.BehaviorDefaultDispenseItem;
+import net.minecraft.dispenser.IBlockSource;
+import net.minecraft.dispenser.IPosition;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.projectile.EntityArrow;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.EnumFacing;
+import net.minecraft.world.World;
+
+public class Behaviour_None
+ implements IItemBehaviour<GT_MetaBase_Item>
+{
+ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ return false;
+ }
+
+ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ return false;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ return false;
+ }
+
+ public ItemStack onItemRightClick(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer)
+ {
+ return aStack;
+ }
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ return aList;
+ }
+
+ public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand) {}
+
+ public boolean isItemStackUsable(GT_MetaBase_Item aItem, ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean canDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
+ {
+ return false;
+ }
+
+ public ItemStack onDispense(GT_MetaBase_Item aItem, IBlockSource aSource, ItemStack aStack)
+ {
+ EnumFacing enumfacing = BlockDispenser.func_149937_b(aSource.getBlockMetadata());
+ IPosition iposition = BlockDispenser.func_149939_a(aSource);
+ ItemStack itemstack1 = aStack.splitStack(1);
+ BehaviorDefaultDispenseItem.doDispense(aSource.getWorld(), itemstack1, 6, enumfacing, iposition);
+ return aStack;
+ }
+
+ public boolean hasProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack)
+ {
+ return false;
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, double aX, double aY, double aZ)
+ {
+ return null;
+ }
+
+ public EntityArrow getProjectile(GT_MetaBase_Item aItem, SubTag aProjectileType, ItemStack aStack, World aWorld, EntityLivingBase aEntity, float aSpeed)
+ {
+ return 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/items/behaviors/Behaviour_Plunger_Essentia.java b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java index 3f52bfc4f4..3545949138 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Essentia.java @@ -1,56 +1,56 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.List;
-/* 9: */ import java.util.Map;
-/* 10: */ import net.minecraft.entity.player.EntityPlayer;
-/* 11: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.tileentity.TileEntity;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 16: */ import thaumcraft.api.aspects.IEssentiaTransport;
-/* 17: */
-/* 18: */ public class Behaviour_Plunger_Essentia
-/* 19: */ extends Behaviour_None
-/* 20: */ {
-/* 21: */ private final int mCosts;
-/* 22: */
-/* 23: */ public Behaviour_Plunger_Essentia(int aCosts)
-/* 24: */ {
-/* 25:22 */ this.mCosts = aCosts;
-/* 26: */ }
-/* 27: */
-/* 28: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 29: */ {
-/* 30:27 */ if (aWorld.isRemote) {
-/* 31:27 */ return false;
-/* 32: */ }
-/* 33:28 */ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 34:29 */ if (((aTileEntity instanceof IEssentiaTransport)) && (
-/* 35:30 */ (aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))))
-/* 36: */ {
-/* 37:31 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 38:32 */ for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) {
-/* 39:32 */ ((IEssentiaTransport)aTileEntity).takeEssentia(((IEssentiaTransport)aTileEntity).getEssentiaType(tDirection), ((IEssentiaTransport)aTileEntity).getEssentiaAmount(tDirection), tDirection);
-/* 40: */ }
-/* 41:33 */ return true;
-/* 42: */ }
-/* 43:36 */ return false;
-/* 44: */ }
-/* 45: */
-/* 46:39 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.essentia", "Clears Essentia from Containers and Tubes");
-/* 47: */
-/* 48: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 49: */ {
-/* 50:43 */ aList.add(this.mTooltip);
-/* 51:44 */ return aList;
-/* 52: */ }
-/* 53: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import thaumcraft.api.aspects.IEssentiaTransport;
+
+public class Behaviour_Plunger_Essentia
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Plunger_Essentia(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((aTileEntity instanceof IEssentiaTransport)) && (
+ (aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))))
+ {
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) {
+ ((IEssentiaTransport)aTileEntity).takeEssentia(((IEssentiaTransport)aTileEntity).getEssentiaType(tDirection), ((IEssentiaTransport)aTileEntity).getEssentiaAmount(tDirection), tDirection);
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.essentia", "Clears Essentia from Containers and Tubes");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Plunger_Fluid.java b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java index 79bb2defb0..a237fe70fd 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Fluid.java @@ -1,59 +1,59 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.List;
-/* 9: */ import java.util.Map;
-/* 10: */ import net.minecraft.entity.player.EntityPlayer;
-/* 11: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.tileentity.TileEntity;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 16: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 17: */
-/* 18: */ public class Behaviour_Plunger_Fluid
-/* 19: */ extends Behaviour_None
-/* 20: */ {
-/* 21: */ private final int mCosts;
-/* 22: */
-/* 23: */ public Behaviour_Plunger_Fluid(int aCosts)
-/* 24: */ {
-/* 25:22 */ this.mCosts = aCosts;
-/* 26: */ }
-/* 27: */
-/* 28: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 29: */ {
-/* 30:27 */ if (aWorld.isRemote) {
-/* 31:27 */ return false;
-/* 32: */ }
-/* 33:28 */ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 34:29 */ if ((aTileEntity instanceof IFluidHandler)) {
-/* 35:30 */ for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) {
-/* 36:30 */ if (((IFluidHandler)aTileEntity).drain(tDirection, 1000, false) != null) {
-/* 37:31 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 38: */ {
-/* 39:32 */ ((IFluidHandler)aTileEntity).drain(tDirection, 1000, true);
-/* 40:33 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 41:34 */ return true;
-/* 42: */ }
-/* 43: */ }
-/* 44: */ }
-/* 45: */ }
-/* 46:38 */ return false;
-/* 47: */ }
-/* 48: */
-/* 49:41 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.fluid", "Clears 1000 Liters of Fluid from Tanks");
-/* 50: */
-/* 51: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 52: */ {
-/* 53:45 */ aList.add(this.mTooltip);
-/* 54:46 */ return aList;
-/* 55: */ }
-/* 56: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class Behaviour_Plunger_Fluid
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Plunger_Fluid(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((aTileEntity instanceof IFluidHandler)) {
+ for (ForgeDirection tDirection : ForgeDirection.VALID_DIRECTIONS) {
+ if (((IFluidHandler)aTileEntity).drain(tDirection, 1000, false) != null) {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ ((IFluidHandler)aTileEntity).drain(tDirection, 1000, true);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.fluid", "Clears 1000 Liters of Fluid from Tanks");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Plunger_Item.java b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java index a2c2b8d9b5..4826c84663 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Plunger_Item.java @@ -1,79 +1,79 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntityItemPipe;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntityItemPipe.Util;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 9: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 10: */ import gregtech.api.util.GT_LanguageManager;
-/* 11: */ import gregtech.api.util.GT_Utility;
-/* 12: */ import java.util.HashMap;
-/* 13: */ import java.util.LinkedHashMap;
-/* 14: */ import java.util.List;
-/* 15: */ import java.util.Map;
-/* 16: */ import net.minecraft.entity.item.EntityItem;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.tileentity.TileEntity;
-/* 21: */ import net.minecraft.world.World;
-/* 22: */
-/* 23: */ public class Behaviour_Plunger_Item
-/* 24: */ extends Behaviour_None
-/* 25: */ {
-/* 26: */ private final int mCosts;
-/* 27: */
-/* 28: */ public Behaviour_Plunger_Item(int aCosts)
-/* 29: */ {
-/* 30:25 */ this.mCosts = aCosts;
-/* 31: */ }
-/* 32: */
-/* 33: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 34: */ {
-/* 35:30 */ if (aWorld.isRemote) {
-/* 36:30 */ return false;
-/* 37: */ }
-/* 38:31 */ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 39:32 */ if ((aTileEntity instanceof IGregTechTileEntity))
-/* 40: */ {
-/* 41:33 */ IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity)aTileEntity).getMetaTileEntity();
-/* 42:34 */ if ((tMetaTileEntity instanceof IMetaTileEntityItemPipe)) {
-/* 43:35 */ for (IMetaTileEntityItemPipe tTileEntity : GT_Utility.sortMapByValuesAcending(IMetaTileEntityItemPipe.Util.scanPipes((IMetaTileEntityItemPipe)tMetaTileEntity, new HashMap(), 0L, false, true)).keySet())
-/* 44: */ {
-/* 45:36 */ int i = 0;
-/* 46:36 */ for (int j = tTileEntity.getSizeInventory(); i < j; i++) {
-/* 47:36 */ if (tTileEntity.isValidSlot(i)) {
-/* 48:37 */ if ((tTileEntity.getStackInSlot(i) != null) && (
-/* 49:38 */ (aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))))
-/* 50: */ {
-/* 51:39 */ ItemStack tStack = tTileEntity.decrStackSize(i, 64);
-/* 52:40 */ if (tStack != null)
-/* 53: */ {
-/* 54:41 */ EntityItem tEntity = new EntityItem(aWorld, ((IGregTechTileEntity)aTileEntity).getOffsetX((byte)aSide, 1) + 0.5D, ((IGregTechTileEntity)aTileEntity).getOffsetY((byte)aSide, 1) + 0.5D, ((IGregTechTileEntity)aTileEntity).getOffsetZ((byte)aSide, 1) + 0.5D, tStack);
-/* 55:42 */ tEntity.motionX = 0.0D;tEntity.motionY = 0.0D;tEntity.motionZ = 0.0D;
-/* 56:43 */ aWorld.spawnEntityInWorld(tEntity);
-/* 57:44 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 58: */ }
-/* 59:46 */ return true;
-/* 60: */ }
-/* 61: */ }
-/* 62: */ }
-/* 63: */ }
-/* 64: */ }
-/* 65: */ }
-/* 66:53 */ return false;
-/* 67: */ }
-/* 68: */
-/* 69:56 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.item", "Clears Items from Pipes");
-/* 70: */
-/* 71: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 72: */ {
-/* 73:60 */ aList.add(this.mTooltip);
-/* 74:61 */ return aList;
-/* 75: */ }
-/* 76: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntityItemPipe;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntityItemPipe.Util;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+
+public class Behaviour_Plunger_Item
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Plunger_Item(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ TileEntity aTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((aTileEntity instanceof IGregTechTileEntity))
+ {
+ IMetaTileEntity tMetaTileEntity = ((IGregTechTileEntity)aTileEntity).getMetaTileEntity();
+ if ((tMetaTileEntity instanceof IMetaTileEntityItemPipe)) {
+ for (IMetaTileEntityItemPipe tTileEntity : GT_Utility.sortMapByValuesAcending(IMetaTileEntityItemPipe.Util.scanPipes((IMetaTileEntityItemPipe)tMetaTileEntity, new HashMap(), 0L, false, true)).keySet())
+ {
+ int i = 0;
+ for (int j = tTileEntity.getSizeInventory(); i < j; i++) {
+ if (tTileEntity.isValidSlot(i)) {
+ if ((tTileEntity.getStackInSlot(i) != null) && (
+ (aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))))
+ {
+ ItemStack tStack = tTileEntity.decrStackSize(i, 64);
+ if (tStack != null)
+ {
+ EntityItem tEntity = new EntityItem(aWorld, ((IGregTechTileEntity)aTileEntity).getOffsetX((byte)aSide, 1) + 0.5D, ((IGregTechTileEntity)aTileEntity).getOffsetY((byte)aSide, 1) + 0.5D, ((IGregTechTileEntity)aTileEntity).getOffsetZ((byte)aSide, 1) + 0.5D, tStack);
+ tEntity.motionX = 0.0D;tEntity.motionY = 0.0D;tEntity.motionZ = 0.0D;
+ aWorld.spawnEntityInWorld(tEntity);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ }
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.plunger.item", "Clears Items from Pipes");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_PrintedPages.java b/main/java/gregtech/common/items/behaviors/Behaviour_PrintedPages.java index 03516a8758..b50a5e79d7 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_PrintedPages.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_PrintedPages.java @@ -1,43 +1,43 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 4: */ import gregtech.api.util.GT_Utility;
-/* 5: */ import java.util.List;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */ import net.minecraft.nbt.NBTTagCompound;
-/* 8: */
-/* 9: */ public class Behaviour_PrintedPages
-/* 10: */ extends Behaviour_None
-/* 11: */ {
-/* 12: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 13: */ {
-/* 14:14 */ if (GT_Utility.isStringValid(getTitle(aStack))) {
-/* 15:14 */ aList.add(getTitle(aStack));
-/* 16: */ }
-/* 17:15 */ if (GT_Utility.isStringValid(getAuthor(aStack))) {
-/* 18:15 */ aList.add("by " + getAuthor(aStack));
-/* 19: */ }
-/* 20:16 */ return aList;
-/* 21: */ }
-/* 22: */
-/* 23: */ public static String getTitle(ItemStack aStack)
-/* 24: */ {
-/* 25:20 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 26:21 */ if (tNBT == null) {
-/* 27:21 */ return "";
-/* 28: */ }
-/* 29:22 */ return tNBT.getString("title");
-/* 30: */ }
-/* 31: */
-/* 32: */ public static String getAuthor(ItemStack aStack)
-/* 33: */ {
-/* 34:26 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 35:27 */ if (tNBT == null) {
-/* 36:27 */ return "";
-/* 37: */ }
-/* 38:28 */ return tNBT.getString("author");
-/* 39: */ }
-/* 40: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class Behaviour_PrintedPages
+ extends Behaviour_None
+{
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ if (GT_Utility.isStringValid(getTitle(aStack))) {
+ aList.add(getTitle(aStack));
+ }
+ if (GT_Utility.isStringValid(getAuthor(aStack))) {
+ aList.add("by " + getAuthor(aStack));
+ }
+ return aList;
+ }
+
+ public static String getTitle(ItemStack aStack)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return "";
+ }
+ return tNBT.getString("title");
+ }
+
+ public static String getAuthor(ItemStack aStack)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return "";
+ }
+ return tNBT.getString("author");
+ }
+}
/* 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/items/behaviors/Behaviour_Prospecting.java b/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java index 7769fd9201..c90c5bf42f 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Prospecting.java @@ -1,146 +1,146 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
-/* 6: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import gregtech.api.objects.ItemData;
-/* 9: */ import gregtech.api.objects.MaterialStack;
-/* 10: */ import gregtech.api.util.GT_LanguageManager;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 13: */ import gregtech.api.util.GT_Utility;
-/* 14: */ import gregtech.common.blocks.GT_Block_Ores;
-/* 15: */ import gregtech.common.blocks.GT_TileEntity_Ores;
-/* 16: */ import java.util.List;
-/* 17: */ import java.util.Map;
-/* 18: */ import java.util.Random;
-/* 19: */ import net.minecraft.block.Block;
-/* 20: */ import net.minecraft.entity.player.EntityPlayer;
-/* 21: */ import net.minecraft.init.Blocks;
-/* 22: */ import net.minecraft.item.ItemStack;
-/* 23: */ import net.minecraft.tileentity.TileEntity;
-/* 24: */ import net.minecraft.world.World;
-/* 25: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 26: */ import net.minecraftforge.fluids.IFluidBlock;
-/* 27: */
-/* 28: */ public class Behaviour_Prospecting
-/* 29: */ extends Behaviour_None
-/* 30: */ {
-/* 31: */ private final int mVanillaCosts;
-/* 32: */ private final int mEUCosts;
-/* 33: */
-/* 34: */ public Behaviour_Prospecting(int aVanillaCosts, int aEUCosts)
-/* 35: */ {
-/* 36: 31 */ this.mVanillaCosts = aVanillaCosts;
-/* 37: 32 */ this.mEUCosts = aEUCosts;
-/* 38: */ }
-/* 39: */
-/* 40: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 41: */ {
-/* 42: 37 */ if (aWorld.isRemote) {
-/* 43: 38 */ return false;
-/* 44: */ }
-/* 45: 40 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 46: 41 */ if (aBlock == null) {
-/* 47: 41 */ return false;
-/* 48: */ }
-/* 49: 42 */ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
-/* 50: */
-/* 51: */
-/* 52: 45 */ ItemData tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(aBlock, 1, aMeta));
-/* 53: 46 */ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore")))
-/* 54: */ {
-/* 55: 47 */ GT_Utility.sendChatToPlayer(aPlayer, "This is " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
-/* 56: 48 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 1.0F, -1.0F, aX, aY, aZ);
-/* 57: 49 */ return true;
-/* 58: */ }
-/* 59: 52 */ if ((aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone)))
-/* 60: */ {
-/* 61: 53 */ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
-/* 62: */ {
-/* 63: 54 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 1.0F, -1.0F, aX, aY, aZ);
-/* 64: 55 */ int tX = aX;int tY = aY;int tZ = aZ;int tMetaID = 0;int tQuality = (aItem instanceof GT_MetaGenerated_Tool) ? ((GT_MetaGenerated_Tool)aItem).getHarvestLevel(aStack, "") : 0;
-/* 65: */
-/* 66: 57 */ int i = 0;
-/* 67: 57 */ for (int j = 6 + tQuality; i < j; i++)
-/* 68: */ {
-/* 69: 58 */ tX -= ForgeDirection.getOrientation(aSide).offsetX;
-/* 70: 59 */ tY -= ForgeDirection.getOrientation(aSide).offsetY;
-/* 71: 60 */ tZ -= ForgeDirection.getOrientation(aSide).offsetZ;
-/* 72: */
-/* 73: 62 */ Block tBlock = aWorld.getBlock(tX, tY, tZ);
-/* 74: 63 */ if ((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava))
-/* 75: */ {
-/* 76: 64 */ GT_Utility.sendChatToPlayer(aPlayer, "There is Lava behind this Rock.");
-/* 77: 65 */ break;
-/* 78: */ }
-/* 79: 67 */ if ((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water) || ((tBlock instanceof IFluidBlock)))
-/* 80: */ {
-/* 81: 68 */ GT_Utility.sendChatToPlayer(aPlayer, "There is a Liquid behind this Rock.");
-/* 82: 69 */ break;
-/* 83: */ }
-/* 84: 71 */ if ((tBlock == Blocks.monster_egg) || (!GT_Utility.hasBlockHitBox(aWorld, tX, tY, tZ)))
-/* 85: */ {
-/* 86: 72 */ GT_Utility.sendChatToPlayer(aPlayer, "There is an Air Pocket behind this Rock.");
-/* 87: 73 */ break;
-/* 88: */ }
-/* 89: 75 */ if (tBlock != aBlock)
-/* 90: */ {
-/* 91: 76 */ if (i >= 4) {
-/* 92: */ break;
-/* 93: */ }
-/* 94: 76 */ GT_Utility.sendChatToPlayer(aPlayer, "Material is changing behind this Rock."); break;
-/* 95: */ }
-/* 96: */ }
-/* 97: 81 */ Random tRandom = new Random(aX ^ aY ^ aZ ^ aSide);
-/* 98: 82 */ i = 0;
-/* 99: 82 */ for (int j = 9 + 2 * tQuality; i < j; i++)
-/* 100: */ {
-/* 101: 83 */ tX = aX - 4 - tQuality + tRandom.nextInt(j);
-/* 102: 84 */ tY = aY - 4 - tQuality + tRandom.nextInt(j);
-/* 103: 85 */ tZ = aZ - 4 - tQuality + tRandom.nextInt(j);
-/* 104: 86 */ Block tBlock = aWorld.getBlock(tX, tY, tZ);
-/* 105: 87 */ if ((tBlock instanceof GT_Block_Ores))
-/* 106: */ {
-/* 107: 88 */ TileEntity tTileEntity = aWorld.getTileEntity(tX, tY, tZ);
-/* 108: 89 */ if ((tTileEntity instanceof GT_TileEntity_Ores))
-/* 109: */ {
-/* 110: 90 */ Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores)tTileEntity).mMetaData % 1000)];
-/* 111: 91 */ if ((tMaterial != null) && (tMaterial != Materials._NULL))
-/* 112: */ {
-/* 113: 92 */ GT_Utility.sendChatToPlayer(aPlayer, "Found traces of " + tMaterial.mDefaultLocalName + " Ore.");
-/* 114: 93 */ return true;
-/* 115: */ }
-/* 116: */ }
-/* 117: */ }
-/* 118: */ else
-/* 119: */ {
-/* 120: 97 */ tMetaID = aWorld.getBlockMetadata(tX, tY, tZ);
-/* 121: 98 */ tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID));
-/* 122: 99 */ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore")))
-/* 123: */ {
-/* 124:100 */ GT_Utility.sendChatToPlayer(aPlayer, "Found traces of " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
-/* 125:101 */ return true;
-/* 126: */ }
-/* 127: */ }
-/* 128: */ }
-/* 129:105 */ GT_Utility.sendChatToPlayer(aPlayer, "No Ores found.");
-/* 130: */ }
-/* 131:107 */ return true;
-/* 132: */ }
-/* 133:109 */ return false;
-/* 134: */ }
-/* 135: */
-/* 136:112 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.prospecting", "Usable for Prospecting");
-/* 137: */
-/* 138: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 139: */ {
-/* 140:116 */ aList.add(this.mTooltip);
-/* 141:117 */ return aList;
-/* 142: */ }
-/* 143: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.blocks.GT_Block_Ores;
+import gregtech.common.blocks.GT_TileEntity_Ores;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.IFluidBlock;
+
+public class Behaviour_Prospecting
+ extends Behaviour_None
+{
+ private final int mVanillaCosts;
+ private final int mEUCosts;
+
+ public Behaviour_Prospecting(int aVanillaCosts, int aEUCosts)
+ {
+ this.mVanillaCosts = aVanillaCosts;
+ this.mEUCosts = aEUCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if (aBlock == null) {
+ return false;
+ }
+ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
+
+
+ ItemData tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(aBlock, 1, aMeta));
+ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore")))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "This is " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 1.0F, -1.0F, aX, aY, aZ);
+ return true;
+ }
+ if ((aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.stone)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, GregTech_API.sBlockGranites)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.netherrack)) || (aBlock.isReplaceableOreGen(aWorld, aX, aY, aZ, Blocks.end_stone)))
+ {
+ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
+ {
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 1.0F, -1.0F, aX, aY, aZ);
+ int tX = aX;int tY = aY;int tZ = aZ;int tMetaID = 0;int tQuality = (aItem instanceof GT_MetaGenerated_Tool) ? ((GT_MetaGenerated_Tool)aItem).getHarvestLevel(aStack, "") : 0;
+
+ int i = 0;
+ for (int j = 6 + tQuality; i < j; i++)
+ {
+ tX -= ForgeDirection.getOrientation(aSide).offsetX;
+ tY -= ForgeDirection.getOrientation(aSide).offsetY;
+ tZ -= ForgeDirection.getOrientation(aSide).offsetZ;
+
+ Block tBlock = aWorld.getBlock(tX, tY, tZ);
+ if ((tBlock == Blocks.lava) || (tBlock == Blocks.flowing_lava))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "There is Lava behind this Rock.");
+ break;
+ }
+ if ((tBlock == Blocks.water) || (tBlock == Blocks.flowing_water) || ((tBlock instanceof IFluidBlock)))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "There is a Liquid behind this Rock.");
+ break;
+ }
+ if ((tBlock == Blocks.monster_egg) || (!GT_Utility.hasBlockHitBox(aWorld, tX, tY, tZ)))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "There is an Air Pocket behind this Rock.");
+ break;
+ }
+ if (tBlock != aBlock)
+ {
+ if (i >= 4) {
+ break;
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, "Material is changing behind this Rock."); break;
+ }
+ }
+ Random tRandom = new Random(aX ^ aY ^ aZ ^ aSide);
+ i = 0;
+ for (int j = 9 + 2 * tQuality; i < j; i++)
+ {
+ tX = aX - 4 - tQuality + tRandom.nextInt(j);
+ tY = aY - 4 - tQuality + tRandom.nextInt(j);
+ tZ = aZ - 4 - tQuality + tRandom.nextInt(j);
+ Block tBlock = aWorld.getBlock(tX, tY, tZ);
+ if ((tBlock instanceof GT_Block_Ores))
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(tX, tY, tZ);
+ if ((tTileEntity instanceof GT_TileEntity_Ores))
+ {
+ Materials tMaterial = GregTech_API.sGeneratedMaterials[(((GT_TileEntity_Ores)tTileEntity).mMetaData % 1000)];
+ if ((tMaterial != null) && (tMaterial != Materials._NULL))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "Found traces of " + tMaterial.mDefaultLocalName + " Ore.");
+ return true;
+ }
+ }
+ }
+ else
+ {
+ tMetaID = aWorld.getBlockMetadata(tX, tY, tZ);
+ tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID));
+ if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore")))
+ {
+ GT_Utility.sendChatToPlayer(aPlayer, "Found traces of " + tAssotiation.mMaterial.mMaterial.mDefaultLocalName + " Ore.");
+ return true;
+ }
+ }
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, "No Ores found.");
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.prospecting", "Usable for Prospecting");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Scanner.java b/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java index dc7d09a1e4..233217dfe0 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Scanner.java @@ -1,47 +1,47 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.ArrayList;
-/* 9: */ import java.util.List;
-/* 10: */ import java.util.Map;
-/* 11: */ import net.minecraft.entity.player.EntityPlayer;
-/* 12: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */
-/* 16: */ public class Behaviour_Scanner
-/* 17: */ extends Behaviour_None
-/* 18: */ {
-/* 19:18 */ public static final IItemBehaviour<GT_MetaBase_Item> INSTANCE = new Behaviour_Scanner();
-/* 20: */
-/* 21: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 22: */ {
-/* 23:22 */ if (((aPlayer instanceof EntityPlayerMP)) && (aItem.canUse(aStack, 20000.0D)))
-/* 24: */ {
-/* 25:23 */ ArrayList<String> tList = new ArrayList();
-/* 26:24 */ if (aItem.use(aStack, GT_Utility.getCoordinateScan(tList, aPlayer, aWorld, 1, aX, aY, aZ, aSide, hitX, hitY, hitZ), aPlayer)) {
-/* 27:24 */ for (int i = 0; i < tList.size(); i++) {
-/* 28:24 */ GT_Utility.sendChatToPlayer(aPlayer, (String)tList.get(i));
-/* 29: */ }
-/* 30: */ }
-/* 31:25 */ return true;
-/* 32: */ }
-/* 33:27 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(108)), 1, 1.0F, aX, aY, aZ);
-/* 34:28 */ return aPlayer instanceof EntityPlayerMP;
-/* 35: */ }
-/* 36: */
-/* 37:31 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.scanning", "Can scan Blocks in World");
-/* 38: */
-/* 39: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 40: */ {
-/* 41:35 */ aList.add(this.mTooltip);
-/* 42:36 */ return aList;
-/* 43: */ }
-/* 44: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_Scanner
+ extends Behaviour_None
+{
+ public static final IItemBehaviour<GT_MetaBase_Item> INSTANCE = new Behaviour_Scanner();
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (((aPlayer instanceof EntityPlayerMP)) && (aItem.canUse(aStack, 20000.0D)))
+ {
+ ArrayList<String> tList = new ArrayList();
+ if (aItem.use(aStack, GT_Utility.getCoordinateScan(tList, aPlayer, aWorld, 1, aX, aY, aZ, aSide, hitX, hitY, hitZ), aPlayer)) {
+ for (int i = 0; i < tList.size(); i++) {
+ GT_Utility.sendChatToPlayer(aPlayer, (String)tList.get(i));
+ }
+ }
+ return true;
+ }
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(108)), 1, 1.0F, aX, aY, aZ);
+ return aPlayer instanceof EntityPlayerMP;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.scanning", "Can scan Blocks in World");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Scoop.java b/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java index 3e1f0bd45b..31fc309880 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Scoop.java @@ -1,60 +1,60 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import forestry.api.lepidopterology.EnumFlutterType;
-/* 4: */ import forestry.api.lepidopterology.IAlleleButterflySpecies;
-/* 5: */ import forestry.api.lepidopterology.IButterfly;
-/* 6: */ import forestry.api.lepidopterology.IButterflyGenome;
-/* 7: */ import forestry.api.lepidopterology.IButterflyRoot;
-/* 8: */ import forestry.api.lepidopterology.IEntityButterfly;
-/* 9: */ import forestry.api.lepidopterology.ILepidopteristTracker;
-/* 10: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 11: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 12: */ import gregtech.api.util.GT_LanguageManager;
-/* 13: */ import java.util.List;
-/* 14: */ import net.minecraft.entity.Entity;
-/* 15: */ import net.minecraft.entity.item.EntityItem;
-/* 16: */ import net.minecraft.entity.player.EntityPlayer;
-/* 17: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraft.world.World;
-/* 20: */
-/* 21: */ public class Behaviour_Scoop
-/* 22: */ extends Behaviour_None
-/* 23: */ {
-/* 24: */ private final int mCosts;
-/* 25: */
-/* 26: */ public Behaviour_Scoop(int aCosts)
-/* 27: */ {
-/* 28:21 */ this.mCosts = aCosts;
-/* 29: */ }
-/* 30: */
-/* 31: */ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
-/* 32: */ {
-/* 33:26 */ if ((aEntity instanceof IEntityButterfly))
-/* 34: */ {
-/* 35:27 */ if (aPlayer.worldObj.isRemote) {
-/* 36:27 */ return true;
-/* 37: */ }
-/* 38:28 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 39: */ {
-/* 40:29 */ Object tButterfly = ((IEntityButterfly)aEntity).getButterfly();
-/* 41:30 */ ((IButterfly)tButterfly).getGenome().getPrimary().getRoot().getBreedingTracker(aEntity.worldObj, aPlayer.getGameProfile()).registerCatch((IButterfly)tButterfly);
-/* 42:31 */ aPlayer.worldObj.spawnEntityInWorld(new EntityItem(aPlayer.worldObj, aEntity.posX, aEntity.posY, aEntity.posZ, ((IButterfly)tButterfly).getGenome().getPrimary().getRoot().getMemberStack(((IButterfly)tButterfly).copy(), EnumFlutterType.BUTTERFLY.ordinal())));
-/* 43:32 */ aEntity.setDead();
-/* 44: */ }
-/* 45:34 */ return true;
-/* 46: */ }
-/* 47:36 */ return false;
-/* 48: */ }
-/* 49: */
-/* 50:39 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.scoop", "Catches Butterflies on Leftclick");
-/* 51: */
-/* 52: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 53: */ {
-/* 54:43 */ aList.add(this.mTooltip);
-/* 55:44 */ return aList;
-/* 56: */ }
-/* 57: */ }
+package gregtech.common.items.behaviors;
+
+import forestry.api.lepidopterology.EnumFlutterType;
+import forestry.api.lepidopterology.IAlleleButterflySpecies;
+import forestry.api.lepidopterology.IButterfly;
+import forestry.api.lepidopterology.IButterflyGenome;
+import forestry.api.lepidopterology.IButterflyRoot;
+import forestry.api.lepidopterology.IEntityButterfly;
+import forestry.api.lepidopterology.ILepidopteristTracker;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import java.util.List;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.item.EntityItem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_Scoop
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Scoop(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onLeftClickEntity(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, Entity aEntity)
+ {
+ if ((aEntity instanceof IEntityButterfly))
+ {
+ if (aPlayer.worldObj.isRemote) {
+ return true;
+ }
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ Object tButterfly = ((IEntityButterfly)aEntity).getButterfly();
+ ((IButterfly)tButterfly).getGenome().getPrimary().getRoot().getBreedingTracker(aEntity.worldObj, aPlayer.getGameProfile()).registerCatch((IButterfly)tButterfly);
+ aPlayer.worldObj.spawnEntityInWorld(new EntityItem(aPlayer.worldObj, aEntity.posX, aEntity.posY, aEntity.posZ, ((IButterfly)tButterfly).getGenome().getPrimary().getRoot().getMemberStack(((IButterfly)tButterfly).copy(), EnumFlutterType.BUTTERFLY.ordinal())));
+ aEntity.setDead();
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.scoop", "Catches Butterflies on Leftclick");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Screwdriver.java b/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java index 4813635828..a29d8197bf 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Screwdriver.java @@ -1,59 +1,59 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.util.GT_ModHandler;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import java.util.Map;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.init.Blocks;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */
-/* 14: */ public class Behaviour_Screwdriver
-/* 15: */ extends Behaviour_None
-/* 16: */ {
-/* 17: */ private final int mVanillaCosts;
-/* 18: */ private final int mEUCosts;
-/* 19: */
-/* 20: */ public Behaviour_Screwdriver(int aVanillaCosts, int aEUCosts)
-/* 21: */ {
-/* 22:17 */ this.mVanillaCosts = aVanillaCosts;
-/* 23:18 */ this.mEUCosts = aEUCosts;
-/* 24: */ }
-/* 25: */
-/* 26: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 27: */ {
-/* 28:23 */ if (aWorld.isRemote) {
-/* 29:24 */ return false;
-/* 30: */ }
-/* 31:26 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 32:27 */ if (aBlock == null) {
-/* 33:27 */ return false;
-/* 34: */ }
-/* 35:28 */ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
-/* 36:31 */ if ((aBlock == Blocks.unpowered_repeater) || (aBlock == Blocks.powered_repeater))
-/* 37: */ {
-/* 38:32 */ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
-/* 39: */ {
-/* 40:33 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3);
-/* 41:34 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(100)), 1.0F, -1.0F, aX, aY, aZ);
-/* 42: */ }
-/* 43:36 */ return true;
-/* 44: */ }
-/* 45:38 */ if ((aBlock == Blocks.unpowered_comparator) || (aBlock == Blocks.powered_comparator))
-/* 46: */ {
-/* 47:39 */ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
-/* 48: */ {
-/* 49:40 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3);
-/* 50:41 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(100)), 1.0F, -1.0F, aX, aY, aZ);
-/* 51: */ }
-/* 52:43 */ return true;
-/* 53: */ }
-/* 54:45 */ return false;
-/* 55: */ }
-/* 56: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_Screwdriver
+ extends Behaviour_None
+{
+ private final int mVanillaCosts;
+ private final int mEUCosts;
+
+ public Behaviour_Screwdriver(int aVanillaCosts, int aEUCosts)
+ {
+ this.mVanillaCosts = aVanillaCosts;
+ this.mEUCosts = aEUCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if (aBlock == null) {
+ return false;
+ }
+ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
+ if ((aBlock == Blocks.unpowered_repeater) || (aBlock == Blocks.powered_repeater))
+ {
+ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
+ {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(100)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if ((aBlock == Blocks.unpowered_comparator) || (aBlock == Blocks.powered_comparator))
+ {
+ if (GT_ModHandler.damageOrDechargeItem(aStack, this.mVanillaCosts, this.mEUCosts, aPlayer))
+ {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, aMeta / 4 * 4 + (aMeta % 4 + 1) % 4, 3);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(100)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ return false;
+ }
+}
/* 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/items/behaviors/Behaviour_Sense.java b/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java index 6a27bab094..d23e8d9035 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Sense.java @@ -1,56 +1,56 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 4: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 5: */ import gregtech.api.util.GT_LanguageManager;
-/* 6: */ import ic2.api.crops.ICropTile;
-/* 7: */ import java.util.List;
-/* 8: */ import net.minecraft.entity.player.EntityPlayer;
-/* 9: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.tileentity.TileEntity;
-/* 12: */ import net.minecraft.world.World;
-/* 13: */
-/* 14: */ public class Behaviour_Sense
-/* 15: */ extends Behaviour_None
-/* 16: */ {
-/* 17: */ private final int mCosts;
-/* 18: */
-/* 19: */ public Behaviour_Sense(int aCosts)
-/* 20: */ {
-/* 21:19 */ this.mCosts = aCosts;
-/* 22: */ }
-/* 23: */
-/* 24: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 25: */ {
-/* 26:24 */ if (aWorld.isRemote) {
-/* 27:24 */ return false;
-/* 28: */ }
-/* 29:25 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 30:26 */ if ((tTileEntity instanceof ICropTile))
-/* 31: */ {
-/* 32:27 */ for (int i = -1; i < 2; i++) {
-/* 33:27 */ for (int j = -1; j < 2; j++) {
-/* 34:27 */ for (int k = -1; k < 2; k++) {
-/* 35:27 */ if ((aStack.stackSize > 0) && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) && (((ICropTile)tTileEntity).harvest(true)) && (!aPlayer.capabilities.isCreativeMode)) {
-/* 36:27 */ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
-/* 37: */ }
-/* 38: */ }
-/* 39: */ }
-/* 40: */ }
-/* 41:28 */ return true;
-/* 42: */ }
-/* 43:30 */ return false;
-/* 44: */ }
-/* 45: */
-/* 46:33 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.sense", "Rightclick to harvest Crop Sticks");
-/* 47: */
-/* 48: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 49: */ {
-/* 50:37 */ aList.add(this.mTooltip);
-/* 51:38 */ return aList;
-/* 52: */ }
-/* 53: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import ic2.api.crops.ICropTile;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.item.ItemStack;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+
+public class Behaviour_Sense
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_Sense(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if ((tTileEntity instanceof ICropTile))
+ {
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int k = -1; k < 2; k++) {
+ if ((aStack.stackSize > 0) && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) && (((ICropTile)tTileEntity).harvest(true)) && (!aPlayer.capabilities.isCreativeMode)) {
+ ((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts);
+ }
+ }
+ }
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.sense", "Rightclick to harvest Crop Sticks");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_SensorKit.java b/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java index 52fafbaca8..c20ca76200 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_SensorKit.java @@ -1,55 +1,55 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ItemList;
-/* 4: */ import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.List;
-/* 9: */ import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 11: */ import net.minecraft.inventory.IInventory;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.nbt.NBTTagCompound;
-/* 14: */ import net.minecraft.tileentity.TileEntity;
-/* 15: */ import net.minecraft.world.World;
-/* 16: */
-/* 17: */ public class Behaviour_SensorKit
-/* 18: */ extends Behaviour_None
-/* 19: */ {
-/* 20: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 21: */ {
-/* 22:22 */ if ((aPlayer instanceof EntityPlayerMP))
-/* 23: */ {
-/* 24:23 */ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
-/* 25:24 */ if (((tTileEntity instanceof IInventory)) && (!((IInventory)tTileEntity).isUseableByPlayer(aPlayer))) {
-/* 26:24 */ return false;
-/* 27: */ }
-/* 28:25 */ if (((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation()))
-/* 29: */ {
-/* 30:26 */ GT_Utility.setStack(aStack, ItemList.NC_SensorCard.get(aStack.stackSize, new Object[0]));
-/* 31:27 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 32:28 */ if (tNBT == null) {
-/* 33:28 */ tNBT = new NBTTagCompound();
-/* 34: */ }
-/* 35:29 */ tNBT.setInteger("x", aX);
-/* 36:30 */ tNBT.setInteger("y", aY);
-/* 37:31 */ tNBT.setInteger("z", aZ);
-/* 38:32 */ aStack.setTagCompound(tNBT);
-/* 39: */ }
-/* 40:34 */ return true;
-/* 41: */ }
-/* 42:36 */ return false;
-/* 43: */ }
-/* 44: */
-/* 45:39 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.sensorkit.tooltip", "Used to display Information using the Mod Nuclear Control");
-/* 46: */
-/* 47: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 48: */ {
-/* 49:43 */ aList.add(this.mTooltip);
-/* 50:44 */ return aList;
-/* 51: */ }
-/* 52: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.enums.ItemList;
+import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraft.world.World;
+
+public class Behaviour_SensorKit
+ extends Behaviour_None
+{
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if ((aPlayer instanceof EntityPlayerMP))
+ {
+ TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
+ if (((tTileEntity instanceof IInventory)) && (!((IInventory)tTileEntity).isUseableByPlayer(aPlayer))) {
+ return false;
+ }
+ if (((tTileEntity instanceof IGregTechDeviceInformation)) && (((IGregTechDeviceInformation)tTileEntity).isGivingInformation()))
+ {
+ GT_Utility.setStack(aStack, ItemList.NC_SensorCard.get(aStack.stackSize, new Object[0]));
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ tNBT.setInteger("x", aX);
+ tNBT.setInteger("y", aY);
+ tNBT.setInteger("z", aZ);
+ aStack.setTagCompound(tNBT);
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.sensorkit.tooltip", "Used to display Information using the Mod Nuclear Control");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_SoftHammer.java b/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java index ab21a6f7fa..a9015ce49a 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_SoftHammer.java @@ -1,128 +1,128 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 6: */ import gregtech.api.util.GT_LanguageManager;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.List;
-/* 9: */ import java.util.Map;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.entity.player.EntityPlayer;
-/* 12: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 13: */ import net.minecraft.init.Blocks;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.world.World;
-/* 16: */
-/* 17: */ public class Behaviour_SoftHammer
-/* 18: */ extends Behaviour_None
-/* 19: */ {
-/* 20: */ private final int mCosts;
-/* 21: */
-/* 22: */ public Behaviour_SoftHammer(int aCosts)
-/* 23: */ {
-/* 24: 21 */ this.mCosts = aCosts;
-/* 25: */ }
-/* 26: */
-/* 27: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 28: */ {
-/* 29: 26 */ if (aWorld.isRemote) {
-/* 30: 27 */ return false;
-/* 31: */ }
-/* 32: 29 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 33: 30 */ if (aBlock == null) {
-/* 34: 30 */ return false;
-/* 35: */ }
-/* 36: 31 */ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
-/* 37: 34 */ if (aBlock == Blocks.lit_redstone_lamp)
-/* 38: */ {
-/* 39: 35 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 40: */ {
-/* 41: 36 */ aWorld.isRemote = true;
-/* 42: 37 */ aWorld.setBlock(aX, aY, aZ, Blocks.redstone_lamp, 0, 0);
-/* 43: 38 */ aWorld.isRemote = false;
-/* 44: 39 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 45: */ }
-/* 46: 41 */ return true;
-/* 47: */ }
-/* 48: 43 */ if (aBlock == Blocks.redstone_lamp)
-/* 49: */ {
-/* 50: 44 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 51: */ {
-/* 52: 45 */ aWorld.isRemote = true;
-/* 53: 46 */ aWorld.setBlock(aX, aY, aZ, Blocks.lit_redstone_lamp, 0, 0);
-/* 54: 47 */ aWorld.isRemote = false;
-/* 55: 48 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 56: */ }
-/* 57: 50 */ return true;
-/* 58: */ }
-/* 59: 52 */ if (aBlock == Blocks.golden_rail)
-/* 60: */ {
-/* 61: 53 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 62: */ {
-/* 63: 54 */ aWorld.isRemote = true;
-/* 64: 55 */ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0);
-/* 65: 56 */ aWorld.isRemote = false;
-/* 66: 57 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 67: */ }
-/* 68: 59 */ return true;
-/* 69: */ }
-/* 70: 61 */ if (aBlock == Blocks.activator_rail)
-/* 71: */ {
-/* 72: 62 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 73: */ {
-/* 74: 63 */ aWorld.isRemote = true;
-/* 75: 64 */ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0);
-/* 76: 65 */ aWorld.isRemote = false;
-/* 77: 66 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 78: */ }
-/* 79: 68 */ return true;
-/* 80: */ }
-/* 81: 70 */ if ((aBlock == Blocks.log) || (aBlock == Blocks.log2) || (aBlock == Blocks.hay_block))
-/* 82: */ {
-/* 83: 71 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))) {
-/* 84: 72 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 4) % 12, 3);
-/* 85: */ }
-/* 86: 74 */ return true;
-/* 87: */ }
-/* 88: 76 */ if ((aBlock == Blocks.piston) || (aBlock == Blocks.sticky_piston) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper))
-/* 89: */ {
-/* 90: 77 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 91: */ {
-/* 92: 78 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6, 3);
-/* 93: 79 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 94: */ }
-/* 95: 81 */ return true;
-/* 96: */ }
-/* 97: 83 */ if ((aBlock == Blocks.pumpkin) || (aBlock == Blocks.lit_pumpkin) || (aBlock == Blocks.furnace) || (aBlock == Blocks.lit_furnace) || (aBlock == Blocks.chest) || (aBlock == Blocks.trapped_chest))
-/* 98: */ {
-/* 99: 84 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 100: */ {
-/* 101: 85 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta - 1) % 4 + 2, 3);
-/* 102: 86 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 103: */ }
-/* 104: 88 */ return true;
-/* 105: */ }
-/* 106: 90 */ if (aBlock == Blocks.hopper)
-/* 107: */ {
-/* 108: 91 */ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
-/* 109: */ {
-/* 110: 92 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6 == 1 ? (aMeta + 1) % 6 : 2, 3);
-/* 111: 93 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
-/* 112: */ }
-/* 113: 95 */ return true;
-/* 114: */ }
-/* 115: 97 */ return false;
-/* 116: */ }
-/* 117: */
-/* 118:100 */ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.softhammer", "Activates and Deactivates Machines");
-/* 119: */
-/* 120: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 121: */ {
-/* 122:104 */ aList.add(this.mTooltip);
-/* 123:105 */ return aList;
-/* 124: */ }
-/* 125: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_SoftHammer
+ extends Behaviour_None
+{
+ private final int mCosts;
+
+ public Behaviour_SoftHammer(int aCosts)
+ {
+ this.mCosts = aCosts;
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if (aWorld.isRemote) {
+ return false;
+ }
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if (aBlock == null) {
+ return false;
+ }
+ byte aMeta = (byte)aWorld.getBlockMetadata(aX, aY, aZ);
+ if (aBlock == Blocks.lit_redstone_lamp)
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, Blocks.redstone_lamp, 0, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if (aBlock == Blocks.redstone_lamp)
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, Blocks.lit_redstone_lamp, 0, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if (aBlock == Blocks.golden_rail)
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if (aBlock == Blocks.activator_rail)
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.isRemote = true;
+ aWorld.setBlock(aX, aY, aZ, aBlock, (aMeta + 8) % 16, 0);
+ aWorld.isRemote = false;
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if ((aBlock == Blocks.log) || (aBlock == Blocks.log2) || (aBlock == Blocks.hay_block))
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts))) {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 4) % 12, 3);
+ }
+ return true;
+ }
+ if ((aBlock == Blocks.piston) || (aBlock == Blocks.sticky_piston) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper))
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6, 3);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if ((aBlock == Blocks.pumpkin) || (aBlock == Blocks.lit_pumpkin) || (aBlock == Blocks.furnace) || (aBlock == Blocks.lit_furnace) || (aBlock == Blocks.chest) || (aBlock == Blocks.trapped_chest))
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta - 1) % 4 + 2, 3);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ if (aBlock == Blocks.hopper)
+ {
+ if ((aPlayer.capabilities.isCreativeMode) || (((GT_MetaGenerated_Tool)aItem).doDamage(aStack, this.mCosts)))
+ {
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (aMeta + 1) % 6 == 1 ? (aMeta + 1) % 6 : 2, 3);
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
+ }
+ return true;
+ }
+ return false;
+ }
+
+ private final String mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.softhammer", "Activates and Deactivates Machines");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_Sonictron.java b/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java index 8ce829a3d5..0198324f28 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Sonictron.java @@ -1,144 +1,144 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.GT_Values;
-/* 5: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 6: */ import gregtech.api.interfaces.internal.IGT_Mod;
-/* 7: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import net.minecraft.entity.Entity;
-/* 10: */ import net.minecraft.entity.player.EntityPlayer;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.nbt.NBTTagCompound;
-/* 13: */ import net.minecraft.nbt.NBTTagList;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */
-/* 16: */ public class Behaviour_Sonictron
-/* 17: */ extends Behaviour_None
-/* 18: */ {
-/* 19: 16 */ public static final IItemBehaviour<GT_MetaBase_Item> INSTANCE = new Behaviour_Sonictron();
-/* 20: */
-/* 21: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 22: */ {
-/* 23: 20 */ if ((!aWorld.isRemote) && (aWorld.getBlock(aX, aY, aZ) == GregTech_API.sBlockMachines) && (aWorld.getBlockMetadata(aX, aY, aZ) == 6)) {}
-/* 24: 36 */ setCurrentIndex(aStack, -1);
-/* 25: 37 */ return false;
-/* 26: */ }
-/* 27: */
-/* 28: */ public ItemStack onItemRightClick(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer)
-/* 29: */ {
-/* 30: 42 */ setCurrentIndex(aStack, 0);
-/* 31: 43 */ return aStack;
-/* 32: */ }
-/* 33: */
-/* 34: */ public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand)
-/* 35: */ {
-/* 36: 48 */ int tTickTimer = getTickTimer(aStack);
-/* 37: 49 */ int tCurrentIndex = getCurrentIndex(aStack);
-/* 38: 51 */ if ((tTickTimer++ % 2 == 0) && (tCurrentIndex > -1))
-/* 39: */ {
-/* 40: 52 */ ItemStack[] tInventory = getNBTInventory(aStack);
-/* 41: 53 */ GT_Values.GT.doSonictronSound(tInventory[tCurrentIndex], aPlayer.worldObj, aPlayer.posX, aPlayer.posY, aPlayer.posZ);
-/* 42: 54 */ tCurrentIndex++;
-/* 43: 54 */ if (tCurrentIndex > 63) {
-/* 44: 54 */ tCurrentIndex = -1;
-/* 45: */ }
-/* 46: */ }
-/* 47: 57 */ setTickTimer(aStack, tTickTimer);
-/* 48: 58 */ setCurrentIndex(aStack, tCurrentIndex);
-/* 49: */ }
-/* 50: */
-/* 51: */ public static int getCurrentIndex(ItemStack aStack)
-/* 52: */ {
-/* 53: 62 */ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
-/* 54: 63 */ if (tNBTTagCompound == null) {
-/* 55: 63 */ tNBTTagCompound = new NBTTagCompound();
-/* 56: */ }
-/* 57: 64 */ return tNBTTagCompound.getInteger("mCurrentIndex");
-/* 58: */ }
-/* 59: */
-/* 60: */ public static int getTickTimer(ItemStack aStack)
-/* 61: */ {
-/* 62: 68 */ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
-/* 63: 69 */ if (tNBTTagCompound == null) {
-/* 64: 69 */ tNBTTagCompound = new NBTTagCompound();
-/* 65: */ }
-/* 66: 70 */ return tNBTTagCompound.getInteger("mTickTimer");
-/* 67: */ }
-/* 68: */
-/* 69: */ public static NBTTagCompound setCurrentIndex(ItemStack aStack, int aIndex)
-/* 70: */ {
-/* 71: 74 */ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
-/* 72: 75 */ if (tNBTTagCompound == null) {
-/* 73: 75 */ tNBTTagCompound = new NBTTagCompound();
-/* 74: */ }
-/* 75: 76 */ tNBTTagCompound.setInteger("mCurrentIndex", aIndex);
-/* 76: 77 */ return tNBTTagCompound;
-/* 77: */ }
-/* 78: */
-/* 79: */ public static NBTTagCompound setTickTimer(ItemStack aStack, int aTime)
-/* 80: */ {
-/* 81: 81 */ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
-/* 82: 82 */ if (tNBTTagCompound == null) {
-/* 83: 82 */ tNBTTagCompound = new NBTTagCompound();
-/* 84: */ }
-/* 85: 83 */ tNBTTagCompound.setInteger("mTickTimer", aTime);
-/* 86: 84 */ return tNBTTagCompound;
-/* 87: */ }
-/* 88: */
-/* 89: */ public static ItemStack[] getNBTInventory(ItemStack aStack)
-/* 90: */ {
-/* 91: 88 */ ItemStack[] tInventory = new ItemStack[64];
-/* 92: 89 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 93: 90 */ if (tNBT == null) {
-/* 94: 90 */ return tInventory;
-/* 95: */ }
-/* 96: 92 */ NBTTagList tNBT_ItemList = tNBT.getTagList("Inventory", 10);
-/* 97: 93 */ for (int i = 0; i < tNBT_ItemList.tagCount(); i++)
-/* 98: */ {
-/* 99: 94 */ NBTTagCompound tag = tNBT_ItemList.getCompoundTagAt(i);
-/* 100: 95 */ byte slot = tag.getByte("Slot");
-/* 101: 96 */ if ((slot >= 0) && (slot < tInventory.length)) {
-/* 102: 97 */ tInventory[slot] = GT_Utility.loadItem(tag);
-/* 103: */ }
-/* 104: */ }
-/* 105:100 */ return tInventory;
-/* 106: */ }
-/* 107: */
-/* 108: */ public static NBTTagCompound setNBTInventory(ItemStack aStack, ItemStack[] aInventory)
-/* 109: */ {
-/* 110:104 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 111:105 */ if (tNBT == null) {
-/* 112:105 */ tNBT = new NBTTagCompound();
-/* 113: */ }
-/* 114:107 */ NBTTagList tNBT_ItemList = new NBTTagList();
-/* 115:108 */ for (int i = 0; i < aInventory.length; i++)
-/* 116: */ {
-/* 117:109 */ ItemStack stack = aInventory[i];
-/* 118:110 */ if (stack != null)
-/* 119: */ {
-/* 120:111 */ NBTTagCompound tag = new NBTTagCompound();
-/* 121:112 */ tag.setByte("Slot", (byte)i);
-/* 122:113 */ stack.writeToNBT(tag);
-/* 123:114 */ tNBT_ItemList.appendTag(tag);
-/* 124: */ }
-/* 125: */ }
-/* 126:117 */ tNBT.setTag("Inventory", tNBT_ItemList);
-/* 127:118 */ aStack.setTagCompound(tNBT);
-/* 128:119 */ return tNBT;
-/* 129: */ }
-/* 130: */
-/* 131: */ public static void copyInventory(ItemStack[] aInventory, ItemStack[] aNewContent, int aIndexlength)
-/* 132: */ {
-/* 133:123 */ for (int i = 0; i < aIndexlength; i++) {
-/* 134:124 */ if (aNewContent[i] == null) {
-/* 135:125 */ aInventory[i] = null;
-/* 136: */ } else {
-/* 137:127 */ aInventory[i] = GT_Utility.copy(new Object[] { aNewContent[i] });
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
-/* 141: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.interfaces.internal.IGT_Mod;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.nbt.NBTTagList;
+import net.minecraft.world.World;
+
+public class Behaviour_Sonictron
+ extends Behaviour_None
+{
+ public static final IItemBehaviour<GT_MetaBase_Item> INSTANCE = new Behaviour_Sonictron();
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if ((!aWorld.isRemote) && (aWorld.getBlock(aX, aY, aZ) == GregTech_API.sBlockMachines) && (aWorld.getBlockMetadata(aX, aY, aZ) == 6)) {}
+ setCurrentIndex(aStack, -1);
+ return false;
+ }
+
+ public ItemStack onItemRightClick(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, EntityPlayer aPlayer)
+ {
+ setCurrentIndex(aStack, 0);
+ return aStack;
+ }
+
+ public void onUpdate(GT_MetaBase_Item aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand)
+ {
+ int tTickTimer = getTickTimer(aStack);
+ int tCurrentIndex = getCurrentIndex(aStack);
+ if ((tTickTimer++ % 2 == 0) && (tCurrentIndex > -1))
+ {
+ ItemStack[] tInventory = getNBTInventory(aStack);
+ GT_Values.GT.doSonictronSound(tInventory[tCurrentIndex], aPlayer.worldObj, aPlayer.posX, aPlayer.posY, aPlayer.posZ);
+ tCurrentIndex++;
+ if (tCurrentIndex > 63) {
+ tCurrentIndex = -1;
+ }
+ }
+ setTickTimer(aStack, tTickTimer);
+ setCurrentIndex(aStack, tCurrentIndex);
+ }
+
+ public static int getCurrentIndex(ItemStack aStack)
+ {
+ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
+ if (tNBTTagCompound == null) {
+ tNBTTagCompound = new NBTTagCompound();
+ }
+ return tNBTTagCompound.getInteger("mCurrentIndex");
+ }
+
+ public static int getTickTimer(ItemStack aStack)
+ {
+ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
+ if (tNBTTagCompound == null) {
+ tNBTTagCompound = new NBTTagCompound();
+ }
+ return tNBTTagCompound.getInteger("mTickTimer");
+ }
+
+ public static NBTTagCompound setCurrentIndex(ItemStack aStack, int aIndex)
+ {
+ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
+ if (tNBTTagCompound == null) {
+ tNBTTagCompound = new NBTTagCompound();
+ }
+ tNBTTagCompound.setInteger("mCurrentIndex", aIndex);
+ return tNBTTagCompound;
+ }
+
+ public static NBTTagCompound setTickTimer(ItemStack aStack, int aTime)
+ {
+ NBTTagCompound tNBTTagCompound = aStack.getTagCompound();
+ if (tNBTTagCompound == null) {
+ tNBTTagCompound = new NBTTagCompound();
+ }
+ tNBTTagCompound.setInteger("mTickTimer", aTime);
+ return tNBTTagCompound;
+ }
+
+ public static ItemStack[] getNBTInventory(ItemStack aStack)
+ {
+ ItemStack[] tInventory = new ItemStack[64];
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ return tInventory;
+ }
+ NBTTagList tNBT_ItemList = tNBT.getTagList("Inventory", 10);
+ for (int i = 0; i < tNBT_ItemList.tagCount(); i++)
+ {
+ NBTTagCompound tag = tNBT_ItemList.getCompoundTagAt(i);
+ byte slot = tag.getByte("Slot");
+ if ((slot >= 0) && (slot < tInventory.length)) {
+ tInventory[slot] = GT_Utility.loadItem(tag);
+ }
+ }
+ return tInventory;
+ }
+
+ public static NBTTagCompound setNBTInventory(ItemStack aStack, ItemStack[] aInventory)
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ NBTTagList tNBT_ItemList = new NBTTagList();
+ for (int i = 0; i < aInventory.length; i++)
+ {
+ ItemStack stack = aInventory[i];
+ if (stack != null)
+ {
+ NBTTagCompound tag = new NBTTagCompound();
+ tag.setByte("Slot", (byte)i);
+ stack.writeToNBT(tag);
+ tNBT_ItemList.appendTag(tag);
+ }
+ }
+ tNBT.setTag("Inventory", tNBT_ItemList);
+ aStack.setTagCompound(tNBT);
+ return tNBT;
+ }
+
+ public static void copyInventory(ItemStack[] aInventory, ItemStack[] aNewContent, int aIndexlength)
+ {
+ for (int i = 0; i < aIndexlength; i++) {
+ if (aNewContent[i] == null) {
+ aInventory[i] = null;
+ } else {
+ aInventory[i] = GT_Utility.copy(new Object[] { aNewContent[i] });
+ }
+ }
+ }
+}
/* 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/items/behaviors/Behaviour_Spray_Color.java b/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java index 4051afa5bf..e43e4ce3bf 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_Spray_Color.java @@ -1,140 +1,140 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Dyes;
-/* 5: */ import gregtech.api.enums.ItemList;
-/* 6: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 7: */ import gregtech.api.util.GT_LanguageManager;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import java.util.Arrays;
-/* 10: */ import java.util.Collection;
-/* 11: */ import java.util.List;
-/* 12: */ import java.util.Map;
-/* 13: */ import net.minecraft.block.Block;
-/* 14: */ import net.minecraft.block.BlockColored;
-/* 15: */ import net.minecraft.entity.player.EntityPlayer;
-/* 16: */ import net.minecraft.entity.player.PlayerCapabilities;
-/* 17: */ import net.minecraft.init.Blocks;
-/* 18: */ import net.minecraft.init.Items;
-/* 19: */ import net.minecraft.item.Item;
-/* 20: */ import net.minecraft.item.ItemStack;
-/* 21: */ import net.minecraft.nbt.NBTTagCompound;
-/* 22: */ import net.minecraft.world.World;
-/* 23: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 24: */
-/* 25: */ public class Behaviour_Spray_Color
-/* 26: */ extends Behaviour_None
-/* 27: */ {
-/* 28: */ private final ItemStack mEmpty;
-/* 29: */ private final ItemStack mUsed;
-/* 30: */ private final ItemStack mFull;
-/* 31: */ private final long mUses;
-/* 32: */ private final byte mColor;
-/* 33: */
-/* 34: */ public Behaviour_Spray_Color(ItemStack aEmpty, ItemStack aUsed, ItemStack aFull, long aUses, int aColor)
-/* 35: */ {
-/* 36: 30 */ this.mEmpty = aEmpty;
-/* 37: 31 */ this.mUsed = aUsed;
-/* 38: 32 */ this.mFull = aFull;
-/* 39: 33 */ this.mUses = aUses;
-/* 40: 34 */ this.mColor = ((byte)aColor);
-/* 41: 35 */ this.mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.paintspray." + this.mColor + ".tooltip", "Can Color things in " + Dyes.get(this.mColor).mName);
-/* 42: */ }
-/* 43: */
-/* 44: */ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 45: */ {
-/* 46: 40 */ if ((aWorld.isRemote) || (aStack.stackSize != 1)) {
-/* 47: 40 */ return false;
-/* 48: */ }
-/* 49: 42 */ boolean rOutput = false;
-/* 50: 44 */ if (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack)) {
-/* 51: 44 */ return false;
-/* 52: */ }
-/* 53: 46 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 54: 47 */ if (tNBT == null) {
-/* 55: 47 */ tNBT = new NBTTagCompound();
-/* 56: */ }
-/* 57: 48 */ long tUses = tNBT.getLong("GT.RemainingPaint");
-/* 58: 50 */ if (GT_Utility.areStacksEqual(aStack, this.mFull, true))
-/* 59: */ {
-/* 60: 51 */ aStack.func_150996_a(this.mUsed.getItem());
-/* 61: 52 */ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mUsed));
-/* 62: 53 */ tUses = this.mUses;
-/* 63: */ }
-/* 64: 55 */ if ((GT_Utility.areStacksEqual(aStack, this.mUsed, true)) &&
-/* 65: 56 */ (colorize(aWorld, aX, aY, aZ, aSide)))
-/* 66: */ {
-/* 67: 57 */ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(102)), 1.0F, 1.0F, aX, aY, aZ);
-/* 68: 58 */ if (!aPlayer.capabilities.isCreativeMode) {
-/* 69: 58 */ tUses -= 1L;
-/* 70: */ }
-/* 71: 59 */ rOutput = true;
-/* 72: */ }
-/* 73: 62 */ tNBT.removeTag("GT.RemainingPaint");
-/* 74: 63 */ if (tUses > 0L) {
-/* 75: 63 */ tNBT.setLong("GT.RemainingPaint", tUses);
-/* 76: */ }
-/* 77: 64 */ if (tNBT.hasNoTags()) {
-/* 78: 64 */ aStack.setTagCompound(null);
-/* 79: */ } else {
-/* 80: 64 */ aStack.setTagCompound(tNBT);
-/* 81: */ }
-/* 82: 66 */ if (tUses <= 0L) {
-/* 83: 67 */ if (this.mEmpty == null)
-/* 84: */ {
-/* 85: 68 */ aStack.stackSize -= 1;
-/* 86: */ }
-/* 87: */ else
-/* 88: */ {
-/* 89: 70 */ aStack.func_150996_a(this.mEmpty.getItem());
-/* 90: 71 */ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mEmpty));
-/* 91: */ }
-/* 92: */ }
-/* 93: 74 */ return rOutput;
-/* 94: */ }
-/* 95: */
-/* 96: 77 */ private final Collection<Block> mAllowedVanillaBlocks = Arrays.asList(new Block[] { Blocks.glass, Blocks.glass_pane, Blocks.stained_glass, Blocks.stained_glass_pane, Blocks.carpet, Blocks.hardened_clay, ItemList.TE_Rockwool.getBlock() });
-/* 97: */ private final String mTooltip;
-/* 98: */
-/* 99: */ private boolean colorize(World aWorld, int aX, int aY, int aZ, int aSide)
-/* 100: */ {
-/* 101: 80 */ Block aBlock = aWorld.getBlock(aX, aY, aZ);
-/* 102: 81 */ if ((aBlock != Blocks.air) && ((this.mAllowedVanillaBlocks.contains(aBlock)) || ((aBlock instanceof BlockColored))))
-/* 103: */ {
-/* 104: 82 */ if (aBlock == Blocks.hardened_clay)
-/* 105: */ {
-/* 106: 82 */ aWorld.setBlock(aX, aY, aZ, Blocks.stained_hardened_clay, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
-/* 107: */ }
-/* 108: 83 */ if (aBlock == Blocks.glass_pane)
-/* 109: */ {
-/* 110: 83 */ aWorld.setBlock(aX, aY, aZ, Blocks.stained_glass_pane, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
-/* 111: */ }
-/* 112: 84 */ if (aBlock == Blocks.glass)
-/* 113: */ {
-/* 114: 84 */ aWorld.setBlock(aX, aY, aZ, Blocks.stained_glass, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
-/* 115: */ }
-/* 116: 85 */ if (aWorld.getBlockMetadata(aX, aY, aZ) == ((this.mColor ^ 0xFFFFFFFF) & 0xF)) {
-/* 117: 85 */ return false;
-/* 118: */ }
-/* 119: 86 */ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);
-/* 120: 87 */ return true;
-/* 121: */ }
-/* 122: 89 */ return aBlock.recolourBlock(aWorld, aX, aY, aZ, ForgeDirection.getOrientation(aSide), (this.mColor ^ 0xFFFFFFFF) & 0xF);
-/* 123: */ }
-/* 124: */
-/* 125: 92 */ private final String mTooltipUses = GT_LanguageManager.addStringLocalization("gt.behaviour.paintspray.uses", "Remaining Uses:");
-/* 126: 93 */ private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
-/* 127: */
-/* 128: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 129: */ {
-/* 130: 97 */ aList.add(this.mTooltip);
-/* 131: 98 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 132: 99 */ long tRemainingPaint = tNBT == null ? 0L : GT_Utility.areStacksEqual(aStack, this.mFull, true) ? this.mUses : tNBT.getLong("GT.RemainingPaint");
-/* 133:100 */ aList.add(this.mTooltipUses + " " + tRemainingPaint);
-/* 134:101 */ aList.add(this.mTooltipUnstackable);
-/* 135:102 */ return aList;
-/* 136: */ }
-/* 137: */ }
+package gregtech.common.items.behaviors;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.ItemList;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_LanguageManager;
+import gregtech.api.util.GT_Utility;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.BlockColored;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.PlayerCapabilities;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+
+public class Behaviour_Spray_Color
+ extends Behaviour_None
+{
+ private final ItemStack mEmpty;
+ private final ItemStack mUsed;
+ private final ItemStack mFull;
+ private final long mUses;
+ private final byte mColor;
+
+ public Behaviour_Spray_Color(ItemStack aEmpty, ItemStack aUsed, ItemStack aFull, long aUses, int aColor)
+ {
+ this.mEmpty = aEmpty;
+ this.mUsed = aUsed;
+ this.mFull = aFull;
+ this.mUses = aUses;
+ this.mColor = ((byte)aColor);
+ this.mTooltip = GT_LanguageManager.addStringLocalization("gt.behaviour.paintspray." + this.mColor + ".tooltip", "Can Color things in " + Dyes.get(this.mColor).mName);
+ }
+
+ public boolean onItemUseFirst(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if ((aWorld.isRemote) || (aStack.stackSize != 1)) {
+ return false;
+ }
+ boolean rOutput = false;
+ if (!aPlayer.canPlayerEdit(aX, aY, aZ, aSide, aStack)) {
+ return false;
+ }
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ long tUses = tNBT.getLong("GT.RemainingPaint");
+ if (GT_Utility.areStacksEqual(aStack, this.mFull, true))
+ {
+ aStack.func_150996_a(this.mUsed.getItem());
+ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mUsed));
+ tUses = this.mUses;
+ }
+ if ((GT_Utility.areStacksEqual(aStack, this.mUsed, true)) &&
+ (colorize(aWorld, aX, aY, aZ, aSide)))
+ {
+ GT_Utility.sendSoundToPlayers(aWorld, (String)GregTech_API.sSoundList.get(Integer.valueOf(102)), 1.0F, 1.0F, aX, aY, aZ);
+ if (!aPlayer.capabilities.isCreativeMode) {
+ tUses -= 1L;
+ }
+ rOutput = true;
+ }
+ tNBT.removeTag("GT.RemainingPaint");
+ if (tUses > 0L) {
+ tNBT.setLong("GT.RemainingPaint", tUses);
+ }
+ if (tNBT.hasNoTags()) {
+ aStack.setTagCompound(null);
+ } else {
+ aStack.setTagCompound(tNBT);
+ }
+ if (tUses <= 0L) {
+ if (this.mEmpty == null)
+ {
+ aStack.stackSize -= 1;
+ }
+ else
+ {
+ aStack.func_150996_a(this.mEmpty.getItem());
+ Items.feather.setDamage(aStack, Items.feather.getDamage(this.mEmpty));
+ }
+ }
+ return rOutput;
+ }
+
+ private final Collection<Block> mAllowedVanillaBlocks = Arrays.asList(new Block[] { Blocks.glass, Blocks.glass_pane, Blocks.stained_glass, Blocks.stained_glass_pane, Blocks.carpet, Blocks.hardened_clay, ItemList.TE_Rockwool.getBlock() });
+ private final String mTooltip;
+
+ private boolean colorize(World aWorld, int aX, int aY, int aZ, int aSide)
+ {
+ Block aBlock = aWorld.getBlock(aX, aY, aZ);
+ if ((aBlock != Blocks.air) && ((this.mAllowedVanillaBlocks.contains(aBlock)) || ((aBlock instanceof BlockColored))))
+ {
+ if (aBlock == Blocks.hardened_clay)
+ {
+ aWorld.setBlock(aX, aY, aZ, Blocks.stained_hardened_clay, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
+ }
+ if (aBlock == Blocks.glass_pane)
+ {
+ aWorld.setBlock(aX, aY, aZ, Blocks.stained_glass_pane, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
+ }
+ if (aBlock == Blocks.glass)
+ {
+ aWorld.setBlock(aX, aY, aZ, Blocks.stained_glass, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);return true;
+ }
+ if (aWorld.getBlockMetadata(aX, aY, aZ) == ((this.mColor ^ 0xFFFFFFFF) & 0xF)) {
+ return false;
+ }
+ aWorld.setBlockMetadataWithNotify(aX, aY, aZ, (this.mColor ^ 0xFFFFFFFF) & 0xF, 3);
+ return true;
+ }
+ return aBlock.recolourBlock(aWorld, aX, aY, aZ, ForgeDirection.getOrientation(aSide), (this.mColor ^ 0xFFFFFFFF) & 0xF);
+ }
+
+ private final String mTooltipUses = GT_LanguageManager.addStringLocalization("gt.behaviour.paintspray.uses", "Remaining Uses:");
+ private final String mTooltipUnstackable = GT_LanguageManager.addStringLocalization("gt.behaviour.unstackable", "Not usable when stacked!");
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ aList.add(this.mTooltip);
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ long tRemainingPaint = tNBT == null ? 0L : GT_Utility.areStacksEqual(aStack, this.mFull, true) ? this.mUses : tNBT.getLong("GT.RemainingPaint");
+ aList.add(this.mTooltipUses + " " + tRemainingPaint);
+ aList.add(this.mTooltipUnstackable);
+ return aList;
+ }
+}
/* 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/items/behaviors/Behaviour_WrittenBook.java b/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java index b7aaafb3dc..bb605280cf 100644 --- a/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java +++ b/main/java/gregtech/common/items/behaviors/Behaviour_WrittenBook.java @@ -1,41 +1,41 @@ -/* 1: */ package gregtech.common.items.behaviors;
-/* 2: */
-/* 3: */ import cpw.mods.fml.relauncher.Side;
-/* 4: */ import cpw.mods.fml.relauncher.SideOnly;
-/* 5: */ import gregtech.api.items.GT_MetaBase_Item;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import gregtech.api.util.GT_Utility.ItemNBT;
-/* 8: */ import java.util.List;
-/* 9: */ import net.minecraft.client.Minecraft;
-/* 10: */ import net.minecraft.client.entity.EntityPlayerSP;
-/* 11: */ import net.minecraft.client.gui.GuiScreenBook;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.world.World;
-/* 15: */
-/* 16: */ public class Behaviour_WrittenBook
-/* 17: */ extends Behaviour_None
-/* 18: */ {
-/* 19: */ @SideOnly(Side.CLIENT)
-/* 20: */ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
-/* 21: */ {
-/* 22:25 */ if ((GT_Utility.isStringValid(GT_Utility.ItemNBT.getBookTitle(aStack))) && ((aPlayer instanceof EntityPlayerSP))) {
-/* 23:25 */ Minecraft.getMinecraft().displayGuiScreen(new GuiScreenBook(aPlayer, aStack, false));
-/* 24: */ }
-/* 25:26 */ return true;
-/* 26: */ }
-/* 27: */
-/* 28: */ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
-/* 29: */ {
-/* 30:31 */ String tTitle = GT_Utility.ItemNBT.getBookTitle(aStack);
-/* 31:32 */ if (GT_Utility.isStringValid(tTitle))
-/* 32: */ {
-/* 33:33 */ aList.add(tTitle);
-/* 34:34 */ aList.add("by " + GT_Utility.ItemNBT.getBookAuthor(aStack));
-/* 35: */ }
-/* 36:36 */ return aList;
-/* 37: */ }
-/* 38: */ }
+package gregtech.common.items.behaviors;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import gregtech.api.items.GT_MetaBase_Item;
+import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Utility.ItemNBT;
+import java.util.List;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.entity.EntityPlayerSP;
+import net.minecraft.client.gui.GuiScreenBook;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+
+public class Behaviour_WrittenBook
+ extends Behaviour_None
+{
+ @SideOnly(Side.CLIENT)
+ public boolean onItemUse(GT_MetaBase_Item aItem, ItemStack aStack, EntityPlayer aPlayer, World aWorld, int aX, int aY, int aZ, int aSide, float hitX, float hitY, float hitZ)
+ {
+ if ((GT_Utility.isStringValid(GT_Utility.ItemNBT.getBookTitle(aStack))) && ((aPlayer instanceof EntityPlayerSP))) {
+ Minecraft.getMinecraft().displayGuiScreen(new GuiScreenBook(aPlayer, aStack, false));
+ }
+ return true;
+ }
+
+ public List<String> getAdditionalToolTips(GT_MetaBase_Item aItem, List<String> aList, ItemStack aStack)
+ {
+ String tTitle = GT_Utility.ItemNBT.getBookTitle(aStack);
+ if (GT_Utility.isStringValid(tTitle))
+ {
+ aList.add(tTitle);
+ aList.add("by " + GT_Utility.ItemNBT.getBookAuthor(aStack));
+ }
+ return aList;
+ }
+}
/* 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/redstonecircuits/GT_Circuit_BasicLogic.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java index 796a48fb91..89d1abc78b 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_BasicLogic.java @@ -1,110 +1,110 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_BasicLogic
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_BasicLogic(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 0;
-/* 17: */ }
-/* 18: */
-/* 19: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 20: */ {
-/* 21:19 */ if (aCircuitData[0] < 0) {
-/* 22:19 */ aCircuitData[0] = 0;
-/* 23: */ }
-/* 24:20 */ if (aCircuitData[0] > 13) {
-/* 25:20 */ aCircuitData[0] = 13;
-/* 26: */ }
-/* 27: */ }
-/* 28: */
-/* 29: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 30: */ {
-/* 31:25 */ if (aCircuitData[0] < 2) {
-/* 32:26 */ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getAnyRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 33:27 */ } else if (aCircuitData[0] < 4) {
-/* 34:28 */ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getOneRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 35:29 */ } else if (aCircuitData[0] < 6) {
-/* 36:30 */ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getAllRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 37:31 */ } else if (aCircuitData[0] < 7) {
-/* 38:32 */ aRedstoneCircuitBlock.setRedstone((byte)(15 - getStrongestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
-/* 39:33 */ } else if (aCircuitData[0] < 9) {
-/* 40:34 */ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ (getStrongestRedstone(aRedstoneCircuitBlock) | getWeakestRedstone(aRedstoneCircuitBlock))), aRedstoneCircuitBlock.getOutputFacing());
-/* 41:35 */ } else if (aCircuitData[0] < 11) {
-/* 42:36 */ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) ^ getWeakestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
-/* 43:37 */ } else if (aCircuitData[0] < 13) {
-/* 44:38 */ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) & getWeakestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
-/* 45:39 */ } else if (aCircuitData[0] < 14) {
-/* 46:40 */ aRedstoneCircuitBlock.setRedstone((byte)(getStrongestRedstone(aRedstoneCircuitBlock) ^ 0xF), aRedstoneCircuitBlock.getOutputFacing());
-/* 47: */ }
-/* 48: */ }
-/* 49: */
-/* 50: */ public String getName()
-/* 51: */ {
-/* 52:46 */ return "Basic Logic";
-/* 53: */ }
-/* 54: */
-/* 55: */ public String getDescription()
-/* 56: */ {
-/* 57:51 */ return "Regular Logic Gates";
-/* 58: */ }
-/* 59: */
-/* 60: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 61: */ {
-/* 62:56 */ if (aCircuitDataIndex == 0) {
-/* 63:57 */ switch (aCircuitData[0])
-/* 64: */ {
-/* 65: */ case 0:
-/* 66:58 */ return "OR";
-/* 67: */ case 1:
-/* 68:59 */ return "NOR";
-/* 69: */ case 2:
-/* 70:60 */ return "XOR";
-/* 71: */ case 3:
-/* 72:61 */ return "XNOR";
-/* 73: */ case 4:
-/* 74:62 */ return "AND";
-/* 75: */ case 5:
-/* 76:63 */ return "NAND";
-/* 77: */ case 6:
-/* 78:64 */ return "INVERT";
-/* 79: */ case 7:
-/* 80:65 */ return "BIT_OR";
-/* 81: */ case 8:
-/* 82:66 */ return "BIT_NOR";
-/* 83: */ case 9:
-/* 84:67 */ return "BIT_XOR";
-/* 85: */ case 10:
-/* 86:68 */ return "BIT_XNOR";
-/* 87: */ case 11:
-/* 88:69 */ return "BIT_AND";
-/* 89: */ case 12:
-/* 90:70 */ return "BIT_NAND";
-/* 91: */ case 13:
-/* 92:71 */ return "BIT_INVERT";
-/* 93: */ }
-/* 94: */ }
-/* 95:74 */ return "";
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 99: */ {
-/* :0:79 */ return false;
-/* :1: */ }
-/* :2: */
-/* :3: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* :4: */ {
-/* :5:84 */ return "";
-/* :6: */ }
-/* :7: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_BasicLogic
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_BasicLogic(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 0) {
+ aCircuitData[0] = 0;
+ }
+ if (aCircuitData[0] > 13) {
+ aCircuitData[0] = 13;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 2) {
+ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getAnyRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 4) {
+ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getOneRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 6) {
+ aRedstoneCircuitBlock.setRedstone((byte)(aCircuitData[0] % 2 == (getAllRedstone(aRedstoneCircuitBlock) ? 0 : 1) ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 7) {
+ aRedstoneCircuitBlock.setRedstone((byte)(15 - getStrongestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 9) {
+ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ (getStrongestRedstone(aRedstoneCircuitBlock) | getWeakestRedstone(aRedstoneCircuitBlock))), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 11) {
+ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) ^ getWeakestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 13) {
+ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[0] % 2 == 0 ? 15 : 0) ^ getStrongestRedstone(aRedstoneCircuitBlock) & getWeakestRedstone(aRedstoneCircuitBlock)), aRedstoneCircuitBlock.getOutputFacing());
+ } else if (aCircuitData[0] < 14) {
+ aRedstoneCircuitBlock.setRedstone((byte)(getStrongestRedstone(aRedstoneCircuitBlock) ^ 0xF), aRedstoneCircuitBlock.getOutputFacing());
+ }
+ }
+
+ public String getName()
+ {
+ return "Basic Logic";
+ }
+
+ public String getDescription()
+ {
+ return "Regular Logic Gates";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex == 0) {
+ switch (aCircuitData[0])
+ {
+ case 0:
+ return "OR";
+ case 1:
+ return "NOR";
+ case 2:
+ return "XOR";
+ case 3:
+ return "XNOR";
+ case 4:
+ return "AND";
+ case 5:
+ return "NAND";
+ case 6:
+ return "INVERT";
+ case 7:
+ return "BIT_OR";
+ case 8:
+ return "BIT_NOR";
+ case 9:
+ return "BIT_XOR";
+ case 10:
+ return "BIT_XNOR";
+ case 11:
+ return "BIT_AND";
+ case 12:
+ return "BIT_NAND";
+ case 13:
+ return "BIT_INVERT";
+ }
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ return "";
+ }
+}
/* 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/redstonecircuits/GT_Circuit_BitAnd.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java index 7ba343dff7..1efced38a3 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_BitAnd.java @@ -1,82 +1,82 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_BitAnd
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_BitAnd(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 0;
-/* 17:15 */ aCircuitData[1] = 0;
-/* 18:16 */ aCircuitData[2] = 0;
-/* 19:17 */ aCircuitData[3] = 0;
-/* 20: */ }
-/* 21: */
-/* 22: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 23: */ {
-/* 24:22 */ if (aCircuitData[0] < 0) {
-/* 25:22 */ aCircuitData[0] = 0;
-/* 26: */ }
-/* 27:23 */ if (aCircuitData[1] < 0) {
-/* 28:23 */ aCircuitData[1] = 0;
-/* 29: */ }
-/* 30:24 */ if (aCircuitData[2] < 0) {
-/* 31:24 */ aCircuitData[2] = 0;
-/* 32: */ }
-/* 33:25 */ if (aCircuitData[3] < 0) {
-/* 34:25 */ aCircuitData[3] = 0;
-/* 35: */ }
-/* 36:26 */ if (aCircuitData[0] > 1) {
-/* 37:26 */ aCircuitData[0] = 1;
-/* 38: */ }
-/* 39:27 */ if (aCircuitData[1] > 1) {
-/* 40:27 */ aCircuitData[1] = 1;
-/* 41: */ }
-/* 42:28 */ if (aCircuitData[2] > 1) {
-/* 43:28 */ aCircuitData[2] = 1;
-/* 44: */ }
-/* 45:29 */ if (aCircuitData[3] > 1) {
-/* 46:29 */ aCircuitData[3] = 1;
-/* 47: */ }
-/* 48: */ }
-/* 49: */
-/* 50: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 51: */ {
-/* 52:34 */ aRedstoneCircuitBlock.setRedstone((byte)((getStrongestRedstone(aRedstoneCircuitBlock) & (aCircuitData[0] | aCircuitData[1] << 1 | aCircuitData[2] << 2 | aCircuitData[3] << 3)) != 0 ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 53: */ }
-/* 54: */
-/* 55: */ public String getName()
-/* 56: */ {
-/* 57:39 */ return "Hardcode Bit-AND";
-/* 58: */ }
-/* 59: */
-/* 60: */ public String getDescription()
-/* 61: */ {
-/* 62:44 */ return "( signal & this ) != 0";
-/* 63: */ }
-/* 64: */
-/* 65: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 66: */ {
-/* 67:49 */ return "Bit " + aCircuitDataIndex + ":";
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 71: */ {
-/* 72:54 */ return false;
-/* 73: */ }
-/* 74: */
-/* 75: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 76: */ {
-/* 77:59 */ return aCircuitData[aCircuitDataIndex] == 0 ? "OFF" : "ON";
-/* 78: */ }
-/* 79: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_BitAnd
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_BitAnd(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 0;
+ aCircuitData[1] = 0;
+ aCircuitData[2] = 0;
+ aCircuitData[3] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 0) {
+ aCircuitData[0] = 0;
+ }
+ if (aCircuitData[1] < 0) {
+ aCircuitData[1] = 0;
+ }
+ if (aCircuitData[2] < 0) {
+ aCircuitData[2] = 0;
+ }
+ if (aCircuitData[3] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[0] > 1) {
+ aCircuitData[0] = 1;
+ }
+ if (aCircuitData[1] > 1) {
+ aCircuitData[1] = 1;
+ }
+ if (aCircuitData[2] > 1) {
+ aCircuitData[2] = 1;
+ }
+ if (aCircuitData[3] > 1) {
+ aCircuitData[3] = 1;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)((getStrongestRedstone(aRedstoneCircuitBlock) & (aCircuitData[0] | aCircuitData[1] << 1 | aCircuitData[2] << 2 | aCircuitData[3] << 3)) != 0 ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
+ }
+
+ public String getName()
+ {
+ return "Hardcode Bit-AND";
+ }
+
+ public String getDescription()
+ {
+ return "( signal & this ) != 0";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ return "Bit " + aCircuitDataIndex + ":";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ return aCircuitData[aCircuitDataIndex] == 0 ? "OFF" : "ON";
+ }
+}
/* 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/redstonecircuits/GT_Circuit_CombinationLock.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_CombinationLock.java index ae258b8327..491f465ec6 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_CombinationLock.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_CombinationLock.java @@ -1,120 +1,120 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_CombinationLock
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_CombinationLock(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 1;
-/* 17:15 */ aCircuitData[1] = 0;
-/* 18:16 */ aCircuitData[2] = 0;
-/* 19:17 */ aCircuitData[3] = 0;
-/* 20:18 */ aCircuitData[4] = 0;
-/* 21:19 */ aCircuitData[5] = 0;
-/* 22: */ }
-/* 23: */
-/* 24: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 25: */ {
-/* 26:24 */ if (aCircuitData[0] < 1) {
-/* 27:24 */ aCircuitData[0] = 1;
-/* 28: */ }
-/* 29:25 */ if (aCircuitData[1] < 0) {
-/* 30:25 */ aCircuitData[1] = 0;
-/* 31: */ }
-/* 32:26 */ if (aCircuitData[2] < 0) {
-/* 33:26 */ aCircuitData[2] = 0;
-/* 34: */ }
-/* 35:27 */ if (aCircuitData[3] < 0) {
-/* 36:27 */ aCircuitData[3] = 0;
-/* 37: */ }
-/* 38:28 */ if (aCircuitData[0] > 15) {
-/* 39:28 */ aCircuitData[0] = 15;
-/* 40: */ }
-/* 41:29 */ if (aCircuitData[1] > 15) {
-/* 42:29 */ aCircuitData[1] = 15;
-/* 43: */ }
-/* 44:30 */ if (aCircuitData[2] > 15) {
-/* 45:30 */ aCircuitData[2] = 15;
-/* 46: */ }
-/* 47:31 */ if (aCircuitData[3] > 15) {
-/* 48:31 */ aCircuitData[3] = 15;
-/* 49: */ }
-/* 50:32 */ if (aCircuitData[4] < 0) {
-/* 51:32 */ aCircuitData[4] = 0;
-/* 52: */ }
-/* 53:33 */ if (aCircuitData[4] > 3) {
-/* 54:33 */ aCircuitData[4] = 3;
-/* 55: */ }
-/* 56:34 */ if (aCircuitData[5] < 0) {
-/* 57:34 */ aCircuitData[5] = 0;
-/* 58: */ }
-/* 59: */ }
-/* 60: */
-/* 61: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 62: */ {
-/* 63:39 */ while ((aCircuitData[aCircuitData[4]] == 0) && (aCircuitData[4] < 4)) {
-/* 64:39 */ aCircuitData[4] += 1;
-/* 65: */ }
-/* 66:40 */ if (aCircuitData[4] < 4)
-/* 67: */ {
-/* 68:41 */ int tRedstone = getStrongestRedstone(aRedstoneCircuitBlock);
-/* 69:42 */ if (tRedstone > 0)
-/* 70: */ {
-/* 71:43 */ if (aCircuitData[5] == 0) {
-/* 72:44 */ if (tRedstone == aCircuitData[aCircuitData[4]]) {
-/* 73:45 */ aCircuitData[4] += 1;
-/* 74: */ } else {
-/* 75:47 */ aCircuitData[4] = 0;
-/* 76: */ }
-/* 77: */ }
-/* 78:50 */ aCircuitData[5] = 1;
-/* 79: */ }
-/* 80: */ else
-/* 81: */ {
-/* 82:52 */ aCircuitData[5] = 0;
-/* 83: */ }
-/* 84:54 */ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
-/* 85: */ }
-/* 86: */ else
-/* 87: */ {
-/* 88:56 */ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
-/* 89:57 */ aCircuitData[4] = 0;
-/* 90: */ }
-/* 91: */ }
-/* 92: */
-/* 93: */ public String getName()
-/* 94: */ {
-/* 95:63 */ return "Combination Lock";
-/* 96: */ }
-/* 97: */
-/* 98: */ public String getDescription()
-/* 99: */ {
-/* :0:68 */ return "Checks Combinations";
-/* :1: */ }
-/* :2: */
-/* :3: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* :4: */ {
-/* :5:73 */ return "Power " + aCircuitDataIndex;
-/* :6: */ }
-/* :7: */
-/* :8: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* :9: */ {
-/* ;0:78 */ return false;
-/* ;1: */ }
-/* ;2: */
-/* ;3: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* ;4: */ {
-/* ;5:83 */ return null;
-/* ;6: */ }
-/* ;7: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_CombinationLock
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_CombinationLock(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 1;
+ aCircuitData[1] = 0;
+ aCircuitData[2] = 0;
+ aCircuitData[3] = 0;
+ aCircuitData[4] = 0;
+ aCircuitData[5] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 1) {
+ aCircuitData[0] = 1;
+ }
+ if (aCircuitData[1] < 0) {
+ aCircuitData[1] = 0;
+ }
+ if (aCircuitData[2] < 0) {
+ aCircuitData[2] = 0;
+ }
+ if (aCircuitData[3] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[0] > 15) {
+ aCircuitData[0] = 15;
+ }
+ if (aCircuitData[1] > 15) {
+ aCircuitData[1] = 15;
+ }
+ if (aCircuitData[2] > 15) {
+ aCircuitData[2] = 15;
+ }
+ if (aCircuitData[3] > 15) {
+ aCircuitData[3] = 15;
+ }
+ if (aCircuitData[4] < 0) {
+ aCircuitData[4] = 0;
+ }
+ if (aCircuitData[4] > 3) {
+ aCircuitData[4] = 3;
+ }
+ if (aCircuitData[5] < 0) {
+ aCircuitData[5] = 0;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ while ((aCircuitData[aCircuitData[4]] == 0) && (aCircuitData[4] < 4)) {
+ aCircuitData[4] += 1;
+ }
+ if (aCircuitData[4] < 4)
+ {
+ int tRedstone = getStrongestRedstone(aRedstoneCircuitBlock);
+ if (tRedstone > 0)
+ {
+ if (aCircuitData[5] == 0) {
+ if (tRedstone == aCircuitData[aCircuitData[4]]) {
+ aCircuitData[4] += 1;
+ } else {
+ aCircuitData[4] = 0;
+ }
+ }
+ aCircuitData[5] = 1;
+ }
+ else
+ {
+ aCircuitData[5] = 0;
+ }
+ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
+ }
+ else
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
+ aCircuitData[4] = 0;
+ }
+ }
+
+ public String getName()
+ {
+ return "Combination Lock";
+ }
+
+ public String getDescription()
+ {
+ return "Checks Combinations";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ return "Power " + aCircuitDataIndex;
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ return 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/redstonecircuits/GT_Circuit_Equals.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java index 12f7820797..a8f1b29e36 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Equals.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_Equals
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_Equals(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 0;
-/* 17:15 */ aCircuitData[1] = 0;
-/* 18: */ }
-/* 19: */
-/* 20: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 21: */ {
-/* 22:20 */ if (aCircuitData[0] < 0) {
-/* 23:20 */ aCircuitData[0] = 0;
-/* 24: */ }
-/* 25:21 */ if (aCircuitData[0] > 15) {
-/* 26:21 */ aCircuitData[0] = 15;
-/* 27: */ }
-/* 28:22 */ if (aCircuitData[1] < 0) {
-/* 29:22 */ aCircuitData[3] = 0;
-/* 30: */ }
-/* 31:23 */ if (aCircuitData[1] > 1) {
-/* 32:23 */ aCircuitData[3] = 1;
-/* 33: */ }
-/* 34: */ }
-/* 35: */
-/* 36: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 37: */ {
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_Equals
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_Equals(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 0;
+ aCircuitData[1] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 0) {
+ aCircuitData[0] = 0;
+ }
+ if (aCircuitData[0] > 15) {
+ aCircuitData[0] = 15;
+ }
+ if (aCircuitData[1] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[1] > 1) {
+ aCircuitData[3] = 1;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
aRedstoneCircuitBlock.setRedstone(((byte)((aCircuitData[1] != 0 ? getStrongestRedstone(aRedstoneCircuitBlock) == aCircuitData[0] : getStrongestRedstone(aRedstoneCircuitBlock) != aCircuitData[0]) ? 0 : 15)), aRedstoneCircuitBlock.getOutputFacing());
}
-/* 46: */
-/* 47: */ public String getName()
-/* 48: */ {
-/* 49:33 */ return "Equals";
-/* 50: */ }
-/* 51: */
-/* 52: */ public String getDescription()
-/* 53: */ {
-/* 54:38 */ return "signal == this";
-/* 55: */ }
-/* 56: */
-/* 57: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 58: */ {
-/* 59:43 */ switch (aCircuitDataIndex)
-/* 60: */ {
-/* 61: */ case 0:
-/* 62:44 */ return "Signal";
-/* 63: */ case 1:
-/* 64:45 */ return aCircuitData[1] == 0 ? "Equal" : "Unequal";
-/* 65: */ }
-/* 66:47 */ return "";
-/* 67: */ }
-/* 68: */
-/* 69: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 70: */ {
-/* 71:52 */ return false;
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 75: */ {
-/* 76:57 */ if (aCircuitDataIndex > 0) {
-/* 77:57 */ return "";
-/* 78: */ }
-/* 79:58 */ return null;
-/* 80: */ }
-/* 81: */ }
+
+ public String getName()
+ {
+ return "Equals";
+ }
+
+ public String getDescription()
+ {
+ return "signal == this";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Signal";
+ case 1:
+ return aCircuitData[1] == 0 ? "Equal" : "Unequal";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex > 0) {
+ return "";
+ }
+ return 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/redstonecircuits/GT_Circuit_Pulser.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java index 97975fd07c..47f8fb87e1 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Pulser.java @@ -1,96 +1,96 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_Pulser
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_Pulser(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 1;
-/* 17:15 */ aCircuitData[1] = 16;
-/* 18:16 */ aCircuitData[4] = 0;
-/* 19: */ }
-/* 20: */
-/* 21: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 22: */ {
-/* 23:21 */ if (aCircuitData[0] < 1) {
-/* 24:21 */ aCircuitData[0] = 1;
-/* 25: */ }
-/* 26:22 */ if (aCircuitData[1] < 0) {
-/* 27:22 */ aCircuitData[1] = 0;
-/* 28: */ }
-/* 29:23 */ if (aCircuitData[1] > 16) {
-/* 30:23 */ aCircuitData[1] = 16;
-/* 31: */ }
-/* 32:24 */ if (aCircuitData[4] < 0) {
-/* 33:24 */ aCircuitData[4] = 0;
-/* 34: */ }
-/* 35: */ }
-/* 36: */
-/* 37: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 38: */ {
-/* 39:29 */ byte tRedstone = aCircuitData[1] == 0 ? getWeakestNonZeroRedstone(aRedstoneCircuitBlock) : getStrongestRedstone(aRedstoneCircuitBlock);
-/* 40:30 */ if (aCircuitData[4] == 0) {
-/* 41:30 */ aCircuitData[5] = tRedstone;
-/* 42: */ }
-/* 43:31 */ if ((tRedstone > 0) || (aCircuitData[4] > 0))
-/* 44: */ {
-/* 45:31 */ int tmp40_39 = 4; int[] tmp40_38 = aCircuitData; int tmp42_41 = tmp40_38[tmp40_39];tmp40_38[tmp40_39] = (tmp42_41 + 1);
-/* 46:31 */ if ((tmp42_41 >= aCircuitData[0]) && (tRedstone <= 0)) {
-/* 47:31 */ aCircuitData[4] = 0;
-/* 48: */ }
-/* 49: */ }
-/* 50:32 */ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[4] > 0) && (aCircuitData[4] <= aCircuitData[0]) ? (byte)aCircuitData[1] : (aCircuitData[1] <= 0) || (aCircuitData[1] > 15) ? (byte)aCircuitData[5] : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 51: */ }
-/* 52: */
-/* 53: */ public String getName()
-/* 54: */ {
-/* 55:37 */ return "Pulser";
-/* 56: */ }
-/* 57: */
-/* 58: */ public String getDescription()
-/* 59: */ {
-/* 60:42 */ return "Limits&Enlengths";
-/* 61: */ }
-/* 62: */
-/* 63: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 64: */ {
-/* 65:47 */ switch (aCircuitDataIndex)
-/* 66: */ {
-/* 67: */ case 0:
-/* 68:48 */ return "Length";
-/* 69: */ case 1:
-/* 70:49 */ return "RS Out";
-/* 71: */ }
-/* 72:51 */ return "";
-/* 73: */ }
-/* 74: */
-/* 75: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 76: */ {
-/* 77:56 */ return false;
-/* 78: */ }
-/* 79: */
-/* 80: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 81: */ {
-/* 82:61 */ if (aCircuitDataIndex == 1)
-/* 83: */ {
-/* 84:62 */ if (aCircuitData[aCircuitDataIndex] == 16) {
-/* 85:62 */ return "HIGHEST";
-/* 86: */ }
-/* 87:63 */ if (aCircuitData[aCircuitDataIndex] == 0) {
-/* 88:63 */ return "LOWEST";
-/* 89: */ }
-/* 90: */ }
-/* 91:65 */ return aCircuitDataIndex > 1 ? "" : null;
-/* 92: */ }
-/* 93: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_Pulser
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_Pulser(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 1;
+ aCircuitData[1] = 16;
+ aCircuitData[4] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 1) {
+ aCircuitData[0] = 1;
+ }
+ if (aCircuitData[1] < 0) {
+ aCircuitData[1] = 0;
+ }
+ if (aCircuitData[1] > 16) {
+ aCircuitData[1] = 16;
+ }
+ if (aCircuitData[4] < 0) {
+ aCircuitData[4] = 0;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ byte tRedstone = aCircuitData[1] == 0 ? getWeakestNonZeroRedstone(aRedstoneCircuitBlock) : getStrongestRedstone(aRedstoneCircuitBlock);
+ if (aCircuitData[4] == 0) {
+ aCircuitData[5] = tRedstone;
+ }
+ if ((tRedstone > 0) || (aCircuitData[4] > 0))
+ {
+ int tmp40_39 = 4; int[] tmp40_38 = aCircuitData; int tmp42_41 = tmp40_38[tmp40_39];tmp40_38[tmp40_39] = (tmp42_41 + 1);
+ if ((tmp42_41 >= aCircuitData[0]) && (tRedstone <= 0)) {
+ aCircuitData[4] = 0;
+ }
+ }
+ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[4] > 0) && (aCircuitData[4] <= aCircuitData[0]) ? (byte)aCircuitData[1] : (aCircuitData[1] <= 0) || (aCircuitData[1] > 15) ? (byte)aCircuitData[5] : 0), aRedstoneCircuitBlock.getOutputFacing());
+ }
+
+ public String getName()
+ {
+ return "Pulser";
+ }
+
+ public String getDescription()
+ {
+ return "Limits&Enlengths";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Length";
+ case 1:
+ return "RS Out";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex == 1)
+ {
+ if (aCircuitData[aCircuitDataIndex] == 16) {
+ return "HIGHEST";
+ }
+ if (aCircuitData[aCircuitDataIndex] == 0) {
+ return "LOWEST";
+ }
+ }
+ return aCircuitDataIndex > 1 ? "" : 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/redstonecircuits/GT_Circuit_Randomizer.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java index f382ff8ee7..c8739cbe4a 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Randomizer.java @@ -1,97 +1,97 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_Randomizer
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_Randomizer(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 1;
-/* 17:15 */ aCircuitData[4] = 0;
-/* 18: */ }
-/* 19: */
-/* 20: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 21: */ {
-/* 22:20 */ if (aCircuitData[0] < 1) {
-/* 23:20 */ aCircuitData[0] = 1;
-/* 24: */ }
-/* 25:21 */ if (aCircuitData[3] < 0) {
-/* 26:21 */ aCircuitData[3] = 0;
-/* 27: */ }
-/* 28:22 */ if (aCircuitData[3] > 1) {
-/* 29:22 */ aCircuitData[3] = 1;
-/* 30: */ }
-/* 31:23 */ if (aCircuitData[4] < 0) {
-/* 32:23 */ aCircuitData[4] = 0;
-/* 33: */ }
-/* 34: */ }
-/* 35: */
-/* 36: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 37: */ {
-/* 38:28 */ if (aCircuitData[3] == 1)
-/* 39: */ {
-/* 40:29 */ if (getAnyRedstone(aRedstoneCircuitBlock)) {
-/* 41:30 */ aCircuitData[4] += 1;
-/* 42: */ } else {
-/* 43:32 */ aCircuitData[4] = 0;
-/* 44: */ }
-/* 45: */ }
-/* 46:35 */ else if (getAnyRedstone(aRedstoneCircuitBlock)) {
-/* 47:36 */ aCircuitData[4] = 0;
-/* 48: */ } else {
-/* 49:38 */ aCircuitData[4] += 1;
-/* 50: */ }
-/* 51:42 */ if (aCircuitData[4] >= aCircuitData[0])
-/* 52: */ {
-/* 53:43 */ aCircuitData[4] = 0;
-/* 54:44 */ aRedstoneCircuitBlock.setRedstone((byte)aRedstoneCircuitBlock.getRandom(16), aRedstoneCircuitBlock.getOutputFacing());
-/* 55: */ }
-/* 56: */ }
-/* 57: */
-/* 58: */ public String getName()
-/* 59: */ {
-/* 60:50 */ return "Randomizer";
-/* 61: */ }
-/* 62: */
-/* 63: */ public String getDescription()
-/* 64: */ {
-/* 65:55 */ return "Randomizes Redstone";
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 69: */ {
-/* 70:60 */ switch (aCircuitDataIndex)
-/* 71: */ {
-/* 72: */ case 0:
-/* 73:61 */ return "Delay";
-/* 74: */ case 3:
-/* 75:62 */ return aCircuitData[aCircuitDataIndex] == 1 ? "RS => ON" : "RS => OFF";
-/* 76: */ case 4:
-/* 77:63 */ return "Status";
-/* 78: */ }
-/* 79:65 */ return "";
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 83: */ {
-/* 84:70 */ return false;
-/* 85: */ }
-/* 86: */
-/* 87: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 88: */ {
-/* 89:75 */ if (aCircuitDataIndex != 0) {
-/* 90:75 */ return "";
-/* 91: */ }
-/* 92:76 */ return null;
-/* 93: */ }
-/* 94: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_Randomizer
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_Randomizer(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 1;
+ aCircuitData[4] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 1) {
+ aCircuitData[0] = 1;
+ }
+ if (aCircuitData[3] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[3] > 1) {
+ aCircuitData[3] = 1;
+ }
+ if (aCircuitData[4] < 0) {
+ aCircuitData[4] = 0;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[3] == 1)
+ {
+ if (getAnyRedstone(aRedstoneCircuitBlock)) {
+ aCircuitData[4] += 1;
+ } else {
+ aCircuitData[4] = 0;
+ }
+ }
+ else if (getAnyRedstone(aRedstoneCircuitBlock)) {
+ aCircuitData[4] = 0;
+ } else {
+ aCircuitData[4] += 1;
+ }
+ if (aCircuitData[4] >= aCircuitData[0])
+ {
+ aCircuitData[4] = 0;
+ aRedstoneCircuitBlock.setRedstone((byte)aRedstoneCircuitBlock.getRandom(16), aRedstoneCircuitBlock.getOutputFacing());
+ }
+ }
+
+ public String getName()
+ {
+ return "Randomizer";
+ }
+
+ public String getDescription()
+ {
+ return "Randomizes Redstone";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Delay";
+ case 3:
+ return aCircuitData[aCircuitDataIndex] == 1 ? "RS => ON" : "RS => OFF";
+ case 4:
+ return "Status";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex != 0) {
+ return "";
+ }
+ return 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/redstonecircuits/GT_Circuit_RedstoneMeter.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java index d03f81f2ae..95820a3326 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_RedstoneMeter.java @@ -1,100 +1,100 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_RedstoneMeter
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_RedstoneMeter(int aIndex)
-/* 10: */ {
-/* 11: 8 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:13 */ aCircuitData[0] = 1;
-/* 17:14 */ aCircuitData[1] = 15;
-/* 18:15 */ aCircuitData[2] = 0;
-/* 19:16 */ aCircuitData[3] = 15;
-/* 20: */ }
-/* 21: */
-/* 22: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 23: */ {
-/* 24:21 */ if (aCircuitData[0] < 0) {
-/* 25:21 */ aCircuitData[0] = 0;
-/* 26: */ }
-/* 27:22 */ if (aCircuitData[0] > 15) {
-/* 28:22 */ aCircuitData[0] = 15;
-/* 29: */ }
-/* 30:23 */ if (aCircuitData[1] < 0) {
-/* 31:23 */ aCircuitData[1] = 0;
-/* 32: */ }
-/* 33:24 */ if (aCircuitData[1] > 15) {
-/* 34:24 */ aCircuitData[1] = 15;
-/* 35: */ }
-/* 36:25 */ if (aCircuitData[1] < aCircuitData[0]) {
-/* 37:25 */ aCircuitData[1] = aCircuitData[0];
-/* 38: */ }
-/* 39:26 */ if (aCircuitData[2] < 0) {
-/* 40:26 */ aCircuitData[2] = 0;
-/* 41: */ }
-/* 42:27 */ if (aCircuitData[2] > 1) {
-/* 43:27 */ aCircuitData[2] = 1;
-/* 44: */ }
-/* 45:28 */ if (aCircuitData[3] < 0) {
-/* 46:28 */ aCircuitData[3] = 0;
-/* 47: */ }
-/* 48:29 */ if (aCircuitData[3] > 15) {
-/* 49:29 */ aCircuitData[3] = 15;
-/* 50: */ }
-/* 51: */ }
-/* 52: */
-/* 53: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 54: */ {
-/* 55:34 */ byte tRedstone = getStrongestRedstone(aRedstoneCircuitBlock);
-/* 56:35 */ aRedstoneCircuitBlock.setRedstone((byte)(((tRedstone >= aCircuitData[0]) && (tRedstone <= aCircuitData[1]) ? 1 : 0) != (aCircuitData[2] != 0 ? 1 : 0) ? (byte)aCircuitData[3] : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 57: */ }
-/* 58: */
-/* 59: */ public String getName()
-/* 60: */ {
-/* 61:40 */ return "Redstone Meter";
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getDescription()
-/* 65: */ {
-/* 66:45 */ return "Checks Boundaries";
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 70: */ {
-/* 71:50 */ switch (aCircuitDataIndex)
-/* 72: */ {
-/* 73: */ case 0:
-/* 74:51 */ return "Lower";
-/* 75: */ case 1:
-/* 76:52 */ return "Upper";
-/* 77: */ case 2:
-/* 78:53 */ return "Invert:";
-/* 79: */ case 3:
-/* 80:54 */ return "RS Out:";
-/* 81: */ }
-/* 82:56 */ return "";
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 86: */ {
-/* 87:61 */ return false;
-/* 88: */ }
-/* 89: */
-/* 90: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 91: */ {
-/* 92:66 */ if (aCircuitDataIndex == 2) {
-/* 93:66 */ return aCircuitData[2] == 0 ? "OFF" : "ON";
-/* 94: */ }
-/* 95:67 */ return null;
-/* 96: */ }
-/* 97: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_RedstoneMeter
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_RedstoneMeter(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 1;
+ aCircuitData[1] = 15;
+ aCircuitData[2] = 0;
+ aCircuitData[3] = 15;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 0) {
+ aCircuitData[0] = 0;
+ }
+ if (aCircuitData[0] > 15) {
+ aCircuitData[0] = 15;
+ }
+ if (aCircuitData[1] < 0) {
+ aCircuitData[1] = 0;
+ }
+ if (aCircuitData[1] > 15) {
+ aCircuitData[1] = 15;
+ }
+ if (aCircuitData[1] < aCircuitData[0]) {
+ aCircuitData[1] = aCircuitData[0];
+ }
+ if (aCircuitData[2] < 0) {
+ aCircuitData[2] = 0;
+ }
+ if (aCircuitData[2] > 1) {
+ aCircuitData[2] = 1;
+ }
+ if (aCircuitData[3] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[3] > 15) {
+ aCircuitData[3] = 15;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ byte tRedstone = getStrongestRedstone(aRedstoneCircuitBlock);
+ aRedstoneCircuitBlock.setRedstone((byte)(((tRedstone >= aCircuitData[0]) && (tRedstone <= aCircuitData[1]) ? 1 : 0) != (aCircuitData[2] != 0 ? 1 : 0) ? (byte)aCircuitData[3] : 0), aRedstoneCircuitBlock.getOutputFacing());
+ }
+
+ public String getName()
+ {
+ return "Redstone Meter";
+ }
+
+ public String getDescription()
+ {
+ return "Checks Boundaries";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Lower";
+ case 1:
+ return "Upper";
+ case 2:
+ return "Invert:";
+ case 3:
+ return "RS Out:";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex == 2) {
+ return aCircuitData[2] == 0 ? "OFF" : "ON";
+ }
+ return 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/redstonecircuits/GT_Circuit_Repeater.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Repeater.java index 85717ccd65..a5267b0bfb 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_Repeater.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Repeater.java @@ -1,100 +1,100 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_Repeater
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_Repeater(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 1;
-/* 17:15 */ aCircuitData[4] = 0;
-/* 18:16 */ aCircuitData[5] = -1;
-/* 19: */ }
-/* 20: */
-/* 21: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 22: */ {
-/* 23:21 */ if (aCircuitData[0] < 1) {
-/* 24:21 */ aCircuitData[0] = 1;
-/* 25: */ }
-/* 26:22 */ if (aCircuitData[4] < 0) {
-/* 27:22 */ aCircuitData[4] = 0;
-/* 28: */ }
-/* 29:23 */ if (aCircuitData[5] < -1) {
-/* 30:23 */ aCircuitData[5] = -1;
-/* 31: */ }
-/* 32: */ }
-/* 33: */
-/* 34: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 35: */ {
-/* 36:28 */ if (getAnyRedstone(aRedstoneCircuitBlock))
-/* 37: */ {
-/* 38:29 */ aCircuitData[4] += 1;
-/* 39:30 */ if (aCircuitData[5] < 0) {
-/* 40:31 */ aCircuitData[5] = 0;
-/* 41: */ }
-/* 42: */ }
-/* 43:34 */ if ((aCircuitData[5] >= 0) && (aCircuitData[5] < aCircuitData[0])) {
-/* 44:35 */ aCircuitData[5] += 1;
-/* 45: */ }
-/* 46:37 */ if (aCircuitData[4] > 0)
-/* 47: */ {
-/* 48:38 */ if (aCircuitData[5] >= aCircuitData[0])
-/* 49: */ {
-/* 50:39 */ aCircuitData[4] -= 1;
-/* 51:40 */ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
-/* 52: */ }
-/* 53: */ else
-/* 54: */ {
-/* 55:42 */ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
-/* 56: */ }
-/* 57: */ }
-/* 58: */ else
-/* 59: */ {
-/* 60:45 */ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
-/* 61:46 */ aCircuitData[5] = -1;
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public String getName()
-/* 66: */ {
-/* 67:52 */ return "Repeater";
-/* 68: */ }
-/* 69: */
-/* 70: */ public String getDescription()
-/* 71: */ {
-/* 72:57 */ return "Delays RS-Signal";
-/* 73: */ }
-/* 74: */
-/* 75: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 76: */ {
-/* 77:62 */ switch (aCircuitDataIndex)
-/* 78: */ {
-/* 79: */ case 0:
-/* 80:63 */ return "Delay";
-/* 81: */ }
-/* 82:65 */ return "";
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* 86: */ {
-/* 87:70 */ return false;
-/* 88: */ }
-/* 89: */
-/* 90: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* 91: */ {
-/* 92:75 */ if (aCircuitDataIndex > 0) {
-/* 93:75 */ return "";
-/* 94: */ }
-/* 95:76 */ return null;
-/* 96: */ }
-/* 97: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_Repeater
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_Repeater(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 1;
+ aCircuitData[4] = 0;
+ aCircuitData[5] = -1;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 1) {
+ aCircuitData[0] = 1;
+ }
+ if (aCircuitData[4] < 0) {
+ aCircuitData[4] = 0;
+ }
+ if (aCircuitData[5] < -1) {
+ aCircuitData[5] = -1;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (getAnyRedstone(aRedstoneCircuitBlock))
+ {
+ aCircuitData[4] += 1;
+ if (aCircuitData[5] < 0) {
+ aCircuitData[5] = 0;
+ }
+ }
+ if ((aCircuitData[5] >= 0) && (aCircuitData[5] < aCircuitData[0])) {
+ aCircuitData[5] += 1;
+ }
+ if (aCircuitData[4] > 0)
+ {
+ if (aCircuitData[5] >= aCircuitData[0])
+ {
+ aCircuitData[4] -= 1;
+ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
+ }
+ else
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
+ }
+ }
+ else
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
+ aCircuitData[5] = -1;
+ }
+ }
+
+ public String getName()
+ {
+ return "Repeater";
+ }
+
+ public String getDescription()
+ {
+ return "Delays RS-Signal";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Delay";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex > 0) {
+ return "";
+ }
+ return 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/redstonecircuits/GT_Circuit_Timer.java b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java index 0018f125d1..38c4114992 100644 --- a/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java +++ b/main/java/gregtech/common/redstonecircuits/GT_Circuit_Timer.java @@ -1,127 +1,127 @@ -/* 1: */ package gregtech.common.redstonecircuits;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IRedstoneCircuitBlock;
-/* 4: */ import gregtech.api.util.GT_CircuitryBehavior;
-/* 5: */
-/* 6: */ public class GT_Circuit_Timer
-/* 7: */ extends GT_CircuitryBehavior
-/* 8: */ {
-/* 9: */ public GT_Circuit_Timer(int aIndex)
-/* 10: */ {
-/* 11: 9 */ super(aIndex);
-/* 12: */ }
-/* 13: */
-/* 14: */ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 15: */ {
-/* 16:14 */ aCircuitData[0] = 2;
-/* 17:15 */ aCircuitData[1] = 1;
-/* 18:16 */ aCircuitData[2] = 2;
-/* 19:17 */ aCircuitData[4] = 0;
-/* 20: */ }
-/* 21: */
-/* 22: */ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 23: */ {
-/* 24:22 */ if (aCircuitData[0] < 2) {
-/* 25:22 */ aCircuitData[0] = 2;
-/* 26: */ }
-/* 27:23 */ if (aCircuitData[1] < 1) {
-/* 28:23 */ aCircuitData[1] = 1;
-/* 29: */ }
-/* 30:24 */ if (aCircuitData[2] < 2) {
-/* 31:24 */ aCircuitData[2] = 2;
-/* 32: */ }
-/* 33:25 */ if (aCircuitData[3] < 0) {
-/* 34:25 */ aCircuitData[3] = 0;
-/* 35: */ }
-/* 36:26 */ if (aCircuitData[3] > 1) {
-/* 37:26 */ aCircuitData[3] = 1;
-/* 38: */ }
-/* 39:27 */ if (aCircuitData[4] < 0) {
-/* 40:27 */ aCircuitData[4] = 0;
-/* 41: */ }
-/* 42: */ }
-/* 43: */
-/* 44: */ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
-/* 45: */ {
-/* 46:32 */ if (aCircuitData[3] == 1)
-/* 47: */ {
-/* 48:33 */ if (getAnyRedstone(aRedstoneCircuitBlock)) {
-/* 49:34 */ aCircuitData[4] += 1;
-/* 50: */ } else {
-/* 51:36 */ aCircuitData[4] = 0;
-/* 52: */ }
-/* 53: */ }
-/* 54:39 */ else if (getAnyRedstone(aRedstoneCircuitBlock)) {
-/* 55:40 */ aCircuitData[4] = 0;
-/* 56: */ } else {
-/* 57:42 */ aCircuitData[4] += 1;
-/* 58: */ }
-/* 59:46 */ if (aCircuitData[4] >= aCircuitData[0])
-/* 60: */ {
-/* 61:47 */ if (aCircuitData[1] > 1)
-/* 62: */ {
-/* 63:48 */ if (aCircuitData[4] >= aCircuitData[0] + (aCircuitData[1] - 1) * aCircuitData[2])
-/* 64: */ {
-/* 65:49 */ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
-/* 66:50 */ aCircuitData[4] = 0;
-/* 67: */ }
-/* 68: */ else
-/* 69: */ {
-/* 70:52 */ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[4] - aCircuitData[0]) % aCircuitData[2] == 0 ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
-/* 71: */ }
-/* 72: */ }
-/* 73: */ else
-/* 74: */ {
-/* 75:55 */ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
-/* 76:56 */ aCircuitData[4] = 0;
-/* 77: */ }
-/* 78: */ }
-/* 79: */ else {
-/* 80:59 */ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
-/* 81: */ }
-/* 82: */ }
-/* 83: */
-/* 84: */ public String getName()
-/* 85: */ {
-/* 86:65 */ return "Timer";
-/* 87: */ }
-/* 88: */
-/* 89: */ public String getDescription()
-/* 90: */ {
-/* 91:70 */ return "Pulses Redstone";
-/* 92: */ }
-/* 93: */
-/* 94: */ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
-/* 95: */ {
-/* 96:75 */ switch (aCircuitDataIndex)
-/* 97: */ {
-/* 98: */ case 0:
-/* 99:76 */ return "Delay";
-/* :0: */ case 1:
-/* :1:77 */ return "Pulses";
-/* :2: */ case 2:
-/* :3:78 */ return "Length";
-/* :4: */ case 3:
-/* :5:79 */ return aCircuitData[aCircuitDataIndex] == 1 ? "RS => ON" : "RS => OFF";
-/* :6: */ case 4:
-/* :7:80 */ return "Time";
-/* :8: */ }
-/* :9:82 */ return "";
-/* ;0: */ }
-/* ;1: */
-/* ;2: */ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
-/* ;3: */ {
-/* ;4:87 */ return false;
-/* ;5: */ }
-/* ;6: */
-/* ;7: */ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
-/* ;8: */ {
-/* ;9:92 */ if (aCircuitDataIndex == 3) {
-/* <0:92 */ return "";
-/* <1: */ }
-/* <2:93 */ return null;
-/* <3: */ }
-/* <4: */ }
+package gregtech.common.redstonecircuits;
+
+import gregtech.api.interfaces.IRedstoneCircuitBlock;
+import gregtech.api.util.GT_CircuitryBehavior;
+
+public class GT_Circuit_Timer
+ extends GT_CircuitryBehavior
+{
+ public GT_Circuit_Timer(int aIndex)
+ {
+ super(aIndex);
+ }
+
+ public void initParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ aCircuitData[0] = 2;
+ aCircuitData[1] = 1;
+ aCircuitData[2] = 2;
+ aCircuitData[4] = 0;
+ }
+
+ public void validateParameters(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[0] < 2) {
+ aCircuitData[0] = 2;
+ }
+ if (aCircuitData[1] < 1) {
+ aCircuitData[1] = 1;
+ }
+ if (aCircuitData[2] < 2) {
+ aCircuitData[2] = 2;
+ }
+ if (aCircuitData[3] < 0) {
+ aCircuitData[3] = 0;
+ }
+ if (aCircuitData[3] > 1) {
+ aCircuitData[3] = 1;
+ }
+ if (aCircuitData[4] < 0) {
+ aCircuitData[4] = 0;
+ }
+ }
+
+ public void onTick(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock)
+ {
+ if (aCircuitData[3] == 1)
+ {
+ if (getAnyRedstone(aRedstoneCircuitBlock)) {
+ aCircuitData[4] += 1;
+ } else {
+ aCircuitData[4] = 0;
+ }
+ }
+ else if (getAnyRedstone(aRedstoneCircuitBlock)) {
+ aCircuitData[4] = 0;
+ } else {
+ aCircuitData[4] += 1;
+ }
+ if (aCircuitData[4] >= aCircuitData[0])
+ {
+ if (aCircuitData[1] > 1)
+ {
+ if (aCircuitData[4] >= aCircuitData[0] + (aCircuitData[1] - 1) * aCircuitData[2])
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
+ aCircuitData[4] = 0;
+ }
+ else
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)((aCircuitData[4] - aCircuitData[0]) % aCircuitData[2] == 0 ? 15 : 0), aRedstoneCircuitBlock.getOutputFacing());
+ }
+ }
+ else
+ {
+ aRedstoneCircuitBlock.setRedstone((byte)15, aRedstoneCircuitBlock.getOutputFacing());
+ aCircuitData[4] = 0;
+ }
+ }
+ else {
+ aRedstoneCircuitBlock.setRedstone((byte)0, aRedstoneCircuitBlock.getOutputFacing());
+ }
+ }
+
+ public String getName()
+ {
+ return "Timer";
+ }
+
+ public String getDescription()
+ {
+ return "Pulses Redstone";
+ }
+
+ public String getDataDescription(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ switch (aCircuitDataIndex)
+ {
+ case 0:
+ return "Delay";
+ case 1:
+ return "Pulses";
+ case 2:
+ return "Length";
+ case 3:
+ return aCircuitData[aCircuitDataIndex] == 1 ? "RS => ON" : "RS => OFF";
+ case 4:
+ return "Time";
+ }
+ return "";
+ }
+
+ public boolean displayItemStack(int[] aCircuitData, IRedstoneCircuitBlock aRedstoneCircuitBlock, int aIndex)
+ {
+ return false;
+ }
+
+ public String getDataDisplay(int[] aCircuitData, int aCircuitDataIndex)
+ {
+ if (aCircuitDataIndex == 3) {
+ return "";
+ }
+ return 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/render/GT_CapeRenderer.java b/main/java/gregtech/common/render/GT_CapeRenderer.java index efa384aa59..712399f163 100644 --- a/main/java/gregtech/common/render/GT_CapeRenderer.java +++ b/main/java/gregtech/common/render/GT_CapeRenderer.java @@ -1,108 +1,108 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import gregtech.api.enums.GT_Values;
-/* 4: */ import gregtech.api.util.GT_Log;
-/* 5: */ import gregtech.api.util.GT_Utility;
+package gregtech.common.render;
-/* 6: */ import java.util.Collection;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.client.entity.AbstractClientPlayer;
-/* 8: */ import net.minecraft.client.model.ModelBiped;
-/* 9: */ import net.minecraft.client.renderer.entity.RenderManager;
-/* 10: */ import net.minecraft.client.renderer.entity.RenderPlayer;
-/* 11: */ import net.minecraft.potion.Potion;
-/* 12: */ import net.minecraft.util.MathHelper;
-/* 13: */ import net.minecraft.util.ResourceLocation;
+import java.util.Collection;
+
+import net.minecraft.client.entity.AbstractClientPlayer;
+import net.minecraft.client.model.ModelBiped;
+import net.minecraft.client.renderer.entity.RenderManager;
+import net.minecraft.client.renderer.entity.RenderPlayer;
+import net.minecraft.potion.Potion;
+import net.minecraft.util.MathHelper;
+import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.RenderPlayerEvent;
-/* 14: */ import net.minecraftforge.client.event.RenderPlayerEvent.Specials.Pre;
+import net.minecraftforge.client.event.RenderPlayerEvent.Specials.Pre;
+
+import org.lwjgl.opengl.GL11;
-/* 15: */ import org.lwjgl.opengl.GL11;
-/* 16: */
-/* 17: */ public class GT_CapeRenderer
-/* 18: */ extends RenderPlayer
-/* 19: */ {
-/* 20:22 */ private final ResourceLocation[] mCapes = { new ResourceLocation("gregtech:textures/BrainTechCape.png"), new ResourceLocation("gregtech:textures/GregTechCape.png"), new ResourceLocation("gregtech:textures/MrBrainCape.png"), new ResourceLocation("gregtech:textures/GregoriusCape.png") };
-/* 21: */ private final Collection<String> mCapeList;
-/* 22: */
-/* 23: */ public GT_CapeRenderer(Collection<String> aCapeList)
-/* 24: */ {
-/* 25:26 */ this.mCapeList = aCapeList;
-/* 26:27 */ setRenderManager(RenderManager.instance);
-/* 27: */ }
-/* 28: */
-/* 29: */ public void receiveRenderSpecialsEvent(RenderPlayerEvent.Specials.Pre aEvent)
-/* 30: */ {
-/* 31:31 */ AbstractClientPlayer aPlayer = (AbstractClientPlayer)aEvent.entityPlayer;
-/* 32:32 */ if (GT_Utility.getFullInvisibility(aPlayer))
-/* 33: */ {
-/* 34:32 */ aEvent.setCanceled(true);return;
-/* 35: */ }
-/* 36:33 */ float aPartialTicks = aEvent.partialRenderTick;
-/* 37:35 */ if (aPlayer.isInvisible()) {
-/* 38:35 */ return;
-/* 39: */ }
-/* 40:36 */ if (GT_Utility.getPotion(aPlayer, Integer.valueOf(Potion.invisibility.id).intValue())) {
-/* 41:36 */ return;
-/* 42: */ }
-/* 43: */ try
-/* 44: */ {
-/* 45:39 */ ResourceLocation tResource = null;
-/* 46:41 */ if (aPlayer.getDisplayName().equalsIgnoreCase("Friedi4321")) {
-/* 47:41 */ tResource = this.mCapes[0];
-/* 48: */ }
-/* 49:42 */ if (this.mCapeList.contains(aPlayer.getDisplayName().toLowerCase())) {
-/* 50:42 */ tResource = this.mCapes[1];
-/* 51: */ }
-/* 52:43 */ if (aPlayer.getDisplayName().equalsIgnoreCase("Mr_Brain")) {
-/* 53:43 */ tResource = this.mCapes[2];
-/* 54: */ }
-/* 55:44 */ if (aPlayer.getDisplayName().equalsIgnoreCase("GregoriusT")) {
-/* 56:44 */ tResource = this.mCapes[3];
-/* 57: */ }
-/* 58:46 */ if ((tResource != null) && (!aPlayer.getHideCape()))
-/* 59: */ {
-/* 60:47 */ bindTexture(tResource);
-/* 61:48 */ GL11.glPushMatrix();
-/* 62:49 */ GL11.glTranslatef(0.0F, 0.0F, 0.125F);
-/* 63:50 */ double d0 = aPlayer.field_71091_bM + (aPlayer.field_71094_bP - aPlayer.field_71091_bM) * aPartialTicks - (aPlayer.prevPosX + (aPlayer.posX - aPlayer.prevPosX) * aPartialTicks);
-/* 64:51 */ double d1 = aPlayer.field_71096_bN + (aPlayer.field_71095_bQ - aPlayer.field_71096_bN) * aPartialTicks - (aPlayer.prevPosY + (aPlayer.posY - aPlayer.prevPosY) * aPartialTicks);
-/* 65:52 */ double d2 = aPlayer.field_71097_bO + (aPlayer.field_71085_bR - aPlayer.field_71097_bO) * aPartialTicks - (aPlayer.prevPosZ + (aPlayer.posZ - aPlayer.prevPosZ) * aPartialTicks);
-/* 66:53 */ float f6 = aPlayer.prevRenderYawOffset + (aPlayer.renderYawOffset - aPlayer.prevRenderYawOffset) * aPartialTicks;
-/* 67:54 */ double d3 = MathHelper.sin(f6 * 3.141593F / 180.0F);
-/* 68:55 */ double d4 = -MathHelper.cos(f6 * 3.141593F / 180.0F);
-/* 69:56 */ float f7 = (float)d1 * 10.0F;
-/* 70:57 */ float f8 = (float)(d0 * d3 + d2 * d4) * 100.0F;
-/* 71:58 */ float f9 = (float)(d0 * d4 - d2 * d3) * 100.0F;
-/* 72:59 */ if (f7 < -6.0F) {
-/* 73:59 */ f7 = -6.0F;
-/* 74: */ }
-/* 75:60 */ if (f7 > 32.0F) {
-/* 76:60 */ f7 = 32.0F;
-/* 77: */ }
-/* 78:61 */ if (f8 < 0.0F) {
-/* 79:61 */ f8 = 0.0F;
-/* 80: */ }
-/* 81:62 */ float f10 = aPlayer.prevCameraYaw + (aPlayer.cameraYaw - aPlayer.prevCameraYaw) * aPartialTicks;
-/* 82:63 */ f7 += MathHelper.sin((aPlayer.prevDistanceWalkedModified + (aPlayer.distanceWalkedModified - aPlayer.prevDistanceWalkedModified) * aPartialTicks) * 6.0F) * 32.0F * f10;
-/* 83:64 */ if (aPlayer.isSneaking()) {
-/* 84:65 */ f7 += 25.0F;
-/* 85: */ }
-/* 86:67 */ GL11.glRotatef(6.0F + f8 / 2.0F + f7, 1.0F, 0.0F, 0.0F);
-/* 87:68 */ GL11.glRotatef(f9 / 2.0F, 0.0F, 0.0F, 1.0F);
-/* 88:69 */ GL11.glRotatef(-f9 / 2.0F, 0.0F, 1.0F, 0.0F);
-/* 89:70 */ GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
-/* 90:71 */ ((ModelBiped)this.mainModel).renderCloak(0.0625F);
-/* 91:72 */ GL11.glPopMatrix();
-/* 92: */ }
-/* 93: */ }
-/* 94: */ catch (Throwable e)
-/* 95: */ {
-/* 96:75 */ if (GT_Values.D1) {
-/* 97:75 */ e.printStackTrace(GT_Log.err);
-/* 98: */ }
-/* 99: */ }
-/* :0: */ }
-/* :1: */ }
+public class GT_CapeRenderer
+ extends RenderPlayer
+{
+ private final ResourceLocation[] mCapes = { new ResourceLocation("gregtech:textures/BrainTechCape.png"), new ResourceLocation("gregtech:textures/GregTechCape.png"), new ResourceLocation("gregtech:textures/MrBrainCape.png"), new ResourceLocation("gregtech:textures/GregoriusCape.png") };
+ private final Collection<String> mCapeList;
+
+ public GT_CapeRenderer(Collection<String> aCapeList)
+ {
+ this.mCapeList = aCapeList;
+ setRenderManager(RenderManager.instance);
+ }
+
+ public void receiveRenderSpecialsEvent(RenderPlayerEvent.Specials.Pre aEvent)
+ {
+ AbstractClientPlayer aPlayer = (AbstractClientPlayer)aEvent.entityPlayer;
+ if (GT_Utility.getFullInvisibility(aPlayer))
+ {
+ aEvent.setCanceled(true);return;
+ }
+ float aPartialTicks = aEvent.partialRenderTick;
+ if (aPlayer.isInvisible()) {
+ return;
+ }
+ if (GT_Utility.getPotion(aPlayer, Integer.valueOf(Potion.invisibility.id).intValue())) {
+ return;
+ }
+ try
+ {
+ ResourceLocation tResource = null;
+ if (aPlayer.getDisplayName().equalsIgnoreCase("Friedi4321")) {
+ tResource = this.mCapes[0];
+ }
+ if (this.mCapeList.contains(aPlayer.getDisplayName().toLowerCase())) {
+ tResource = this.mCapes[1];
+ }
+ if (aPlayer.getDisplayName().equalsIgnoreCase("Mr_Brain")) {
+ tResource = this.mCapes[2];
+ }
+ if (aPlayer.getDisplayName().equalsIgnoreCase("GregoriusT")) {
+ tResource = this.mCapes[3];
+ }
+ if ((tResource != null) && (!aPlayer.getHideCape()))
+ {
+ bindTexture(tResource);
+ GL11.glPushMatrix();
+ GL11.glTranslatef(0.0F, 0.0F, 0.125F);
+ double d0 = aPlayer.field_71091_bM + (aPlayer.field_71094_bP - aPlayer.field_71091_bM) * aPartialTicks - (aPlayer.prevPosX + (aPlayer.posX - aPlayer.prevPosX) * aPartialTicks);
+ double d1 = aPlayer.field_71096_bN + (aPlayer.field_71095_bQ - aPlayer.field_71096_bN) * aPartialTicks - (aPlayer.prevPosY + (aPlayer.posY - aPlayer.prevPosY) * aPartialTicks);
+ double d2 = aPlayer.field_71097_bO + (aPlayer.field_71085_bR - aPlayer.field_71097_bO) * aPartialTicks - (aPlayer.prevPosZ + (aPlayer.posZ - aPlayer.prevPosZ) * aPartialTicks);
+ float f6 = aPlayer.prevRenderYawOffset + (aPlayer.renderYawOffset - aPlayer.prevRenderYawOffset) * aPartialTicks;
+ double d3 = MathHelper.sin(f6 * 3.141593F / 180.0F);
+ double d4 = -MathHelper.cos(f6 * 3.141593F / 180.0F);
+ float f7 = (float)d1 * 10.0F;
+ float f8 = (float)(d0 * d3 + d2 * d4) * 100.0F;
+ float f9 = (float)(d0 * d4 - d2 * d3) * 100.0F;
+ if (f7 < -6.0F) {
+ f7 = -6.0F;
+ }
+ if (f7 > 32.0F) {
+ f7 = 32.0F;
+ }
+ if (f8 < 0.0F) {
+ f8 = 0.0F;
+ }
+ float f10 = aPlayer.prevCameraYaw + (aPlayer.cameraYaw - aPlayer.prevCameraYaw) * aPartialTicks;
+ f7 += MathHelper.sin((aPlayer.prevDistanceWalkedModified + (aPlayer.distanceWalkedModified - aPlayer.prevDistanceWalkedModified) * aPartialTicks) * 6.0F) * 32.0F * f10;
+ if (aPlayer.isSneaking()) {
+ f7 += 25.0F;
+ }
+ GL11.glRotatef(6.0F + f8 / 2.0F + f7, 1.0F, 0.0F, 0.0F);
+ GL11.glRotatef(f9 / 2.0F, 0.0F, 0.0F, 1.0F);
+ GL11.glRotatef(-f9 / 2.0F, 0.0F, 1.0F, 0.0F);
+ GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
+ ((ModelBiped)this.mainModel).renderCloak(0.0625F);
+ GL11.glPopMatrix();
+ }
+ }
+ catch (Throwable e)
+ {
+ if (GT_Values.D1) {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ }
+}
/* 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/render/GT_MetaGenerated_Item_Renderer.java b/main/java/gregtech/common/render/GT_MetaGenerated_Item_Renderer.java index 1c17737cc5..10e7e9c601 100644 --- a/main/java/gregtech/common/render/GT_MetaGenerated_Item_Renderer.java +++ b/main/java/gregtech/common/render/GT_MetaGenerated_Item_Renderer.java @@ -1,187 +1,187 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.IIconContainer;
-/* 4: */ import gregtech.api.items.GT_MetaGenerated_Item;
-/* 5: */ import gregtech.api.util.GT_Utility;
-/* 6: */ import java.util.Collection;
-/* 7: */ import java.util.HashMap;
-/* 8: */ import java.util.Iterator;
-/* 9: */ import net.minecraft.client.Minecraft;
-/* 10: */ import net.minecraft.client.renderer.ItemRenderer;
-/* 11: */ import net.minecraft.client.renderer.Tessellator;
-/* 12: */ import net.minecraft.client.renderer.entity.RenderItem;
-/* 13: */ import net.minecraft.client.renderer.texture.TextureManager;
-/* 14: */ import net.minecraft.client.renderer.texture.TextureMap;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.util.IIcon;
-/* 17: */ import net.minecraftforge.client.IItemRenderer;
-/* 18: */ import net.minecraftforge.client.IItemRenderer.ItemRenderType;
-/* 19: */ import net.minecraftforge.client.IItemRenderer.ItemRendererHelper;
-/* 20: */ import net.minecraftforge.client.MinecraftForgeClient;
-/* 21: */ import net.minecraftforge.fluids.Fluid;
-/* 22: */ import net.minecraftforge.fluids.FluidStack;
-/* 23: */ import org.lwjgl.opengl.GL11;
-/* 24: */
-/* 25: */ public class GT_MetaGenerated_Item_Renderer
-/* 26: */ implements IItemRenderer
-/* 27: */ {
-/* 28: */ public GT_MetaGenerated_Item_Renderer()
-/* 29: */ {
-/* 30: */ GT_MetaGenerated_Item tItem;
-/* 31: 21 */ for (Iterator i$ = GT_MetaGenerated_Item.sInstances.values().iterator(); i$.hasNext(); MinecraftForgeClient.registerItemRenderer(tItem, this))
-/* 32: */ {
-/* 33: 21 */ tItem = (GT_MetaGenerated_Item)i$.next();
-/* 34: 21 */ if ((tItem == null) || (!tItem.useStandardMetaItemRenderer())) {}
-/* 35: */ }
-/* 36: */ }
-/* 37: */
-/* 38: */ public boolean handleRenderType(ItemStack aStack, IItemRenderer.ItemRenderType aType)
-/* 39: */ {
-/* 40: 26 */ if ((GT_Utility.isStackInvalid(aStack)) || (aStack.getItemDamage() < 0)) {
-/* 41: 26 */ return false;
-/* 42: */ }
-/* 43: 27 */ return (aType == IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) || (aType == IItemRenderer.ItemRenderType.INVENTORY) || (aType == IItemRenderer.ItemRenderType.EQUIPPED) || (aType == IItemRenderer.ItemRenderType.ENTITY);
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, IItemRenderer.ItemRendererHelper aHelper)
-/* 47: */ {
-/* 48: 32 */ if (GT_Utility.isStackInvalid(aStack)) {
-/* 49: 32 */ return false;
-/* 50: */ }
-/* 51: 33 */ return aType == IItemRenderer.ItemRenderType.ENTITY;
-/* 52: */ }
-/* 53: */
-/* 54: */ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack aStack, Object... data)
-/* 55: */ {
-/* 56: 38 */ if (GT_Utility.isStackInvalid(aStack)) {
-/* 57: 38 */ return;
-/* 58: */ }
-/* 59: 39 */ short aMetaData = (short)aStack.getItemDamage();
-/* 60: 40 */ if (aMetaData < 0) {
-/* 61: 40 */ return;
-/* 62: */ }
-/* 63: 41 */ GT_MetaGenerated_Item aItem = (GT_MetaGenerated_Item)aStack.getItem();
-/* 64: */
-/* 65: */
-/* 66: 44 */ GL11.glEnable(3042);
-/* 67: 46 */ if (type == IItemRenderer.ItemRenderType.ENTITY) {
-/* 68: 47 */ if (RenderItem.renderInFrame)
-/* 69: */ {
-/* 70: 48 */ GL11.glScalef(0.85F, 0.85F, 0.85F);
-/* 71: 49 */ GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
-/* 72: 50 */ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
-/* 73: */ }
-/* 74: */ else
-/* 75: */ {
-/* 76: 52 */ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
-/* 77: */ }
-/* 78: */ }
-/* 79: 56 */ GL11.glColor3f(1.0F, 1.0F, 1.0F);
-/* 80: 58 */ if (aMetaData < aItem.mOffset)
-/* 81: */ {
-/* 82: 59 */ IIconContainer aIcon = aItem.getIconContainer(aMetaData);
-/* 83: 60 */ IIcon tOverlay = null;IIcon tFluidIcon = null;
-/* 84: */ IIcon tIcon;
-/* 86: 61 */ if (aIcon == null)
-/* 87: */ {
-/* 88: 62 */ tIcon = aStack.getIconIndex();
-/* 89: */ }
-/* 90: */ else
-/* 91: */ {
-/* 92: 64 */ tIcon = aIcon.getIcon();
-/* 93: 65 */ tOverlay = aIcon.getOverlayIcon();
-/* 94: */ }
-/* 95: 67 */ if (tIcon == null) {
-/* 96: 67 */ return;
-/* 97: */ }
-/* 98: 68 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(aStack, true);
-/* 99: 69 */ if ((tOverlay != null) && (tFluid != null) && (tFluid.getFluid() != null)) {
-/* 100: 69 */ tFluidIcon = tFluid.getFluid().getIcon(tFluid);
-/* 101: */ }
-/* 102: 70 */ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
-/* 103: 71 */ GL11.glBlendFunc(770, 771);
-/* 104: 72 */ if (tFluidIcon == null)
-/* 105: */ {
-/* 106: 73 */ short[] tModulation = aItem.getRGBa(aStack);
-/* 107: 74 */ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
-/* 108: */ }
-/* 109: 76 */ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 110: 76 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 111: */ } else {
-/* 112: 76 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 113: */ }
-/* 114: 77 */ if (tFluidIcon != null)
-/* 115: */ {
-/* 116: 78 */ assert (tFluid != null);
-/* 117: 79 */ int tColor = tFluid.getFluid().getColor(tFluid);
-/* 118: 80 */ GL11.glColor3f((tColor >> 16 & 0xFF) / 255.0F, (tColor >> 8 & 0xFF) / 255.0F, (tColor & 0xFF) / 255.0F);
-/* 119: 81 */ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
-/* 120: 82 */ GL11.glBlendFunc(770, 771);
-/* 121: 83 */ GL11.glDepthFunc(514);
-/* 122: 84 */ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 123: 84 */ GT_RenderUtil.renderItemIcon(tFluidIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 124: */ } else {
-/* 125: 84 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tFluidIcon.getMaxU(), tFluidIcon.getMinV(), tFluidIcon.getMinU(), tFluidIcon.getMaxV(), tFluidIcon.getIconWidth(), tFluidIcon.getIconHeight(), 0.0625F);
-/* 126: */ }
-/* 127: 85 */ GL11.glDepthFunc(515);
-/* 128: */ }
-/* 129: 87 */ GL11.glColor3f(1.0F, 1.0F, 1.0F);
-/* 130: 88 */ if (tOverlay != null)
-/* 131: */ {
-/* 132: 89 */ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
-/* 133: 90 */ GL11.glBlendFunc(770, 771);
-/* 134: 91 */ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 135: 91 */ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 136: */ } else {
-/* 137: 91 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
-/* 141: */ else
-/* 142: */ {
-/* 143: */ IIcon tIcon;
-/* 145: 94 */ if (aItem.mIconList[(aMetaData - aItem.mOffset)].length > 1)
-/* 146: */ {
-/* 147: 95 */ Long[] tStats = (Long[])aItem.mElectricStats.get(Short.valueOf(aMetaData));
-/* 148: */
-/* 149: 96 */ if ((tStats != null) && (tStats[3].longValue() < 0L))
-/* 150: */ {
-/* 151: 97 */ long tCharge = aItem.getRealCharge(aStack);
-/* 152: */
-/* 153: 98 */ if (tCharge <= 0L)
-/* 154: */ {
-/* 155: 99 */ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][1];
-/* 156: */ }
-/* 157: */ else
-/* 158: */ {
-/* 159: */
-/* 160:100 */ if (tCharge >= tStats[0].longValue()) {
-/* 161:101 */ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][8];
-/* 162: */ } else {
-/* 163:103 */ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][(7 - (int)java.lang.Math.max(0L, java.lang.Math.min(5L, (tStats[0].longValue() - tCharge) * 6L / tStats[0].longValue())))];
-/* 164: */ }
-/* 165: */ }
-/* 166: */ }
-/* 167: */ else
-/* 168: */ {
-/* 169:105 */ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][0];
-/* 170: */ }
-/* 171: */ }
-/* 172: */ else
-/* 173: */ {
-/* 174:108 */ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][0];
-/* 175: */ }
-/* 176:110 */ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
-/* 177:111 */ GL11.glBlendFunc(770, 771);
-/* 178:112 */ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 179:112 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 180: */ } else {
-/* 181:112 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 182: */ }
-/* 183: */ }
-/* 184:115 */ GL11.glDisable(3042);
-/* 185: */ }
-/* 186: */ }
+package gregtech.common.render;
+
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Item;
+import gregtech.api.util.GT_Utility;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.client.renderer.texture.TextureManager;
+import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import net.minecraftforge.client.IItemRenderer.ItemRenderType;
+import net.minecraftforge.client.IItemRenderer.ItemRendererHelper;
+import net.minecraftforge.client.MinecraftForgeClient;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidStack;
+import org.lwjgl.opengl.GL11;
+
+public class GT_MetaGenerated_Item_Renderer
+ implements IItemRenderer
+{
+ public GT_MetaGenerated_Item_Renderer()
+ {
+ GT_MetaGenerated_Item tItem;
+ for (Iterator i$ = GT_MetaGenerated_Item.sInstances.values().iterator(); i$.hasNext(); MinecraftForgeClient.registerItemRenderer(tItem, this))
+ {
+ tItem = (GT_MetaGenerated_Item)i$.next();
+ if ((tItem == null) || (!tItem.useStandardMetaItemRenderer())) {}
+ }
+ }
+
+ public boolean handleRenderType(ItemStack aStack, IItemRenderer.ItemRenderType aType)
+ {
+ if ((GT_Utility.isStackInvalid(aStack)) || (aStack.getItemDamage() < 0)) {
+ return false;
+ }
+ return (aType == IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) || (aType == IItemRenderer.ItemRenderType.INVENTORY) || (aType == IItemRenderer.ItemRenderType.EQUIPPED) || (aType == IItemRenderer.ItemRenderType.ENTITY);
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, IItemRenderer.ItemRendererHelper aHelper)
+ {
+ if (GT_Utility.isStackInvalid(aStack)) {
+ return false;
+ }
+ return aType == IItemRenderer.ItemRenderType.ENTITY;
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType type, ItemStack aStack, Object... data)
+ {
+ if (GT_Utility.isStackInvalid(aStack)) {
+ return;
+ }
+ short aMetaData = (short)aStack.getItemDamage();
+ if (aMetaData < 0) {
+ return;
+ }
+ GT_MetaGenerated_Item aItem = (GT_MetaGenerated_Item)aStack.getItem();
+
+
+ GL11.glEnable(3042);
+ if (type == IItemRenderer.ItemRenderType.ENTITY) {
+ if (RenderItem.renderInFrame)
+ {
+ GL11.glScalef(0.85F, 0.85F, 0.85F);
+ GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
+ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
+ }
+ else
+ {
+ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
+ }
+ }
+ GL11.glColor3f(1.0F, 1.0F, 1.0F);
+ if (aMetaData < aItem.mOffset)
+ {
+ IIconContainer aIcon = aItem.getIconContainer(aMetaData);
+ IIcon tOverlay = null;IIcon tFluidIcon = null;
+ IIcon tIcon;
+ if (aIcon == null)
+ {
+ tIcon = aStack.getIconIndex();
+ }
+ else
+ {
+ tIcon = aIcon.getIcon();
+ tOverlay = aIcon.getOverlayIcon();
+ }
+ if (tIcon == null) {
+ return;
+ }
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(aStack, true);
+ if ((tOverlay != null) && (tFluid != null) && (tFluid.getFluid() != null)) {
+ tFluidIcon = tFluid.getFluid().getIcon(tFluid);
+ }
+ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
+ GL11.glBlendFunc(770, 771);
+ if (tFluidIcon == null)
+ {
+ short[] tModulation = aItem.getRGBa(aStack);
+ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
+ }
+ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ if (tFluidIcon != null)
+ {
+ assert (tFluid != null);
+ int tColor = tFluid.getFluid().getColor(tFluid);
+ GL11.glColor3f((tColor >> 16 & 0xFF) / 255.0F, (tColor >> 8 & 0xFF) / 255.0F, (tColor & 0xFF) / 255.0F);
+ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
+ GL11.glBlendFunc(770, 771);
+ GL11.glDepthFunc(514);
+ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tFluidIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tFluidIcon.getMaxU(), tFluidIcon.getMinV(), tFluidIcon.getMinU(), tFluidIcon.getMaxV(), tFluidIcon.getIconWidth(), tFluidIcon.getIconHeight(), 0.0625F);
+ }
+ GL11.glDepthFunc(515);
+ }
+ GL11.glColor3f(1.0F, 1.0F, 1.0F);
+ if (tOverlay != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
+ GL11.glBlendFunc(770, 771);
+ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
+ }
+ }
+ }
+ else
+ {
+ IIcon tIcon;
+ if (aItem.mIconList[(aMetaData - aItem.mOffset)].length > 1)
+ {
+ Long[] tStats = (Long[])aItem.mElectricStats.get(Short.valueOf(aMetaData));
+
+ if ((tStats != null) && (tStats[3].longValue() < 0L))
+ {
+ long tCharge = aItem.getRealCharge(aStack);
+
+ if (tCharge <= 0L)
+ {
+ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][1];
+ }
+ else
+ {
+
+ if (tCharge >= tStats[0].longValue()) {
+ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][8];
+ } else {
+ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][(7 - (int)java.lang.Math.max(0L, java.lang.Math.min(5L, (tStats[0].longValue() - tCharge) * 6L / tStats[0].longValue())))];
+ }
+ }
+ }
+ else
+ {
+ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][0];
+ }
+ }
+ else
+ {
+ tIcon = aItem.mIconList[(aMetaData - aItem.mOffset)][0];
+ }
+ Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
+ GL11.glBlendFunc(770, 771);
+ if (type.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ }
+ GL11.glDisable(3042);
+ }
+}
/* 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/render/GT_MetaGenerated_Tool_Renderer.java b/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java index dca5de6342..afb7ff2127 100644 --- a/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java +++ b/main/java/gregtech/common/render/GT_MetaGenerated_Tool_Renderer.java @@ -1,211 +1,211 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import gregtech.api.interfaces.IToolStats;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.api.util.GT_Utility;
-/* 8: */ import java.util.HashMap;
-/* 9: */ import net.minecraft.client.Minecraft;
-/* 10: */ import net.minecraft.client.renderer.ItemRenderer;
-/* 11: */ import net.minecraft.client.renderer.Tessellator;
-/* 12: */ import net.minecraft.client.renderer.entity.RenderItem;
-/* 13: */ import net.minecraft.client.renderer.texture.TextureManager;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.util.IIcon;
-/* 16: */ import net.minecraftforge.client.IItemRenderer;
-/* 17: */ import net.minecraftforge.client.IItemRenderer.ItemRenderType;
-/* 18: */ import net.minecraftforge.client.IItemRenderer.ItemRendererHelper;
-/* 19: */ import net.minecraftforge.client.MinecraftForgeClient;
-/* 20: */ import org.lwjgl.opengl.GL11;
-/* 21: */
-/* 22: */ public class GT_MetaGenerated_Tool_Renderer
-/* 23: */ implements IItemRenderer
-/* 24: */ {
-/* 25: */ public GT_MetaGenerated_Tool_Renderer()
-/* 26: */ {
-/* 27: 24 */ for (GT_MetaGenerated_Tool tItem : GT_MetaGenerated_Tool.sInstances.values()) {
-/* 28: 24 */ if (tItem != null) {
-/* 29: 24 */ MinecraftForgeClient.registerItemRenderer(tItem, this);
-/* 30: */ }
-/* 31: */ }
-/* 32: */ }
-/* 33: */
-/* 34: */ public boolean handleRenderType(ItemStack aStack, IItemRenderer.ItemRenderType aType)
-/* 35: */ {
-/* 36: 29 */ if ((GT_Utility.isStackInvalid(aStack)) || (aStack.getItemDamage() < 0)) {
-/* 37: 29 */ return false;
-/* 38: */ }
-/* 39: 30 */ return (aType == IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) || (aType == IItemRenderer.ItemRenderType.INVENTORY) || (aType == IItemRenderer.ItemRenderType.EQUIPPED) || (aType == IItemRenderer.ItemRenderType.ENTITY);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, IItemRenderer.ItemRendererHelper aHelper)
-/* 43: */ {
-/* 44: 35 */ if (GT_Utility.isStackInvalid(aStack)) {
-/* 45: 35 */ return false;
-/* 46: */ }
-/* 47: 36 */ return aType == IItemRenderer.ItemRenderType.ENTITY;
-/* 48: */ }
-/* 49: */
-/* 50: */ public void renderItem(IItemRenderer.ItemRenderType aType, ItemStack aStack, Object... data)
-/* 51: */ {
-/* 52: 41 */ if (GT_Utility.isStackInvalid(aStack)) {
-/* 53: 41 */ return;
-/* 54: */ }
-/* 55: 42 */ GT_MetaGenerated_Tool aItem = (GT_MetaGenerated_Tool)aStack.getItem();
-/* 56: 43 */ GL11.glEnable(3042);
-/* 57: 45 */ if (aType == IItemRenderer.ItemRenderType.ENTITY) {
-/* 58: 46 */ if (RenderItem.renderInFrame)
-/* 59: */ {
-/* 60: 47 */ GL11.glScalef(0.85F, 0.85F, 0.85F);
-/* 61: 48 */ GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
-/* 62: 49 */ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
-/* 63: */ }
-/* 64: */ else
-/* 65: */ {
-/* 66: 51 */ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
-/* 67: */ }
-/* 68: */ }
-/* 69: 55 */ GL11.glColor3f(1.0F, 1.0F, 1.0F);
-/* 70: */
-/* 71: 57 */ IToolStats tToolStats = aItem.getToolStats(aStack);
-/* 72: 58 */ if (tToolStats != null)
-/* 73: */ {
-/* 74: 59 */ IIconContainer aIcon = tToolStats.getIcon(false, aStack);
-/* 75: 60 */ if (aIcon != null)
-/* 76: */ {
-/* 77: 61 */ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
-/* 78: 62 */ if (tIcon != null)
-/* 79: */ {
-/* 80: 63 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 81: 64 */ GL11.glBlendFunc(770, 771);
-/* 82: 65 */ short[] tModulation = tToolStats.getRGBa(false, aStack);
-/* 83: 66 */ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
-/* 84: 67 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 85: 67 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 86: */ } else {
-/* 87: 67 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 88: */ }
-/* 89: 68 */ GL11.glColor3f(1.0F, 1.0F, 1.0F);
-/* 90: */ }
-/* 91: 70 */ if (tOverlay != null)
-/* 92: */ {
-/* 93: 71 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 94: 72 */ GL11.glBlendFunc(770, 771);
-/* 95: 73 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 96: 73 */ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 97: */ } else {
-/* 98: 73 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
-/* 99: */ }
-/* 100: */ }
-/* 101: */ }
-/* 102: 77 */ aIcon = tToolStats.getIcon(true, aStack);
-/* 103: 78 */ if (aIcon != null)
-/* 104: */ {
-/* 105: 79 */ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
-/* 106: 80 */ if (tIcon != null)
-/* 107: */ {
-/* 108: 81 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 109: 82 */ GL11.glBlendFunc(770, 771);
-/* 110: 83 */ short[] tModulation = tToolStats.getRGBa(true, aStack);
-/* 111: 84 */ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
-/* 112: 85 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 113: 85 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 114: */ } else {
-/* 115: 85 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 116: */ }
-/* 117: 86 */ GL11.glColor3f(1.0F, 1.0F, 1.0F);
-/* 118: */ }
-/* 119: 88 */ if (tOverlay != null)
-/* 120: */ {
-/* 121: 89 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 122: 90 */ GL11.glBlendFunc(770, 771);
-/* 123: 91 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 124: 91 */ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 125: */ } else {
-/* 126: 91 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
-/* 127: */ }
-/* 128: */ }
-/* 129: */ }
-/* 130: 94 */ if ((aType == IItemRenderer.ItemRenderType.INVENTORY) && (GT_MetaGenerated_Tool.getPrimaryMaterial(aStack) != Materials._NULL))
-/* 131: */ {
-/* 132: 95 */ long tDamage = GT_MetaGenerated_Tool.getToolDamage(aStack);long tMaxDamage = GT_MetaGenerated_Tool.getToolMaxDamage(aStack);
-/* 133: 96 */ if (tDamage <= 0L) {
-/* 134: 97 */ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[8];
-/* 135: 98 */ } else if (tDamage >= tMaxDamage) {
-/* 136: 99 */ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[0];
-/* 137: */ } else {
-/* 138:101 */ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[((int)java.lang.Math.max(0L, java.lang.Math.min(7L, (tMaxDamage - tDamage) * 8L / tMaxDamage)))];
-/* 139: */ }
-/* 140:103 */ if (aIcon != null)
-/* 141: */ {
-/* 142:104 */ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
-/* 143:105 */ if (tIcon != null)
-/* 144: */ {
-/* 145:106 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 146:107 */ GL11.glBlendFunc(770, 771);
-/* 147:108 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 148:108 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 149: */ } else {
-/* 150:108 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 151: */ }
-/* 152: */ }
-/* 153:110 */ if (tOverlay != null)
-/* 154: */ {
-/* 155:111 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 156:112 */ GL11.glBlendFunc(770, 771);
-/* 157:113 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 158:113 */ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 159: */ } else {
-/* 160:113 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
-/* 161: */ }
-/* 162: */ }
-/* 163: */ }
-/* 164:117 */ Long[] tStats = aItem.getElectricStats(aStack);
-/* 165:118 */ if ((tStats != null) && (tStats[3].longValue() < 0L))
-/* 166: */ {
-/* 167:119 */ long tCharge = aItem.getRealCharge(aStack);
-/* 168:120 */ if (tCharge <= 0L) {
-/* 169:121 */ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[0];
-/* 170:122 */ } else if (tCharge >= tStats[0].longValue()) {
-/* 171:123 */ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[8];
-/* 172: */ } else {
-/* 173:125 */ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[(7 - (int)java.lang.Math.max(0L, java.lang.Math.min(6L, (tStats[0].longValue() - tCharge) * 7L / tStats[0].longValue())))];
-/* 174: */ }
-/* 175: */ }
-/* 176: */ else
-/* 177: */ {
-/* 178:127 */ aIcon = null;
-/* 179: */ }
-/* 180:130 */ if (aIcon != null)
-/* 181: */ {
-/* 182:131 */ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
-/* 183:132 */ if (tIcon != null)
-/* 184: */ {
-/* 185:133 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 186:134 */ GL11.glBlendFunc(770, 771);
-/* 187:135 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 188:135 */ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 189: */ } else {
-/* 190:135 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
-/* 191: */ }
-/* 192: */ }
-/* 193:137 */ if (tOverlay != null)
-/* 194: */ {
-/* 195:138 */ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
-/* 196:139 */ GL11.glBlendFunc(770, 771);
-/* 197:140 */ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
-/* 198:140 */ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
-/* 199: */ } else {
-/* 200:140 */ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
-/* 201: */ }
-/* 202: */ }
-/* 203: */ }
-/* 204: */ }
-/* 205: */ }
-/* 206:145 */ GL11.glDisable(3042);
-/* 207: */ }
-/* 208: */ }
+package gregtech.common.render;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IToolStats;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Utility;
+import java.util.HashMap;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.renderer.ItemRenderer;
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.client.renderer.entity.RenderItem;
+import net.minecraft.client.renderer.texture.TextureManager;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
+import net.minecraftforge.client.IItemRenderer;
+import net.minecraftforge.client.IItemRenderer.ItemRenderType;
+import net.minecraftforge.client.IItemRenderer.ItemRendererHelper;
+import net.minecraftforge.client.MinecraftForgeClient;
+import org.lwjgl.opengl.GL11;
+
+public class GT_MetaGenerated_Tool_Renderer
+ implements IItemRenderer
+{
+ public GT_MetaGenerated_Tool_Renderer()
+ {
+ for (GT_MetaGenerated_Tool tItem : GT_MetaGenerated_Tool.sInstances.values()) {
+ if (tItem != null) {
+ MinecraftForgeClient.registerItemRenderer(tItem, this);
+ }
+ }
+ }
+
+ public boolean handleRenderType(ItemStack aStack, IItemRenderer.ItemRenderType aType)
+ {
+ if ((GT_Utility.isStackInvalid(aStack)) || (aStack.getItemDamage() < 0)) {
+ return false;
+ }
+ return (aType == IItemRenderer.ItemRenderType.EQUIPPED_FIRST_PERSON) || (aType == IItemRenderer.ItemRenderType.INVENTORY) || (aType == IItemRenderer.ItemRenderType.EQUIPPED) || (aType == IItemRenderer.ItemRenderType.ENTITY);
+ }
+
+ public boolean shouldUseRenderHelper(IItemRenderer.ItemRenderType aType, ItemStack aStack, IItemRenderer.ItemRendererHelper aHelper)
+ {
+ if (GT_Utility.isStackInvalid(aStack)) {
+ return false;
+ }
+ return aType == IItemRenderer.ItemRenderType.ENTITY;
+ }
+
+ public void renderItem(IItemRenderer.ItemRenderType aType, ItemStack aStack, Object... data)
+ {
+ if (GT_Utility.isStackInvalid(aStack)) {
+ return;
+ }
+ GT_MetaGenerated_Tool aItem = (GT_MetaGenerated_Tool)aStack.getItem();
+ GL11.glEnable(3042);
+ if (aType == IItemRenderer.ItemRenderType.ENTITY) {
+ if (RenderItem.renderInFrame)
+ {
+ GL11.glScalef(0.85F, 0.85F, 0.85F);
+ GL11.glRotatef(-90.0F, 0.0F, 1.0F, 0.0F);
+ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
+ }
+ else
+ {
+ GL11.glTranslated(-0.5D, -0.42D, 0.0D);
+ }
+ }
+ GL11.glColor3f(1.0F, 1.0F, 1.0F);
+
+ IToolStats tToolStats = aItem.getToolStats(aStack);
+ if (tToolStats != null)
+ {
+ IIconContainer aIcon = tToolStats.getIcon(false, aStack);
+ if (aIcon != null)
+ {
+ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
+ if (tIcon != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ short[] tModulation = tToolStats.getRGBa(false, aStack);
+ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ GL11.glColor3f(1.0F, 1.0F, 1.0F);
+ }
+ if (tOverlay != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
+ }
+ }
+ }
+ aIcon = tToolStats.getIcon(true, aStack);
+ if (aIcon != null)
+ {
+ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
+ if (tIcon != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ short[] tModulation = tToolStats.getRGBa(true, aStack);
+ GL11.glColor3f(tModulation[0] / 255.0F, tModulation[1] / 255.0F, tModulation[2] / 255.0F);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ GL11.glColor3f(1.0F, 1.0F, 1.0F);
+ }
+ if (tOverlay != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
+ }
+ }
+ }
+ if ((aType == IItemRenderer.ItemRenderType.INVENTORY) && (GT_MetaGenerated_Tool.getPrimaryMaterial(aStack) != Materials._NULL))
+ {
+ long tDamage = GT_MetaGenerated_Tool.getToolDamage(aStack);long tMaxDamage = GT_MetaGenerated_Tool.getToolMaxDamage(aStack);
+ if (tDamage <= 0L) {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[8];
+ } else if (tDamage >= tMaxDamage) {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[0];
+ } else {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.DURABILITY_BAR[((int)java.lang.Math.max(0L, java.lang.Math.min(7L, (tMaxDamage - tDamage) * 8L / tMaxDamage)))];
+ }
+ if (aIcon != null)
+ {
+ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
+ if (tIcon != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ }
+ if (tOverlay != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
+ }
+ }
+ }
+ Long[] tStats = aItem.getElectricStats(aStack);
+ if ((tStats != null) && (tStats[3].longValue() < 0L))
+ {
+ long tCharge = aItem.getRealCharge(aStack);
+ if (tCharge <= 0L) {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[0];
+ } else if (tCharge >= tStats[0].longValue()) {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[8];
+ } else {
+ aIcon = gregtech.api.enums.Textures.ItemIcons.ENERGY_BAR[(7 - (int)java.lang.Math.max(0L, java.lang.Math.min(6L, (tStats[0].longValue() - tCharge) * 7L / tStats[0].longValue())))];
+ }
+ }
+ else
+ {
+ aIcon = null;
+ }
+ if (aIcon != null)
+ {
+ IIcon tIcon = aIcon.getIcon();IIcon tOverlay = aIcon.getOverlayIcon();
+ if (tIcon != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tIcon, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tIcon.getMaxU(), tIcon.getMinV(), tIcon.getMinU(), tIcon.getMaxV(), tIcon.getIconWidth(), tIcon.getIconHeight(), 0.0625F);
+ }
+ }
+ if (tOverlay != null)
+ {
+ Minecraft.getMinecraft().renderEngine.bindTexture(aIcon.getTextureFile());
+ GL11.glBlendFunc(770, 771);
+ if (aType.equals(IItemRenderer.ItemRenderType.INVENTORY)) {
+ GT_RenderUtil.renderItemIcon(tOverlay, 16.0D, 0.001D, 0.0F, 0.0F, -1.0F);
+ } else {
+ ItemRenderer.renderItemIn2D(Tessellator.instance, tOverlay.getMaxU(), tOverlay.getMinV(), tOverlay.getMinU(), tOverlay.getMaxV(), tOverlay.getIconWidth(), tOverlay.getIconHeight(), 0.0625F);
+ }
+ }
+ }
+ }
+ }
+ GL11.glDisable(3042);
+ }
+}
/* 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/render/GT_RenderUtil.java b/main/java/gregtech/common/render/GT_RenderUtil.java index 5eb73c4eca..9a2fd8c259 100644 --- a/main/java/gregtech/common/render/GT_RenderUtil.java +++ b/main/java/gregtech/common/render/GT_RenderUtil.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import net.minecraft.client.renderer.Tessellator;
-/* 4: */ import net.minecraft.util.IIcon;
-/* 5: */
-/* 6: */ public class GT_RenderUtil
-/* 7: */ {
-/* 8: */ public static void renderItemIcon(IIcon icon, double size, double z, float nx, float ny, float nz)
-/* 9: */ {
-/* 10: 8 */ renderItemIcon(icon, 0.0D, 0.0D, size, size, z, nx, ny, nz);
-/* 11: */ }
-/* 12: */
-/* 13: */ public static void renderItemIcon(IIcon icon, double xStart, double yStart, double xEnd, double yEnd, double z, float nx, float ny, float nz)
-/* 14: */ {
-/* 15:12 */ if (icon == null) {
-/* 16:12 */ return;
-/* 17: */ }
-/* 18:13 */ Tessellator.instance.startDrawingQuads();
-/* 19:14 */ Tessellator.instance.setNormal(nx, ny, nz);
-/* 20:15 */ if (nz > 0.0F)
-/* 21: */ {
-/* 22:16 */ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
-/* 23:17 */ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
-/* 24:18 */ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
-/* 25:19 */ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
-/* 26: */ }
-/* 27: */ else
-/* 28: */ {
-/* 29:21 */ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
-/* 30:22 */ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
-/* 31:23 */ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
-/* 32:24 */ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
-/* 33: */ }
-/* 34:26 */ Tessellator.instance.draw();
-/* 35: */ }
-/* 36: */ }
+package gregtech.common.render;
+
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.util.IIcon;
+
+public class GT_RenderUtil
+{
+ public static void renderItemIcon(IIcon icon, double size, double z, float nx, float ny, float nz)
+ {
+ renderItemIcon(icon, 0.0D, 0.0D, size, size, z, nx, ny, nz);
+ }
+
+ public static void renderItemIcon(IIcon icon, double xStart, double yStart, double xEnd, double yEnd, double z, float nx, float ny, float nz)
+ {
+ if (icon == null) {
+ return;
+ }
+ Tessellator.instance.startDrawingQuads();
+ Tessellator.instance.setNormal(nx, ny, nz);
+ if (nz > 0.0F)
+ {
+ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
+ }
+ else
+ {
+ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
+ }
+ Tessellator.instance.draw();
+ }
+}
/* 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/render/GT_Renderer_Entity_Arrow.java b/main/java/gregtech/common/render/GT_Renderer_Entity_Arrow.java index f28b39829c..1d42fa065e 100644 --- a/main/java/gregtech/common/render/GT_Renderer_Entity_Arrow.java +++ b/main/java/gregtech/common/render/GT_Renderer_Entity_Arrow.java @@ -1,26 +1,26 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import cpw.mods.fml.client.registry.RenderingRegistry;
-/* 4: */ import net.minecraft.client.renderer.entity.RenderArrow;
-/* 5: */ import net.minecraft.entity.Entity;
-/* 6: */ import net.minecraft.util.ResourceLocation;
-/* 7: */
-/* 8: */ public class GT_Renderer_Entity_Arrow
-/* 9: */ extends RenderArrow
-/* 10: */ {
-/* 11: */ private final ResourceLocation mTexture;
-/* 12: */
-/* 13: */ public GT_Renderer_Entity_Arrow(Class aArrowClass, String aTextureName)
-/* 14: */ {
-/* 15:13 */ this.mTexture = new ResourceLocation("gregtech:textures/entity/" + aTextureName + ".png");
-/* 16:14 */ RenderingRegistry.registerEntityRenderingHandler(aArrowClass, this);
-/* 17: */ }
-/* 18: */
-/* 19: */ protected ResourceLocation getEntityTexture(Entity p_110775_1_)
-/* 20: */ {
-/* 21:19 */ return this.mTexture;
-/* 22: */ }
-/* 23: */ }
+package gregtech.common.render;
+
+import cpw.mods.fml.client.registry.RenderingRegistry;
+import net.minecraft.client.renderer.entity.RenderArrow;
+import net.minecraft.entity.Entity;
+import net.minecraft.util.ResourceLocation;
+
+public class GT_Renderer_Entity_Arrow
+ extends RenderArrow
+{
+ private final ResourceLocation mTexture;
+
+ public GT_Renderer_Entity_Arrow(Class aArrowClass, String aTextureName)
+ {
+ this.mTexture = new ResourceLocation("gregtech:textures/entity/" + aTextureName + ".png");
+ RenderingRegistry.registerEntityRenderingHandler(aArrowClass, this);
+ }
+
+ protected ResourceLocation getEntityTexture(Entity p_110775_1_)
+ {
+ return this.mTexture;
+ }
+}
/* 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/automation/GT_MetaTileEntity_ChestBuffer.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java index a14378f845..dade717e0d 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_ChestBuffer;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_ChestBuffer;
-/* 12: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 13: */
-/* 14: */ public class GT_MetaTileEntity_ChestBuffer
-/* 15: */ extends GT_MetaTileEntity_Buffer
-/* 16: */ {
-/* 17: */ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier)
-/* 18: */ {
-/* 19:16 */ super(aID, aName, aNameRegional, aTier, 28, "Buffering lots of incoming Items");
-/* 20: */ }
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription)
-/* 23: */ {
-/* 24:20 */ super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:24 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:29 */ return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 35: */ }
-/* 36: */
-/* 37: */ public ITexture getOverlayIcon()
-/* 38: */ {
-/* 39:34 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_CHESTBUFFER);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean isValidSlot(int aIndex)
-/* 43: */ {
-/* 44:37 */ return aIndex < this.mInventory.length - 1;
-/* 45: */ }
-/* 46: */
-/* 47: */ protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 48: */ {
-/* 49:41 */ fillStacksIntoFirstSlots();
-/* 50:42 */ super.moveItems(aBaseMetaTileEntity, aTimer);
-/* 51:43 */ fillStacksIntoFirstSlots();
-/* 52: */ }
-/* 53: */
-/* 54: */ protected void fillStacksIntoFirstSlots()
-/* 55: */ {
-/* 56:47 */ for (int i = 0; i < this.mInventory.length - 1; i++) {
-/* 57:47 */ for (int j = i + 1; j < this.mInventory.length - 1; j++) {
-/* 58:47 */ if ((this.mInventory[j] != null) && ((this.mInventory[i] == null) || (GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) {
-/* 59:48 */ GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 60: */ }
-/* 61: */ }
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 66: */ {
-/* 67:54 */ return new GT_Container_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 68: */ }
-/* 69: */
-/* 70: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 71: */ {
-/* 72:59 */ return new GT_GUIContainer_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 73: */ }
-/* 74: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_ChestBuffer;
+import gregtech.common.gui.GT_GUIContainer_ChestBuffer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_MetaTileEntity_ChestBuffer
+ extends GT_MetaTileEntity_Buffer
+{
+ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 28, "Buffering lots of incoming Items");
+ }
+
+ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription);
+ }
+
+ public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_CHESTBUFFER);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < this.mInventory.length - 1;
+ }
+
+ protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ fillStacksIntoFirstSlots();
+ super.moveItems(aBaseMetaTileEntity, aTimer);
+ fillStacksIntoFirstSlots();
+ }
+
+ protected void fillStacksIntoFirstSlots()
+ {
+ for (int i = 0; i < this.mInventory.length - 1; i++) {
+ for (int j = i + 1; j < this.mInventory.length - 1; j++) {
+ if ((this.mInventory[j] != null) && ((this.mInventory[i] == null) || (GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) {
+ GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ }
+ }
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+}
/* 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/automation/GT_MetaTileEntity_Filter.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java index 15ec5a323c..48ad19bd83 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java @@ -1,91 +1,91 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_Filter;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_Filter;
-/* 12: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.nbt.NBTTagCompound;
-/* 15: */
-/* 16: */ public class GT_MetaTileEntity_Filter
-/* 17: */ extends GT_MetaTileEntity_Buffer
-/* 18: */ {
-/* 19:17 */ public boolean bIgnoreNBT = false;
-/* 20:17 */ public boolean bInvertFilter = false;
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Filter(int aID, String aName, String aNameRegional, int aTier)
-/* 23: */ {
-/* 24:20 */ super(aID, aName, aNameRegional, aTier, 19, "Filtering incoming Items");
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:24 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:29 */ return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 35: */ }
-/* 36: */
-/* 37: */ public ITexture getOverlayIcon()
-/* 38: */ {
-/* 39:34 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_FILTER);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean isValidSlot(int aIndex)
-/* 43: */ {
-/* 44:37 */ return aIndex < 9;
-/* 45: */ }
-/* 46: */
-/* 47: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 48: */ {
-/* 49:41 */ return new GT_Container_Filter(aPlayerInventory, aBaseMetaTileEntity);
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54:46 */ return new GT_GUIContainer_Filter(aPlayerInventory, aBaseMetaTileEntity);
-/* 55: */ }
-/* 56: */
-/* 57: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 58: */ {
-/* 59:51 */ super.saveNBTData(aNBT);
-/* 60:52 */ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
-/* 61:53 */ aNBT.setBoolean("bIgnoreNBT", this.bIgnoreNBT);
-/* 62: */ }
-/* 63: */
-/* 64: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 65: */ {
-/* 66:58 */ super.loadNBTData(aNBT);
-/* 67:59 */ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
-/* 68:60 */ this.bIgnoreNBT = aNBT.getBoolean("bIgnoreNBT");
-/* 69: */ }
-/* 70: */
-/* 71: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 72: */ {
-/* 73:65 */ if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
-/* 74:65 */ return false;
-/* 75: */ }
-/* 76:66 */ if (this.bInvertFilter)
-/* 77: */ {
-/* 78:67 */ for (byte i = 9; i < 18; i = (byte)(i + 1)) {
-/* 79:67 */ if (GT_Utility.areStacksEqual(this.mInventory[i], aStack, this.bIgnoreNBT)) {
-/* 80:67 */ return false;
-/* 81: */ }
-/* 82: */ }
-/* 83:68 */ return true;
-/* 84: */ }
-/* 85:70 */ return GT_Utility.areStacksEqual(this.mInventory[(aIndex + 9)], aStack, this.bIgnoreNBT);
-/* 86: */ }
-/* 87: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_Filter;
+import gregtech.common.gui.GT_GUIContainer_Filter;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class GT_MetaTileEntity_Filter
+ extends GT_MetaTileEntity_Buffer
+{
+ public boolean bIgnoreNBT = false;
+ public boolean bInvertFilter = false;
+
+ public GT_MetaTileEntity_Filter(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 19, "Filtering incoming Items");
+ }
+
+ public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_FILTER);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < 9;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Filter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Filter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ super.saveNBTData(aNBT);
+ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
+ aNBT.setBoolean("bIgnoreNBT", this.bIgnoreNBT);
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ super.loadNBTData(aNBT);
+ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
+ this.bIgnoreNBT = aNBT.getBoolean("bIgnoreNBT");
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
+ return false;
+ }
+ if (this.bInvertFilter)
+ {
+ for (byte i = 9; i < 18; i = (byte)(i + 1)) {
+ if (GT_Utility.areStacksEqual(this.mInventory[i], aStack, this.bIgnoreNBT)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ return GT_Utility.areStacksEqual(this.mInventory[(aIndex + 9)], aStack, this.bIgnoreNBT);
+ }
+}
/* 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/automation/GT_MetaTileEntity_Regulator.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java index fda2e12630..c9670a3480 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java @@ -1,110 +1,110 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_Regulator;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_Regulator;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_Regulator;
+import gregtech.common.gui.GT_GUIContainer_Regulator;
+
+import java.util.Arrays;
-/* 12: */ import java.util.Arrays;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
-/* 13: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.nbt.NBTTagCompound;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Regulator
-/* 18: */ extends GT_MetaTileEntity_Buffer
-/* 19: */ {
-/* 20:20 */ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Regulator(int aID, String aName, String aNameRegional, int aTier)
-/* 23: */ {
-/* 24:23 */ super(aID, aName, aNameRegional, aTier, 19, "Regulating incoming Items");
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Regulator(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:27 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:32 */ return new GT_MetaTileEntity_Regulator(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 35: */ }
-/* 36: */
-/* 37: */ public ITexture getOverlayIcon()
-/* 38: */ {
-/* 39:37 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_REGULATOR);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean isValidSlot(int aIndex)
-/* 43: */ {
-/* 44:40 */ return aIndex < 9;
-/* 45: */ }
-/* 46: */
-/* 47: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 48: */ {
-/* 49:44 */ return new GT_Container_Regulator(aPlayerInventory, aBaseMetaTileEntity);
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54:49 */ return new GT_GUIContainer_Regulator(aPlayerInventory, aBaseMetaTileEntity);
-/* 55: */ }
-/* 56: */
-/* 57: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 58: */ {
-/* 59:54 */ super.saveNBTData(aNBT);
-/* 60:55 */ aNBT.setInteger("mTargetSlot1", this.mTargetSlots[0]);
-/* 61:56 */ aNBT.setInteger("mTargetSlot2", this.mTargetSlots[1]);
-/* 62:57 */ aNBT.setInteger("mTargetSlot3", this.mTargetSlots[2]);
-/* 63:58 */ aNBT.setInteger("mTargetSlot4", this.mTargetSlots[3]);
-/* 64:59 */ aNBT.setInteger("mTargetSlot5", this.mTargetSlots[4]);
-/* 65:60 */ aNBT.setInteger("mTargetSlot6", this.mTargetSlots[5]);
-/* 66:61 */ aNBT.setInteger("mTargetSlot7", this.mTargetSlots[6]);
-/* 67:62 */ aNBT.setInteger("mTargetSlot8", this.mTargetSlots[7]);
-/* 68:63 */ aNBT.setInteger("mTargetSlot9", this.mTargetSlots[8]);
-/* 69: */ }
-/* 70: */
-/* 71: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 72: */ {
-/* 73:68 */ super.loadNBTData(aNBT);
-/* 74:69 */ this.mTargetSlots[0] = aNBT.getInteger("mTargetSlot1");
-/* 75:70 */ this.mTargetSlots[1] = aNBT.getInteger("mTargetSlot2");
-/* 76:71 */ this.mTargetSlots[2] = aNBT.getInteger("mTargetSlot3");
-/* 77:72 */ this.mTargetSlots[3] = aNBT.getInteger("mTargetSlot4");
-/* 78:73 */ this.mTargetSlots[4] = aNBT.getInteger("mTargetSlot5");
-/* 79:74 */ this.mTargetSlots[5] = aNBT.getInteger("mTargetSlot6");
-/* 80:75 */ this.mTargetSlots[6] = aNBT.getInteger("mTargetSlot7");
-/* 81:76 */ this.mTargetSlots[7] = aNBT.getInteger("mTargetSlot8");
-/* 82:77 */ this.mTargetSlots[8] = aNBT.getInteger("mTargetSlot9");
-/* 83: */ }
-/* 84: */
-/* 85: */ public void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 86: */ {
-/* 87:82 */ int i = 0;
-/* 88:82 */ for (int tCosts = 0; i < 9; i++) {
-/* 89:82 */ if (this.mInventory[(i + 9)] != null)
-/* 90: */ {
-/* 91:83 */ tCosts = GT_Utility.moveOneItemStackIntoSlot(getBaseMetaTileEntity(), getBaseMetaTileEntity().getTileEntityAtSide(getBaseMetaTileEntity().getBackFacing()), getBaseMetaTileEntity().getBackFacing(), this.mTargetSlots[i], Arrays.asList(new ItemStack[] { this.mInventory[(i + 9)] }), false, (byte)this.mInventory[(i + 9)].stackSize, (byte)this.mInventory[(i + 9)].stackSize, (byte)64, (byte)1) * 3;
-/* 92:84 */ if (tCosts > 0)
-/* 93: */ {
-/* 94:84 */ this.mSuccess = 50;getBaseMetaTileEntity().decreaseStoredEnergyUnits(tCosts, true); break;
-/* 95: */ }
-/* 96: */ }
-/* 97: */ }
-/* 98: */ }
-/* 99: */
-/* :0: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* :1: */ {
-/* :2:90 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (GT_Utility.areStacksEqual(aStack, this.mInventory[(aIndex + 9)]));
-/* :3: */ }
-/* :4: */ }
+public class GT_MetaTileEntity_Regulator
+ extends GT_MetaTileEntity_Buffer
+{
+ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ public GT_MetaTileEntity_Regulator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 19, "Regulating incoming Items");
+ }
+
+ public GT_MetaTileEntity_Regulator(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Regulator(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_REGULATOR);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < 9;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Regulator(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Regulator(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ super.saveNBTData(aNBT);
+ aNBT.setInteger("mTargetSlot1", this.mTargetSlots[0]);
+ aNBT.setInteger("mTargetSlot2", this.mTargetSlots[1]);
+ aNBT.setInteger("mTargetSlot3", this.mTargetSlots[2]);
+ aNBT.setInteger("mTargetSlot4", this.mTargetSlots[3]);
+ aNBT.setInteger("mTargetSlot5", this.mTargetSlots[4]);
+ aNBT.setInteger("mTargetSlot6", this.mTargetSlots[5]);
+ aNBT.setInteger("mTargetSlot7", this.mTargetSlots[6]);
+ aNBT.setInteger("mTargetSlot8", this.mTargetSlots[7]);
+ aNBT.setInteger("mTargetSlot9", this.mTargetSlots[8]);
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ super.loadNBTData(aNBT);
+ this.mTargetSlots[0] = aNBT.getInteger("mTargetSlot1");
+ this.mTargetSlots[1] = aNBT.getInteger("mTargetSlot2");
+ this.mTargetSlots[2] = aNBT.getInteger("mTargetSlot3");
+ this.mTargetSlots[3] = aNBT.getInteger("mTargetSlot4");
+ this.mTargetSlots[4] = aNBT.getInteger("mTargetSlot5");
+ this.mTargetSlots[5] = aNBT.getInteger("mTargetSlot6");
+ this.mTargetSlots[6] = aNBT.getInteger("mTargetSlot7");
+ this.mTargetSlots[7] = aNBT.getInteger("mTargetSlot8");
+ this.mTargetSlots[8] = aNBT.getInteger("mTargetSlot9");
+ }
+
+ public void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ int i = 0;
+ for (int tCosts = 0; i < 9; i++) {
+ if (this.mInventory[(i + 9)] != null)
+ {
+ tCosts = GT_Utility.moveOneItemStackIntoSlot(getBaseMetaTileEntity(), getBaseMetaTileEntity().getTileEntityAtSide(getBaseMetaTileEntity().getBackFacing()), getBaseMetaTileEntity().getBackFacing(), this.mTargetSlots[i], Arrays.asList(new ItemStack[] { this.mInventory[(i + 9)] }), false, (byte)this.mInventory[(i + 9)].stackSize, (byte)this.mInventory[(i + 9)].stackSize, (byte)64, (byte)1) * 3;
+ if (tCosts > 0)
+ {
+ this.mSuccess = 50;getBaseMetaTileEntity().decreaseStoredEnergyUnits(tCosts, true); break;
+ }
+ }
+ }
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (GT_Utility.areStacksEqual(aStack, this.mInventory[(aIndex + 9)]));
+ }
+}
/* 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/automation/GT_MetaTileEntity_SuperBuffer.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java index 48f6bc8796..d90a6c4bb4 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_SuperBuffer.java @@ -1,48 +1,48 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 8: */ import gregtech.common.gui.GT_Container_SuperBuffer;
-/* 9: */ import gregtech.common.gui.GT_GUIContainer_SuperBuffer;
-/* 10: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 11: */
-/* 12: */ public class GT_MetaTileEntity_SuperBuffer
-/* 13: */ extends GT_MetaTileEntity_ChestBuffer
-/* 14: */ {
-/* 15: */ public GT_MetaTileEntity_SuperBuffer(int aID, String aName, String aNameRegional, int aTier)
-/* 16: */ {
-/* 17:14 */ super(aID, aName, aNameRegional, aTier, 257, "Buffering up to 256 Stacks");
-/* 18: */ }
-/* 19: */
-/* 20: */ public GT_MetaTileEntity_SuperBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 21: */ {
-/* 22:18 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 23: */ }
-/* 24: */
-/* 25: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 26: */ {
-/* 27:23 */ return new GT_MetaTileEntity_SuperBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 28: */ }
-/* 29: */
-/* 30: */ public ITexture getOverlayIcon()
-/* 31: */ {
-/* 32:28 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_SUPERBUFFER);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37:33 */ return new GT_Container_SuperBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 38: */ }
-/* 39: */
-/* 40: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 41: */ {
-/* 42:38 */ return new GT_GUIContainer_SuperBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 43: */ }
-/* 44: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.common.gui.GT_Container_SuperBuffer;
+import gregtech.common.gui.GT_GUIContainer_SuperBuffer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_MetaTileEntity_SuperBuffer
+ extends GT_MetaTileEntity_ChestBuffer
+{
+ public GT_MetaTileEntity_SuperBuffer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 257, "Buffering up to 256 Stacks");
+ }
+
+ public GT_MetaTileEntity_SuperBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_SuperBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_SUPERBUFFER);
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_SuperBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_SuperBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+}
/* 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/automation/GT_MetaTileEntity_TypeFilter.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java index f3a87282be..fd2a31fd1d 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_TypeFilter.java @@ -1,137 +1,137 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_Utility;
-/* 11: */ import gregtech.common.gui.GT_Container_TypeFilter;
-/* 12: */ import gregtech.common.gui.GT_GUIContainer_TypeFilter;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_TypeFilter;
+import gregtech.common.gui.GT_GUIContainer_TypeFilter;
+
+import java.util.ArrayList;
-/* 13: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.nbt.NBTTagCompound;
-/* 17: */
-/* 18: */ public class GT_MetaTileEntity_TypeFilter
-/* 19: */ extends GT_MetaTileEntity_Buffer
-/* 20: */ {
-/* 21: 19 */ public boolean bNBTAllowed = false;
-/* 22: 19 */ public boolean bInvertFilter = false;
-/* 23: 20 */ public int mRotationIndex = 0;
-/* 24: 21 */ public OrePrefixes mPrefix = OrePrefixes.ore;
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_TypeFilter(int aID, String aName, String aNameRegional, int aTier)
-/* 27: */ {
-/* 28: 24 */ super(aID, aName, aNameRegional, aTier, 11, "Filtering incoming Items by Type");
-/* 29: */ }
-/* 30: */
-/* 31: */ public GT_MetaTileEntity_TypeFilter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 32: */ {
-/* 33: 28 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 34: */ }
-/* 35: */
-/* 36: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 37: */ {
-/* 38: 33 */ return new GT_MetaTileEntity_TypeFilter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 39: */ }
-/* 40: */
-/* 41: */ public ITexture getOverlayIcon()
-/* 42: */ {
-/* 43: 38 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_TYPEFILTER);
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean isValidSlot(int aIndex)
-/* 47: */ {
-/* 48: 41 */ return aIndex < 9;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 52: */ {
-/* 53: 45 */ return new GT_Container_TypeFilter(aPlayerInventory, aBaseMetaTileEntity);
-/* 54: */ }
-/* 55: */
-/* 56: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 57: */ {
-/* 58: 50 */ return new GT_GUIContainer_TypeFilter(aPlayerInventory, aBaseMetaTileEntity);
-/* 59: */ }
-/* 60: */
-/* 61: */ public void clickTypeIcon(boolean aRightClick)
-/* 62: */ {
-/* 63: 54 */ if (getBaseMetaTileEntity().isServerSide())
-/* 64: */ {
-/* 65: 55 */ for (int i = 0; i < OrePrefixes.values().length; i++) {
-/* 66: 56 */ if (this.mPrefix == OrePrefixes.values()[i]) {
-/* 67: 57 */ for (this.mPrefix = null; this.mPrefix == null; this.mPrefix = OrePrefixes.values()[i])
-/* 68: */ {
-/* 70: 59 */ if (aRightClick)
-/* 71: */ {
-/* 72: 60 */ i--;
-/* 73: 60 */ if (i < 0) {
-/* 74: 60 */ i = OrePrefixes.values().length - 1;
-/* 75: */ }
-/* 76: */ }
-/* 77: */ else
-/* 78: */ {
-/* 79: 62 */ i++;
-/* 80: 62 */ if (i >= OrePrefixes.values().length) {
-/* 81: 62 */ i = 0;
-/* 82: */ }
-/* 83: */ }
-/* 84: 64 */ if(!OrePrefixes.values()[i].mPrefixedItems.isEmpty() && OrePrefixes.values()[i].mPrefixInto == OrePrefixes.values()[i])
+public class GT_MetaTileEntity_TypeFilter
+ extends GT_MetaTileEntity_Buffer
+{
+ public boolean bNBTAllowed = false;
+ public boolean bInvertFilter = false;
+ public int mRotationIndex = 0;
+ public OrePrefixes mPrefix = OrePrefixes.ore;
+
+ public GT_MetaTileEntity_TypeFilter(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 11, "Filtering incoming Items by Type");
+ }
+
+ public GT_MetaTileEntity_TypeFilter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_TypeFilter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_TYPEFILTER);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < 9;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_TypeFilter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_TypeFilter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public void clickTypeIcon(boolean aRightClick)
+ {
+ if (getBaseMetaTileEntity().isServerSide())
+ {
+ for (int i = 0; i < OrePrefixes.values().length; i++) {
+ if (this.mPrefix == OrePrefixes.values()[i]) {
+ for (this.mPrefix = null; this.mPrefix == null; this.mPrefix = OrePrefixes.values()[i])
+ {
+ if (aRightClick)
+ {
+ i--;
+ if (i < 0) {
+ i = OrePrefixes.values().length - 1;
+ }
+ }
+ else
+ {
+ i++;
+ if (i >= OrePrefixes.values().length) {
+ i = 0;
+ }
+ }
+ if(!OrePrefixes.values()[i].mPrefixedItems.isEmpty() && OrePrefixes.values()[i].mPrefixInto == OrePrefixes.values()[i])
mPrefix = OrePrefixes.values()[i];
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 69 */ this.mRotationIndex = 0;
-/* 91: */ }
-/* 92: */ }
-/* 93: */
-/* 94: */ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 95: */ {
-/* 96: 75 */ super.onPreTick(aBaseMetaTileEntity, aTick);
-/* 97: 76 */ if ((getBaseMetaTileEntity().isServerSide()) && (aTick % 8L == 0L)) {
-/* 98: 77 */ if (this.mPrefix.mPrefixedItems.isEmpty())
-/* 99: */ {
-/* 100: 78 */ this.mInventory[9] = null;
-/* 101: */ }
-/* 102: */ else
-/* 103: */ {
-/* 104: 80 */ Object[] tmp63_60 = new Object[1]; int tmp90_89 = ((this.mRotationIndex + 1) % this.mPrefix.mPrefixedItems.size());this.mRotationIndex = tmp90_89;tmp63_60[0] = this.mPrefix.mPrefixedItems.get(tmp90_89);this.mInventory[9] = GT_Utility.copyAmount(1L, tmp63_60);
-/* 105: 81 */ if (this.mInventory[9].getItemDamage() == 32767) {
-/* 106: 81 */ this.mInventory[9].setItemDamage(0);
-/* 107: */ }
-/* 108: 82 */ this.mInventory[9].setStackDisplayName(this.mPrefix.toString());
-/* 109: */ }
-/* 110: */ }
-/* 111: */ }
-/* 112: */
-/* 113: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 114: */ {
-/* 115: 89 */ super.saveNBTData(aNBT);
-/* 116: 90 */ aNBT.setString("mPrefix", this.mPrefix.toString());
-/* 117: 91 */ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
-/* 118: 92 */ aNBT.setBoolean("bNBTAllowed", this.bNBTAllowed);
-/* 119: */ }
-/* 120: */
-/* 121: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 122: */ {
-/* 123: 97 */ super.loadNBTData(aNBT);
-/* 124: 98 */ this.mPrefix = OrePrefixes.getPrefix(aNBT.getString("mPrefix"), this.mPrefix);
-/* 125: 99 */ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
-/* 126:100 */ this.bNBTAllowed = aNBT.getBoolean("bNBTAllowed");
-/* 127: */ }
-/* 128: */
-/* 129: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 130: */ {
-/* 131:105 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && ((this.bNBTAllowed) || (!aStack.hasTagCompound())) && (this.mPrefix.contains(aStack) != this.bInvertFilter);
-/* 132: */ }
-/* 133: */ }
+ }
+ }
+ }
+ this.mRotationIndex = 0;
+ }
+ }
+
+ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ super.onPreTick(aBaseMetaTileEntity, aTick);
+ if ((getBaseMetaTileEntity().isServerSide()) && (aTick % 8L == 0L)) {
+ if (this.mPrefix.mPrefixedItems.isEmpty())
+ {
+ this.mInventory[9] = null;
+ }
+ else
+ {
+ Object[] tmp63_60 = new Object[1]; int tmp90_89 = ((this.mRotationIndex + 1) % this.mPrefix.mPrefixedItems.size());this.mRotationIndex = tmp90_89;tmp63_60[0] = this.mPrefix.mPrefixedItems.get(tmp90_89);this.mInventory[9] = GT_Utility.copyAmount(1L, tmp63_60);
+ if (this.mInventory[9].getItemDamage() == 32767) {
+ this.mInventory[9].setItemDamage(0);
+ }
+ this.mInventory[9].setStackDisplayName(this.mPrefix.toString());
+ }
+ }
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ super.saveNBTData(aNBT);
+ aNBT.setString("mPrefix", this.mPrefix.toString());
+ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
+ aNBT.setBoolean("bNBTAllowed", this.bNBTAllowed);
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ super.loadNBTData(aNBT);
+ this.mPrefix = OrePrefixes.getPrefix(aNBT.getString("mPrefix"), this.mPrefix);
+ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
+ this.bNBTAllowed = aNBT.getBoolean("bNBTAllowed");
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && ((this.bNBTAllowed) || (!aStack.hasTagCompound())) && (this.mPrefix.contains(aStack) != this.bInvertFilter);
+ }
+}
/* 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/boilers/GT_MetaTileEntity_Boiler_Lava.java b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java index 5dee9e7746..35243db699 100644 --- a/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java +++ b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Lava.java @@ -1,163 +1,163 @@ -/* 1: */ package gregtech.common.tileentities.boilers;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.boilers;
+
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
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.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 13: */ import gregtech.common.gui.GT_Container_Boiler;
-/* 14: */ import gregtech.common.gui.GT_GUIContainer_Boiler;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 17: */ import net.minecraftforge.fluids.FluidStack;
-/* 18: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 19: */
-/* 20: */ public class GT_MetaTileEntity_Boiler_Lava
-/* 21: */ extends GT_MetaTileEntity_Boiler
-/* 22: */ {
-/* 23: */ public GT_MetaTileEntity_Boiler_Lava(int aID, String aName, String aNameRegional)
-/* 24: */ {
-/* 25: 22 */ super(aID, aName, aNameRegional, "A Boiler running off Lava", new ITexture[0]);
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Boiler_Lava(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 29: */ {
-/* 30: 26 */ super(aName, aTier, aDescription, aTextures);
-/* 31: */ }
-/* 32: */
-/* 33: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 34: */ {
-/* 35: 31 */ ITexture[][][] rTextures = new ITexture[5][17][];
-/* 36: 32 */ for (byte i = -1; i < 16; i++){
-/* 38: 33 */ rTextures[0][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 39: 34 */ rTextures[1][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
-/* 40: 35 */ rTextures[2][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
-/* 41: 36 */ rTextures[3][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT) };
-/* 42: 37 */ rTextures[4][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT_ACTIVE) };
-/* 43: */ }
-/* 44: 39 */ return rTextures;
-/* 45: */ }
-/* 46: */
-/* 47: */ public int maxProgresstime()
-/* 48: */ {
-/* 49: 42 */ return 1000;
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54: 46 */ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 32000);
-/* 55: */ }
-/* 56: */
-/* 57: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 58: */ {
-/* 59: 51 */ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SteelBoiler.png", 32000);
-/* 60: */ }
-/* 61: */
-/* 62: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 63: */ {
-/* 64: 56 */ return new GT_MetaTileEntity_Boiler_Lava(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 65: */ }
-/* 66: */
-/* 67: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 68: */ {
-/* 69: 61 */ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
-/* 70: */ {
-/* 71: 62 */ if (this.mTemperature <= 20)
-/* 72: */ {
-/* 73: 63 */ this.mTemperature = 20;
-/* 74: 64 */ this.mLossTimer = 0;
-/* 75: */ }
-/* 76: 67 */ if (++this.mLossTimer > 20)
-/* 77: */ {
-/* 78: 68 */ this.mTemperature -= 1;
-/* 79: 69 */ this.mLossTimer = 0;
-/* 80: */ }
-/* 81: 72 */ for (byte i = 1; (this.mSteam != null) && (i < 6); i = (byte)(i + 1)) {
-/* 82: 72 */ if (i != aBaseMetaTileEntity.getFrontFacing())
-/* 83: */ {
-/* 84: 73 */ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
-/* 85: 74 */ if (tTileEntity != null)
-/* 86: */ {
-/* 87: 75 */ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
-/* 88: 76 */ if (tDrained != null)
-/* 89: */ {
-/* 90: 77 */ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
-/* 91: 78 */ if (tFilledAmount > 0) {
-/* 92: 79 */ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
-/* 93: */ }
-/* 94: */ }
-/* 95: */ }
-/* 96: */ }
-/* 97: */ }
-/* 98: 85 */ if (aTick % 10L == 0L) {
-/* 99: 86 */ if (this.mTemperature > 100)
-/* 100: */ {
-/* 101: 87 */ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
-/* 102: */ {
-/* 103: 88 */ this.mHadNoWater = true;
-/* 104: */ }
-/* 105: */ else
-/* 106: */ {
-/* 107: 90 */ if (this.mHadNoWater)
-/* 108: */ {
-/* 109: 91 */ aBaseMetaTileEntity.doExplosion(2048L);
-/* 110: 92 */ return;
-/* 111: */ }
-/* 112: 94 */ this.mFluid.amount -= 1;
-/* 113: 95 */ if (this.mSteam == null) {
-/* 114: 96 */ this.mSteam = GT_ModHandler.getSteam(300L);
-/* 115: 98 */ } else if (GT_ModHandler.isSteam(this.mSteam)) {
-/* 116: 99 */ this.mSteam.amount += 300;
-/* 117: */ } else {
-/* 118:101 */ this.mSteam = GT_ModHandler.getSteam(300L);
-/* 119: */ }
-/* 120: */ }
-/* 121: */ }
-/* 122: */ else {
-/* 123:106 */ this.mHadNoWater = false;
-/* 124: */ }
-/* 125: */ }
-/* 126:110 */ if ((this.mSteam != null) &&
-/* 127:111 */ (this.mSteam.amount > 32000))
-/* 128: */ {
-/* 129:112 */ sendSound((byte)1);
-/* 130:113 */ this.mSteam.amount = 24000;
-/* 131: */ }
-/* 132:117 */ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) &&
-/* 133:118 */ (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.bucket.get(Materials.Lava))))
-/* 134: */ {
-/* 135:119 */ this.mProcessingEnergy += 1000;
-/* 136:120 */ aBaseMetaTileEntity.decrStackSize(2, 1);
-/* 137:121 */ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L));
-/* 138: */ }
-/* 139:125 */ if ((this.mTemperature < 1000) && (this.mProcessingEnergy > 0) && (aTick % 8L == 0L))
-/* 140: */ {
-/* 141:126 */ this.mProcessingEnergy -= 2;
-/* 142:127 */ this.mTemperature += 1;
-/* 143: */ }
-/* 144:130 */ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
-/* 145: */ }
-/* 146: */ }
-/* 147: */
-/* 148: */ public final int fill(FluidStack aFluid, boolean doFill)
-/* 149: */ {
-/* 150:136 */ if ((GT_ModHandler.isLava(aFluid)) && (this.mProcessingEnergy < 50))
-/* 151: */ {
-/* 152:137 */ int tFilledAmount = Math.min(50, aFluid.amount);
-/* 153:138 */ if (doFill) {
-/* 154:138 */ this.mProcessingEnergy += tFilledAmount;
-/* 155: */ }
-/* 156:139 */ return tFilledAmount;
-/* 157: */ }
-/* 158:141 */ return super.fill(aFluid, doFill);
-/* 159: */ }
-/* 160: */ }
+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.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.common.gui.GT_Container_Boiler;
+import gregtech.common.gui.GT_GUIContainer_Boiler;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_MetaTileEntity_Boiler_Lava
+ extends GT_MetaTileEntity_Boiler
+{
+ public GT_MetaTileEntity_Boiler_Lava(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "A Boiler running off Lava", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Boiler_Lava(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[5][17][];
+ for (byte i = -1; i < 16; i++){
+ rTextures[0][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[1][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
+ rTextures[2][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
+ rTextures[3][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT) };
+ rTextures[4][(i + 1)] = new ITexture [] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_LAVA_FRONT_ACTIVE) };
+ }
+ return rTextures;
+ }
+
+ public int maxProgresstime()
+ {
+ return 1000;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 32000);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SteelBoiler.png", 32000);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Boiler_Lava(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
+ {
+ if (this.mTemperature <= 20)
+ {
+ this.mTemperature = 20;
+ this.mLossTimer = 0;
+ }
+ if (++this.mLossTimer > 20)
+ {
+ this.mTemperature -= 1;
+ this.mLossTimer = 0;
+ }
+ for (byte i = 1; (this.mSteam != null) && (i < 6); i = (byte)(i + 1)) {
+ if (i != aBaseMetaTileEntity.getFrontFacing())
+ {
+ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
+ if (tTileEntity != null)
+ {
+ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
+ if (tDrained != null)
+ {
+ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
+ if (tFilledAmount > 0) {
+ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
+ }
+ }
+ }
+ }
+ }
+ if (aTick % 10L == 0L) {
+ if (this.mTemperature > 100)
+ {
+ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
+ {
+ this.mHadNoWater = true;
+ }
+ else
+ {
+ if (this.mHadNoWater)
+ {
+ aBaseMetaTileEntity.doExplosion(2048L);
+ return;
+ }
+ this.mFluid.amount -= 1;
+ if (this.mSteam == null) {
+ this.mSteam = GT_ModHandler.getSteam(300L);
+ } else if (GT_ModHandler.isSteam(this.mSteam)) {
+ this.mSteam.amount += 300;
+ } else {
+ this.mSteam = GT_ModHandler.getSteam(300L);
+ }
+ }
+ }
+ else {
+ this.mHadNoWater = false;
+ }
+ }
+ if ((this.mSteam != null) &&
+ (this.mSteam.amount > 32000))
+ {
+ sendSound((byte)1);
+ this.mSteam.amount = 24000;
+ }
+ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) &&
+ (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.bucket.get(Materials.Lava))))
+ {
+ this.mProcessingEnergy += 1000;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L));
+ }
+ if ((this.mTemperature < 1000) && (this.mProcessingEnergy > 0) && (aTick % 8L == 0L))
+ {
+ this.mProcessingEnergy -= 2;
+ this.mTemperature += 1;
+ }
+ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
+ }
+ }
+
+ public final int fill(FluidStack aFluid, boolean doFill)
+ {
+ if ((GT_ModHandler.isLava(aFluid)) && (this.mProcessingEnergy < 50))
+ {
+ int tFilledAmount = Math.min(50, aFluid.amount);
+ if (doFill) {
+ this.mProcessingEnergy += tFilledAmount;
+ }
+ return tFilledAmount;
+ }
+ return super.fill(aFluid, doFill);
+ }
+}
/* 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/boilers/GT_MetaTileEntity_Boiler_Solar.java b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java index 2d298fed43..da841a59e6 100644 --- a/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java +++ b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Solar.java @@ -1,155 +1,155 @@ -/* 1: */ package gregtech.common.tileentities.boilers;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.boilers;
+
+import gregtech.api.enums.Dyes;
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.objects.GT_RenderedTexture;
-/* 9: */ 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.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_Boiler;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_Boiler;
-/* 12: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 13: */ import net.minecraft.world.World;
-/* 14: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 15: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 16: */ import net.minecraftforge.fluids.FluidStack;
-/* 17: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_Boiler_Solar
-/* 20: */ extends GT_MetaTileEntity_Boiler
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_Boiler_Solar(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 19 */ super(aID, aName, aNameRegional, "Steam Power by the Sun", new ITexture[0]);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Boiler_Solar(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29: 23 */ super(aName, aTier, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 33: */ {
-/* 34: 28 */ ITexture[][][] rTextures = new ITexture[4][17][];
-/* 35: 29 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 36: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 37: 30 */ rTextures[0][(i + 1)] = tmp0;
-/* 38: 31 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_SOLAR) };
+import gregtech.common.gui.GT_Container_Boiler;
+import gregtech.common.gui.GT_GUIContainer_Boiler;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_MetaTileEntity_Boiler_Solar
+ extends GT_MetaTileEntity_Boiler
+{
+ public GT_MetaTileEntity_Boiler_Solar(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Steam Power by the Sun", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Boiler_Solar(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[4][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_SOLAR) };
rTextures[1][(i + 1)] = tmp1;
-/* 39: 32 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] = tmp2;
-/* 40: 33 */ ITexture[] tmp3 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
+ ITexture[] tmp3 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
rTextures[3][(i + 1)] = tmp3;
-/* 41: */ }
-/* 42: 35 */ return rTextures;
-/* 43: */ }
-/* 44: */
-/* 45: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 46: */ {
+ }
+ return rTextures;
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
return mTextures[aSide >= 2 ? ((byte)(aSide != aFacing ? 2 : 3)) : aSide][aColorIndex + 1];
-/* 48: */ }
-/* 49: */
-/* 50: */ public int maxProgresstime()
-/* 51: */ {
-/* 52: 43 */ return 500;
-/* 53: */ }
-/* 54: */
-/* 55: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 56: */ {
-/* 57: 47 */ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 16000);
-/* 58: */ }
-/* 59: */
-/* 60: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 61: */ {
-/* 62: 52 */ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SolarBoiler.png", 16000);
-/* 63: */ }
-/* 64: */
-/* 65: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 66: */ {
-/* 67: 57 */ return new GT_MetaTileEntity_Boiler_Solar(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 68: */ }
-/* 69: */
-/* 70: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 71: */ {
-/* 72: 62 */ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
-/* 73: */ {
-/* 74: 63 */ if (this.mTemperature <= 20)
-/* 75: */ {
-/* 76: 64 */ this.mTemperature = 20;
-/* 77: 65 */ this.mLossTimer = 0;
-/* 78: */ }
-/* 79: 68 */ if (++this.mLossTimer > 45)
-/* 80: */ {
-/* 81: 69 */ this.mTemperature -= 1;
-/* 82: 70 */ this.mLossTimer = 0;
-/* 83: */ }
-/* 84: 73 */ if (this.mSteam != null)
-/* 85: */ {
-/* 86: 74 */ byte i = aBaseMetaTileEntity.getFrontFacing();
-/* 87: 75 */ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
-/* 88: 76 */ if (tTileEntity != null)
-/* 89: */ {
-/* 90: 77 */ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
-/* 91: 78 */ if (tDrained != null)
-/* 92: */ {
-/* 93: 79 */ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
-/* 94: 80 */ if (tFilledAmount > 0) {
-/* 95: 81 */ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
-/* 96: */ }
-/* 97: */ }
-/* 98: */ }
-/* 99: */ }
-/* 100: 87 */ if (aTick % 25L == 0L) {
-/* 101: 88 */ if (this.mTemperature > 100)
-/* 102: */ {
-/* 103: 89 */ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
-/* 104: */ {
-/* 105: 90 */ this.mHadNoWater = true;
-/* 106: */ }
-/* 107: */ else
-/* 108: */ {
-/* 109: 92 */ if (this.mHadNoWater)
-/* 110: */ {
-/* 111: 93 */ aBaseMetaTileEntity.doExplosion(2048L);
-/* 112: 94 */ return;
-/* 113: */ }
-/* 114: 96 */ this.mFluid.amount -= 1;
-/* 115: 97 */ if (this.mSteam == null) {
-/* 116: 98 */ this.mSteam = GT_ModHandler.getSteam(150L);
-/* 117:100 */ } else if (GT_ModHandler.isSteam(this.mSteam)) {
-/* 118:101 */ this.mSteam.amount += 150;
-/* 119: */ } else {
-/* 120:103 */ this.mSteam = GT_ModHandler.getSteam(150L);
-/* 121: */ }
-/* 122: */ }
-/* 123: */ }
-/* 124: */ else {
-/* 125:108 */ this.mHadNoWater = false;
-/* 126: */ }
-/* 127: */ }
-/* 128:112 */ if ((this.mSteam != null) &&
-/* 129:113 */ (this.mSteam.amount > 16000))
-/* 130: */ {
-/* 131:114 */ sendSound((byte)1);
-/* 132:115 */ this.mSteam.amount = 12000;
-/* 133: */ }
-/* 134:119 */ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) && (aTick % 256L == 0L) && (!aBaseMetaTileEntity.getWorld().isThundering()))
-/* 135: */ {
-/* 136:120 */ boolean bRain = (aBaseMetaTileEntity.getWorld().isRaining()) && (aBaseMetaTileEntity.getBiome().rainfall > 0.0F);
-/* 137:121 */ this.mProcessingEnergy += (((!bRain) || (aBaseMetaTileEntity.getWorld().skylightSubtracted < 4)) && (aBaseMetaTileEntity.getSkyAtSide((byte)1)) ? 8 : (bRain) || (!aBaseMetaTileEntity.getWorld().isDaytime()) ? 1 : 0);
-/* 138: */ }
-/* 139:124 */ if ((this.mTemperature < 500) && (this.mProcessingEnergy > 0) && (aTick % 12L == 0L))
-/* 140: */ {
-/* 141:125 */ this.mProcessingEnergy -= 1;
-/* 142:126 */ this.mTemperature += 1;
-/* 143: */ }
-/* 144:129 */ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
-/* 145: */ }
-/* 146: */ }
-/* 147: */ }
+ }
+
+ public int maxProgresstime()
+ {
+ return 500;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 16000);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SolarBoiler.png", 16000);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Boiler_Solar(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
+ {
+ if (this.mTemperature <= 20)
+ {
+ this.mTemperature = 20;
+ this.mLossTimer = 0;
+ }
+ if (++this.mLossTimer > 45)
+ {
+ this.mTemperature -= 1;
+ this.mLossTimer = 0;
+ }
+ if (this.mSteam != null)
+ {
+ byte i = aBaseMetaTileEntity.getFrontFacing();
+ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
+ if (tTileEntity != null)
+ {
+ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
+ if (tDrained != null)
+ {
+ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
+ if (tFilledAmount > 0) {
+ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
+ }
+ }
+ }
+ }
+ if (aTick % 25L == 0L) {
+ if (this.mTemperature > 100)
+ {
+ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
+ {
+ this.mHadNoWater = true;
+ }
+ else
+ {
+ if (this.mHadNoWater)
+ {
+ aBaseMetaTileEntity.doExplosion(2048L);
+ return;
+ }
+ this.mFluid.amount -= 1;
+ if (this.mSteam == null) {
+ this.mSteam = GT_ModHandler.getSteam(150L);
+ } else if (GT_ModHandler.isSteam(this.mSteam)) {
+ this.mSteam.amount += 150;
+ } else {
+ this.mSteam = GT_ModHandler.getSteam(150L);
+ }
+ }
+ }
+ else {
+ this.mHadNoWater = false;
+ }
+ }
+ if ((this.mSteam != null) &&
+ (this.mSteam.amount > 16000))
+ {
+ sendSound((byte)1);
+ this.mSteam.amount = 12000;
+ }
+ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) && (aTick % 256L == 0L) && (!aBaseMetaTileEntity.getWorld().isThundering()))
+ {
+ boolean bRain = (aBaseMetaTileEntity.getWorld().isRaining()) && (aBaseMetaTileEntity.getBiome().rainfall > 0.0F);
+ this.mProcessingEnergy += (((!bRain) || (aBaseMetaTileEntity.getWorld().skylightSubtracted < 4)) && (aBaseMetaTileEntity.getSkyAtSide((byte)1)) ? 8 : (bRain) || (!aBaseMetaTileEntity.getWorld().isDaytime()) ? 1 : 0);
+ }
+ if ((this.mTemperature < 500) && (this.mProcessingEnergy > 0) && (aTick % 12L == 0L))
+ {
+ this.mProcessingEnergy -= 1;
+ this.mTemperature += 1;
+ }
+ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
+ }
+ }
+}
/* 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/boilers/GT_MetaTileEntity_Boiler_Steel.java b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java index c50243e77d..7b8361fa96 100644 --- a/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java +++ b/main/java/gregtech/common/tileentities/boilers/GT_MetaTileEntity_Boiler_Steel.java @@ -1,183 +1,183 @@ -/* 1: */ package gregtech.common.tileentities.boilers;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.boilers;
+
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
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.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 13: */ import gregtech.common.gui.GT_Container_Boiler;
-/* 14: */ import gregtech.common.gui.GT_GUIContainer_Boiler;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 17: */ import net.minecraftforge.fluids.FluidStack;
-/* 18: */ import net.minecraftforge.fluids.IFluidHandler;
-/* 19: */
-/* 20: */ public class GT_MetaTileEntity_Boiler_Steel
-/* 21: */ extends GT_MetaTileEntity_Boiler
-/* 22: */ {
-/* 23: */ public GT_MetaTileEntity_Boiler_Steel(int aID, String aName, String aNameRegional)
-/* 24: */ {
-/* 25: 22 */ super(aID, aName, aNameRegional, "Faster than the Bronze Boiler", new ITexture[0]);
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Boiler_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 29: */ {
-/* 30: 26 */ super(aName, aTier, aDescription, aTextures);
-/* 31: */ }
-/* 32: */
-/* 33: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 34: */ {
-/* 35: 31 */ ITexture[][][] rTextures = new ITexture[5][17][];
-/* 36: 32 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 37: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 38: 33 */ rTextures[0][(i + 1)] = tmp0;
-/* 39: 34 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
+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.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.common.gui.GT_Container_Boiler;
+import gregtech.common.gui.GT_GUIContainer_Boiler;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.fluids.IFluidHandler;
+
+public class GT_MetaTileEntity_Boiler_Steel
+ extends GT_MetaTileEntity_Boiler
+{
+ public GT_MetaTileEntity_Boiler_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Faster than the Bronze Boiler", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Boiler_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[5][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
rTextures[1][(i + 1)] = tmp1;
-/* 40: 35 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_PIPE) };
rTextures[2][(i + 1)] = tmp2;
-/* 41: 36 */ ITexture[] tmp4 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
+ ITexture[] tmp4 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT) };
rTextures[3][(i + 1)] = tmp4;
-/* 42: 37 */ ITexture[] tmp5 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
+ ITexture[] tmp5 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)), new GT_RenderedTexture(Textures.BlockIcons.BOILER_FRONT_ACTIVE) };
rTextures[4][(i + 1)] = tmp5;
-/* 43: */ }
-/* 44: 39 */ return rTextures;
-/* 45: */ }
-/* 46: */
-/* 47: */ public int maxProgresstime()
-/* 48: */ {
-/* 49: 42 */ return 1000;
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54: 46 */ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 32000);
-/* 55: */ }
-/* 56: */
-/* 57: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 58: */ {
-/* 59: 51 */ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SteelBoiler.png", 32000);
-/* 60: */ }
-/* 61: */
-/* 62: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 63: */ {
-/* 64: 56 */ return new GT_MetaTileEntity_Boiler_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 65: */ }
-/* 66: */
-/* 67: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 68: */ {
-/* 69: 61 */ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
-/* 70: */ {
-/* 71: 62 */ if (this.mTemperature <= 20)
-/* 72: */ {
-/* 73: 63 */ this.mTemperature = 20;
-/* 74: 64 */ this.mLossTimer = 0;
-/* 75: */ }
-/* 76: 67 */ if (++this.mLossTimer > 40)
-/* 77: */ {
-/* 78: 68 */ this.mTemperature -= 1;
-/* 79: 69 */ this.mLossTimer = 0;
-/* 80: */ }
-/* 81: 72 */ for (byte i = 1; (this.mSteam != null) && (i < 6); i = (byte)(i + 1)) {
-/* 82: 72 */ if (i != aBaseMetaTileEntity.getFrontFacing())
-/* 83: */ {
-/* 84: 73 */ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
-/* 85: 74 */ if (tTileEntity != null)
-/* 86: */ {
-/* 87: 75 */ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
-/* 88: 76 */ if (tDrained != null)
-/* 89: */ {
-/* 90: 77 */ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
-/* 91: 78 */ if (tFilledAmount > 0) {
-/* 92: 79 */ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
-/* 93: */ }
-/* 94: */ }
-/* 95: */ }
-/* 96: */ }
-/* 97: */ }
-/* 98: 85 */ if (aTick % 10L == 0L) {
-/* 99: 86 */ if (this.mTemperature > 100)
-/* 100: */ {
-/* 101: 87 */ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
-/* 102: */ {
-/* 103: 88 */ this.mHadNoWater = true;
-/* 104: */ }
-/* 105: */ else
-/* 106: */ {
-/* 107: 90 */ if (this.mHadNoWater)
-/* 108: */ {
-/* 109: 91 */ aBaseMetaTileEntity.doExplosion(2048L);
-/* 110: 92 */ return;
-/* 111: */ }
-/* 112: 94 */ this.mFluid.amount -= 1;
-/* 113: 95 */ if (this.mSteam == null) {
-/* 114: 96 */ this.mSteam = GT_ModHandler.getSteam(150L);
-/* 115: 98 */ } else if (GT_ModHandler.isSteam(this.mSteam)) {
-/* 116: 99 */ this.mSteam.amount += 150;
-/* 117: */ } else {
-/* 118:101 */ this.mSteam = GT_ModHandler.getSteam(150L);
-/* 119: */ }
-/* 120: */ }
-/* 121: */ }
-/* 122: */ else {
-/* 123:106 */ this.mHadNoWater = false;
-/* 124: */ }
-/* 125: */ }
-/* 126:110 */ if ((this.mSteam != null) &&
-/* 127:111 */ (this.mSteam.amount > 32000))
-/* 128: */ {
-/* 129:112 */ sendSound((byte)1);
-/* 130:113 */ this.mSteam.amount = 24000;
-/* 131: */ }
-/* 132:117 */ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) &&
-/* 133:118 */ (this.mInventory[2] != null)) {
-/* 134:119 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Coal))))
-/* 135: */ {
-/* 136:123 */ this.mProcessingEnergy += 160;
-/* 137:124 */ aBaseMetaTileEntity.decrStackSize(2, 1);
-/* 138:125 */ if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
-/* 139:126 */ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
-/* 140: */ }
-/* 141: */ }
-/* 142:129 */ else if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Charcoal))))
-/* 143: */ {
-/* 144:133 */ this.mProcessingEnergy += 160;
-/* 145:134 */ aBaseMetaTileEntity.decrStackSize(2, 1);
-/* 146:135 */ if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
-/* 147:136 */ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
-/* 148: */ }
-/* 149: */ }
-/* 150:138 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke"))
-/* 151: */ {
-/* 152:139 */ this.mProcessingEnergy += 640;
-/* 153:140 */ aBaseMetaTileEntity.decrStackSize(2, 1);
-/* 154:141 */ if (aBaseMetaTileEntity.getRandomNumber(2) == 0) {
-/* 155:142 */ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
-/* 156: */ }
-/* 157: */ }
-/* 158:144 */ else if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Lignite))))
-/* 159: */ {
-/* 160:148 */ this.mProcessingEnergy += 40;
-/* 161:149 */ aBaseMetaTileEntity.decrStackSize(2, 1);
-/* 162:150 */ if (aBaseMetaTileEntity.getRandomNumber(8) == 0) {
-/* 163:151 */ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
-/* 164: */ }
-/* 165: */ }
-/* 166: */ }
-/* 167:157 */ if ((this.mTemperature < 1000) && (this.mProcessingEnergy > 0) && (aTick % 12L == 0L))
-/* 168: */ {
-/* 169:158 */ this.mProcessingEnergy -= 2;
-/* 170:159 */ this.mTemperature += 1;
-/* 171: */ }
-/* 172:162 */ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
-/* 173: */ }
-/* 174: */ }
-/* 175: */ }
+ }
+ return rTextures;
+ }
+
+ public int maxProgresstime()
+ {
+ return 1000;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Boiler(aPlayerInventory, aBaseMetaTileEntity, 32000);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Boiler(aPlayerInventory, aBaseMetaTileEntity, "SteelBoiler.png", 32000);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Boiler_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ if ((aBaseMetaTileEntity.isServerSide()) && (aTick > 20L))
+ {
+ if (this.mTemperature <= 20)
+ {
+ this.mTemperature = 20;
+ this.mLossTimer = 0;
+ }
+ if (++this.mLossTimer > 40)
+ {
+ this.mTemperature -= 1;
+ this.mLossTimer = 0;
+ }
+ for (byte i = 1; (this.mSteam != null) && (i < 6); i = (byte)(i + 1)) {
+ if (i != aBaseMetaTileEntity.getFrontFacing())
+ {
+ IFluidHandler tTileEntity = aBaseMetaTileEntity.getITankContainerAtSide(i);
+ if (tTileEntity != null)
+ {
+ FluidStack tDrained = aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), Math.max(1, this.mSteam.amount / 2), false);
+ if (tDrained != null)
+ {
+ int tFilledAmount = tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), tDrained, false);
+ if (tFilledAmount > 0) {
+ tTileEntity.fill(ForgeDirection.getOrientation(i).getOpposite(), aBaseMetaTileEntity.drain(ForgeDirection.getOrientation(i), tFilledAmount, true), true);
+ }
+ }
+ }
+ }
+ }
+ if (aTick % 10L == 0L) {
+ if (this.mTemperature > 100)
+ {
+ if ((this.mFluid == null) || (!GT_ModHandler.isWater(this.mFluid)) || (this.mFluid.amount <= 0))
+ {
+ this.mHadNoWater = true;
+ }
+ else
+ {
+ if (this.mHadNoWater)
+ {
+ aBaseMetaTileEntity.doExplosion(2048L);
+ return;
+ }
+ this.mFluid.amount -= 1;
+ if (this.mSteam == null) {
+ this.mSteam = GT_ModHandler.getSteam(150L);
+ } else if (GT_ModHandler.isSteam(this.mSteam)) {
+ this.mSteam.amount += 150;
+ } else {
+ this.mSteam = GT_ModHandler.getSteam(150L);
+ }
+ }
+ }
+ else {
+ this.mHadNoWater = false;
+ }
+ }
+ if ((this.mSteam != null) &&
+ (this.mSteam.amount > 32000))
+ {
+ sendSound((byte)1);
+ this.mSteam.amount = 24000;
+ }
+ if ((this.mProcessingEnergy <= 0) && (aBaseMetaTileEntity.isAllowedToWork()) &&
+ (this.mInventory[2] != null)) {
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Coal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Coal))))
+ {
+ this.mProcessingEnergy += 160;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
+ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
+ }
+ }
+ else if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Charcoal))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Charcoal))))
+ {
+ this.mProcessingEnergy += 160;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(3) == 0) {
+ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], "fuelCoke"))
+ {
+ this.mProcessingEnergy += 640;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(2) == 0) {
+ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 1L));
+ }
+ }
+ else if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.gem.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dust.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.dustImpure.get(Materials.Lignite))) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[2], OrePrefixes.crushed.get(Materials.Lignite))))
+ {
+ this.mProcessingEnergy += 40;
+ aBaseMetaTileEntity.decrStackSize(2, 1);
+ if (aBaseMetaTileEntity.getRandomNumber(8) == 0) {
+ aBaseMetaTileEntity.addStackToSlot(3, GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 1L));
+ }
+ }
+ }
+ if ((this.mTemperature < 1000) && (this.mProcessingEnergy > 0) && (aTick % 12L == 0L))
+ {
+ this.mProcessingEnergy -= 2;
+ this.mTemperature += 1;
+ }
+ aBaseMetaTileEntity.setActive(this.mProcessingEnergy > 0);
+ }
+ }
+}
/* 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/generators/GT_MetaTileEntity_DieselGenerator.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java index 82c91b5e6f..83c731a632 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java @@ -1,129 +1,129 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import cpw.mods.fml.common.registry.GameRegistry;
+package gregtech.common.tileentities.generators;
+
+import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ItemList;
+import gregtech.api.enums.ItemList;
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.*;
+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.*;
import gregtech.api.objects.GT_ArrayList;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Config;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_DieselGenerator
-/* 16: */ extends GT_MetaTileEntity_BasicGenerator
-/* 17: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_DieselGenerator
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 18: */ public boolean isOutputFacing(byte aSide)
-/* 19: */ {
-/* 20:16 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 21: */ }
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25:19 */ super(aID, aName, aNameRegional, aTier, "Requires liquid Fuel", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires liquid Fuel", new ITexture[0]);
onConfigLoad();
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_DieselGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 29: */ {
-/* 30:23 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_DieselGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35:28 */ return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 36: */ }
-/* 37: */
-/* 38: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 39: */ {
-/* 40:33 */ return GT_Recipe.GT_Recipe_Map.sDieselFuels;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int getCapacity()
-/* 44: */ {
-/* 45:38 */ return 16000;
-/* 46: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sDieselFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
-/* 47: */ public void onConfigLoad()
-/* 39: */ {
+ public void onConfigLoad()
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "DieselGenerator.efficiency.tier."+this.mTier, (100 - this.mTier * 10));
}
-/* 48: */ public int getEfficiency()
-/* 49: */ {
-/* 50:43 */ return this.mEfficiency;
-/* 51: */ }
-/* 52: */
-/* 53: */ public int getFuelValue(ItemStack aStack)
-/* 54: */ {
-/* 55:48 */ int rValue = Math.max(GT_ModHandler.getFuelCanValue(aStack) * 6 / 5, super.getFuelValue(aStack));
-/* 56:49 */ if (ItemList.Fuel_Can_Plastic_Filled.isStackEqual(aStack, false, true)) {
-/* 57:49 */ rValue = Math.max(rValue, GameRegistry.getFuelValue(aStack) * 3);
-/* 58: */ }
-/* 59:50 */ return rValue;
-/* 60: */ }
-/* 61: */
-/* 62: */ public ITexture[] getFront(byte aColor)
-/* 63: */ {
-/* 64:53 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 65: */ }
-/* 66: */
-/* 67: */ public ITexture[] getBack(byte aColor)
-/* 68: */ {
-/* 69:54 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK) };
-/* 70: */ }
-/* 71: */
-/* 72: */ public ITexture[] getBottom(byte aColor)
-/* 73: */ {
-/* 74:55 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
-/* 75: */ }
-/* 76: */
-/* 77: */ public ITexture[] getTop(byte aColor)
-/* 78: */ {
-/* 79:56 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
-/* 80: */ }
-/* 81: */
-/* 82: */ public ITexture[] getSides(byte aColor)
-/* 83: */ {
-/* 84:57 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
-/* 85: */ }
-/* 86: */
-/* 87: */ public ITexture[] getFrontActive(byte aColor)
-/* 88: */ {
-/* 89:58 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 90: */ }
-/* 91: */
-/* 92: */ public ITexture[] getBackActive(byte aColor)
-/* 93: */ {
-/* 94:59 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE) };
-/* 95: */ }
-/* 96: */
-/* 97: */ public ITexture[] getBottomActive(byte aColor)
-/* 98: */ {
-/* 99:60 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
-/* :0: */ }
-/* :1: */
-/* :2: */ public ITexture[] getTopActive(byte aColor)
-/* :3: */ {
-/* :4:61 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
-/* :5: */ }
-/* :6: */
-/* :7: */ public ITexture[] getSidesActive(byte aColor)
-/* :8: */ {
-/* :9:62 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
-/* ;0: */ }
-/* ;1: */ }
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public int getFuelValue(ItemStack aStack)
+ {
+ int rValue = Math.max(GT_ModHandler.getFuelCanValue(aStack) * 6 / 5, super.getFuelValue(aStack));
+ if (ItemList.Fuel_Can_Plastic_Filled.isStackEqual(aStack, false, true)) {
+ rValue = Math.max(rValue, GameRegistry.getFuelValue(aStack) * 3);
+ }
+ return rValue;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
+ }
+}
/* 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/generators/GT_MetaTileEntity_FluidNaquadahReactor.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java index 8de7f135a8..c57cdac772 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java @@ -1,103 +1,103 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.generators;
+
+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_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_FluidNaquadahReactor
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_FluidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires Fluid Heavy Naquadah", new ITexture[0]);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_FluidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sFluidNaquadahReactorFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 16000;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return 100;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT) };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_FluidNaquadahReactor
+ extends GT_MetaTileEntity_BasicGenerator
+{
+ public boolean isOutputFacing(byte aSide)
+ {
+ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
+ }
+
+ public GT_MetaTileEntity_FluidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Fluid Heavy Naquadah", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_FluidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sFluidNaquadahReactorFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
+
+ public int getEfficiency()
+ {
+ return 100;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT) };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT_ACTIVE) };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
+ }
+}
/* 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/generators/GT_MetaTileEntity_GasTurbine.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java index 1d7cc3a846..f6c39bbea5 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
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_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_GasTurbine
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_GasTurbine
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires flammable Gasses", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires flammable Gasses", new ITexture[0]);
onConfigLoad();
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sTurbineFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 16000;
-/* 42: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sTurbineFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
public void onConfigLoad()
-/* 39: */ {
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "GasTurbine.efficiency.tier."+this.mTier, (100 - this.mTier * 10));
}
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return this.mEfficiency;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE_ACTIVE) };
+ }
+}
/* 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/generators/GT_MetaTileEntity_MagicEnergyConverter.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java index 01c2912c51..06935e6137 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java @@ -1,112 +1,112 @@ package gregtech.common.tileentities.generators; -/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; 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_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_MagicEnergyConverter -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_MagicEnergyConverter + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_MagicEnergyConverter(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Put your strange stuff in here", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_MagicEnergyConverter(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Put your strange stuff in here", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sMagicFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sMagicFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyConverter.efficiency.tier."+this.mTier, 100-this.mTier*10); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java index 7e724d3d9e..bb19069cf5 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java @@ -1,6 +1,6 @@ package gregtech.common.tileentities.generators; -/* 3: */ import java.util.ArrayList; +import java.util.ArrayList; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.visnet.VisNetHandler; @@ -21,18 +21,18 @@ import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; 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_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_MagicalEnergyAbsorber -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_MagicalEnergyAbsorber + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; public static boolean sAllowMultipleEggs = true; @@ -44,40 +44,40 @@ import gregtech.api.util.GT_Utility; public static int sDragonEggEnergyPerTick = 128; public static boolean isThaumcraftLoaded; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_MagicalEnergyAbsorber(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Feasts on magic close to it", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_MagicalEnergyAbsorber(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Feasts on magic close to it", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_MagicalEnergyAbsorber(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_MagicalEnergyAbsorber(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sMagicFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sMagicFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.efficiency.tier."+this.mTier, 100-this.mTier*10); this.sAllowMultipleEggs = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.AllowMultipleEggs", false); this.sEnergyPerEnderCrystal = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.EnergyPerTick.EnderCrystal", 32); @@ -221,59 +221,59 @@ import gregtech.api.util.GT_Utility; if(above==null||Blocks.air==above){return false;} return Blocks.dragon_egg == above || above.getUnlocalizedName().equals("tile.dragonEgg"); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java index 26aeea5964..c547432901 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java @@ -1,112 +1,112 @@ package gregtech.common.tileentities.generators; -/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; 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_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_PlasmaGenerator -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_PlasmaGenerator + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_PlasmaGenerator(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Plasma into energy", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_PlasmaGenerator(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Plasma into energy", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_PlasmaGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_PlasmaGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sPlasmaFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sPlasmaFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "PlasmaGenerator.efficiency.tier."+this.mTier, (10 + (this.mTier * 10))); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java index 59177635a3..4e85dbfe92 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java @@ -1,103 +1,103 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.generators;
+
+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_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_SolidNaquadahReactor
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_SolidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires Enriched Naquadah Bolts", new ITexture[0]);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_SolidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sSmallNaquadahReactorFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return 80;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT) };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_SolidNaquadahReactor
+ extends GT_MetaTileEntity_BasicGenerator
+{
+ public boolean isOutputFacing(byte aSide)
+ {
+ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
+ }
+
+ public GT_MetaTileEntity_SolidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Enriched Naquadah Bolts", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_SolidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sSmallNaquadahReactorFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 0;
+ }
+
+ public int getEfficiency()
+ {
+ return 80;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT) };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE) };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE) };
+ }
+}
/* 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/generators/GT_MetaTileEntity_SteamTurbine.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java index 9d3bd0f837..9da9f6b27e 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java @@ -1,126 +1,126 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
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_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 10: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 11: */ import net.minecraftforge.fluids.FluidStack;
-/* 12: */
-/* 13: */ public class GT_MetaTileEntity_SteamTurbine
-/* 14: */ extends GT_MetaTileEntity_BasicGenerator
-/* 15: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_SteamTurbine
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 16: */ public boolean isOutputFacing(byte aSide)
-/* 17: */ {
-/* 18:14 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 19: */ }
-/* 20: */
-/* 21: */ public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier)
-/* 22: */ {
-/* 23:17 */ super(aID, aName, aNameRegional, aTier, "Requires Steam to run", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Steam to run", new ITexture[0]);
onConfigLoad();
-/* 24: */ }
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_SteamTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 27: */ {
-/* 28:21 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_SteamTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 29: */ }
-/* 30: */
-/* 31: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 32: */ {
-/* 33:26 */ return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 34: */ }
-/* 35: */
-/* 36: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 37: */ {
-/* 38:31 */ return null;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getCapacity()
-/* 42: */ {
-/* 43:36 */ return 24000 * this.mTier;
-/* 44: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return null;
+ }
+
+ public int getCapacity()
+ {
+ return 24000 * this.mTier;
+ }
public void onConfigLoad()
-/* 39: */ {
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "SteamTurbine.efficiency.tier."+this.mTier, (200 / consumedFluidPerOperation(GT_ModHandler.getSteam(1L))));
}
-/* 45: */
-/* 46: */ public int getEfficiency()
-/* 47: */ {
-/* 48:41 */ return this.mEfficiency;
-/* 49: */ }
-/* 50: */
-/* 51: */ public int getFuelValue(FluidStack aLiquid)
-/* 52: */ {
-/* 53:46 */ return GT_ModHandler.isSteam(aLiquid) ? 1 : 0;
-/* 54: */ }
-/* 55: */
-/* 56: */ public int consumedFluidPerOperation(FluidStack aLiquid)
-/* 57: */ {
-/* 58:51 */ return 2 + this.mTier;
-/* 59: */ }
-/* 60: */
-/* 61: */ public ITexture[] getFront(byte aColor)
-/* 62: */ {
-/* 63:54 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 64: */ }
-/* 65: */
-/* 66: */ public ITexture[] getBack(byte aColor)
-/* 67: */ {
-/* 68:55 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK) };
-/* 69: */ }
-/* 70: */
-/* 71: */ public ITexture[] getBottom(byte aColor)
-/* 72: */ {
-/* 73:56 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM) };
-/* 74: */ }
-/* 75: */
-/* 76: */ public ITexture[] getTop(byte aColor)
-/* 77: */ {
-/* 78:57 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP) };
-/* 79: */ }
-/* 80: */
-/* 81: */ public ITexture[] getSides(byte aColor)
-/* 82: */ {
-/* 83:58 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE) };
-/* 84: */ }
-/* 85: */
-/* 86: */ public ITexture[] getFrontActive(byte aColor)
-/* 87: */ {
-/* 88:59 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 89: */ }
-/* 90: */
-/* 91: */ public ITexture[] getBackActive(byte aColor)
-/* 92: */ {
-/* 93:60 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK_ACTIVE) };
-/* 94: */ }
-/* 95: */
-/* 96: */ public ITexture[] getBottomActive(byte aColor)
-/* 97: */ {
-/* 98:61 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM_ACTIVE) };
-/* 99: */ }
-/* :0: */
-/* :1: */ public ITexture[] getTopActive(byte aColor)
-/* :2: */ {
-/* :3:62 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP_ACTIVE) };
-/* :4: */ }
-/* :5: */
-/* :6: */ public ITexture[] getSidesActive(byte aColor)
-/* :7: */ {
-/* :8:63 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE_ACTIVE) };
-/* :9: */ }
-/* ;0: */ }
+
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public int getFuelValue(FluidStack aLiquid)
+ {
+ return GT_ModHandler.isSteam(aLiquid) ? 1 : 0;
+ }
+
+ public int consumedFluidPerOperation(FluidStack aLiquid)
+ {
+ return 2 + this.mTier;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE_ACTIVE) };
+ }
+}
/* 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/GT_MetaTileEntity_BasicHull_Bronze.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java index 567fa05557..1ca02b7c02 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java @@ -1,44 +1,44 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_Bronze
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_Bronze(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {
-/* 34:29 */ rTextures[0][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 35:30 */ rTextures[1][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 36:31 */ rTextures[2][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_Bronze
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_Bronze(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {
+ rTextures[0][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[1][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[2][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ }
+ return rTextures;
+ }
+}
/* 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/GT_MetaTileEntity_BasicHull_BronzeBricks.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java index cbad52bfc1..bd7004ba91 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java @@ -1,45 +1,45 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.*;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_BronzeBricks
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_BronzeBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.*;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_BronzeBricks
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_BronzeBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] =tmp1;
-/* 36:31 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] = tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* 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/GT_MetaTileEntity_BasicHull_Steel.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java index b7eb59ff4c..77f3033bfd 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java @@ -1,46 +1,46 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_Steel
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_Steel(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_Steel
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_Steel(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] = tmp1;
-/* 36:31 */ ITexture[] tmp2 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] =tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* 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/GT_MetaTileEntity_BasicHull_SteelBricks.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java index 592d167da7..83bf759015 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java @@ -1,46 +1,46 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_SteelBricks
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_SteelBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_SteelBricks
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_SteelBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] = tmp1;
-/* 36:31 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] = tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* 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_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 (getFillableStack().amount < 750) {
-/* 134: 92 */ return 0;
-/* 135: */ }
-/* 136: 93 */ getInputAt(0).stackSize -= 1;
-/* 137: 94 */ getFillableStack().amount -= 750;
-/* 138: 95 */ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 139: 96 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 140: 97 */ return 2;
-/* 141: */ }
-/* 142: */
-/* 143: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 144: */ {
-/* 145:102 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 146: */ }
-/* 147: */
-/* 148: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 149: */ {
-/* 150:107 */ return (aFluid.getFluid().getName().startsWith("potion.")) || (super.isFluidInputAllowed(aFluid));
-/* 151: */ }
-/* 152: */
-/* 153: */ public int getCapacity()
-/* 154: */ {
-/* 155:112 */ return 750;
-/* 156: */ }
-/* 157: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidRegistry;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_PotionBrewer
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_PotionBrewer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ 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) });
+ }
+
+ public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_PotionBrewer(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.sBrewingRecipes;
+ }
+
+ public int checkRecipe()
+ {
+ int tCheck = super.checkRecipe();
+ if (tCheck != 0) {
+ return tCheck;
+ }
+ FluidStack aFluid = getFillableStack();
+ if ((getDrainableStack() == null) && (aFluid != null) && (getInputAt(0) != null))
+ {
+ String tInputName = aFluid.getFluid().getName();
+ if (tInputName.startsWith("potion."))
+ {
+ tInputName = tInputName.replaceFirst("potion.", "");
+ int tFirstDot = tInputName.indexOf('.') + 1;
+ String tModifier = tFirstDot <= 0 ? "" : tInputName.substring(tFirstDot);
+ if (!tModifier.isEmpty()) {
+ tInputName = tInputName.replaceFirst("." + tModifier, "");
+ }
+ if (GT_Utility.areStacksEqual(new ItemStack(Items.fermented_spider_eye, 1, 0), getInputAt(0)))
+ {
+ if (tInputName.equals("poison")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("health")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("waterbreathing")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("nightvision")) {
+ return setOutput("potion.invisibility" + tModifier);
+ }
+ if (tInputName.equals("fireresistance")) {
+ return setOutput("potion.slowness" + tModifier);
+ }
+ if (tInputName.equals("speed")) {
+ return setOutput("potion.slowness" + tModifier);
+ }
+ if (tInputName.equals("strength")) {
+ return setOutput("potion.weakness" + tModifier);
+ }
+ if (tInputName.equals("regen")) {
+ return setOutput("potion.poison" + tModifier);
+ }
+ return setOutput("potion.weakness");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), getInputAt(0)))
+ {
+ if (!tModifier.startsWith("strong")) {
+ return setOutput("potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
+ }
+ if (tModifier.startsWith("long")) {
+ return setOutput("potion." + tInputName + tModifier.replaceFirst("long", ""));
+ }
+ return setOutput("potion.thick");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), getInputAt(0)))
+ {
+ if (!tModifier.startsWith("long")) {
+ return setOutput("potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
+ }
+ if (tModifier.startsWith("strong")) {
+ return setOutput("potion." + tInputName + tModifier.replaceFirst("strong", ""));
+ }
+ return setOutput("potion.mundane");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), getInputAt(0)))
+ {
+ if (!tInputName.endsWith(".splash")) {
+ return setOutput("potion." + tInputName + ".splash");
+ }
+ return setOutput("potion.mundane");
+ }
+ }
+ }
+ return 0;
+ }
+
+ private final int setOutput(String aFluidName)
+ {
+ this.mOutputFluid = FluidRegistry.getFluidStack(aFluidName, 750);
+ if (this.mOutputFluid == null)
+ {
+ this.mOutputFluid = FluidRegistry.getFluidStack("potion.mundane", getFillableStack().amount);
+ getInputAt(0).stackSize -= 1;
+ getFillableStack().amount = 0;
+ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ return 2;
+ }
+ if (getFillableStack().amount < 750) {
+ return 0;
+ }
+ getInputAt(0).stackSize -= 1;
+ getFillableStack().amount -= 750;
+ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ return 2;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return (aFluid.getFluid().getName().startsWith("potion.")) || (super.isFluidInputAllowed(aFluid));
+ }
+
+ public int getCapacity()
+ {
+ return 750;
+ }
+}
/* 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_Printer.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java index 8cd02d4c3d..bf10c5143e 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java @@ -1,68 +1,68 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.OrePrefixes;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 8: */ import gregtech.api.util.GT_OreDictUnificator;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 11: */ import java.util.ArrayList;
+import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */
-/* 14: */ public class GT_MetaTileEntity_Printer
-/* 15: */ extends GT_MetaTileEntity_BasicMachine
-/* 16: */ {
-/* 17: */ public GT_MetaTileEntity_Printer(int aID, String aName, String aNameRegional, int aTier)
-/* 18: */ {
-/* 19:19 */ super(aID, aName, aNameRegional, aTier, 1, "It can copy Books and paint Stuff", 1, 1, "Printer.png", GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName, new ITexture[0]);
-/* 20: */ }
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Printer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 23: */ {
-/* 24:23 */ super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName);
-/* 25: */ }
-/* 26: */
-/* 27: */ public int checkRecipe()
-/* 28: */ {
-/* 29:28 */ if (getOutputAt(0) != null)
-/* 30: */ {
-/* 31:29 */ this.mOutputBlocked += 1;
-/* 32: */ }
-/* 33:30 */ else if ((GT_Utility.isStackValid(getInputAt(0))) && (getInputAt(0).stackSize > 0) &&
-/* 34:31 */ (GT_Utility.isStackInvalid(getSpecialSlot())) &&
-/* 35:32 */ (OrePrefixes.block.contains(getInputAt(0))))
-/* 36: */ {
-/* 37:33 */ ArrayList<ItemStack> tList = GT_OreDictUnificator.getOres(GT_OreDictUnificator.getAssociation(getInputAt(0)));
-/* 38:34 */ if (tList.size() > 1)
-/* 39: */ {
-/* 40:35 */ tList.add(tList.get(0));
-/* 41:36 */ int i = 0;
-/* 42:36 */ for (int j = tList.size() - 1; i < j; i++) {
-/* 43:37 */ if (GT_Utility.areStacksEqual(getInputAt(0), (ItemStack)tList.get(i)))
-/* 44: */ {
-/* 45:38 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { tList.get(i + 1) });
-/* 46:39 */ this.mEUt = (1 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 47:40 */ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
-/* 48:41 */ getInputAt(0).stackSize -= 1;
-/* 49:42 */ return 2;
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53: */ }
-/* 54:49 */ this.mMaxProgresstime = 0;
-/* 55:50 */ return 0;
-/* 56: */ }
-/* 57: */
-/* 58: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 59: */ {
-/* 60:56 */ return null;
-/* 61: */ }
-/* 62: */ }
+public class GT_MetaTileEntity_Printer
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Printer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "It can copy Books and paint Stuff", 1, 1, "Printer.png", GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName, new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Printer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ if (getOutputAt(0) != null)
+ {
+ this.mOutputBlocked += 1;
+ }
+ else if ((GT_Utility.isStackValid(getInputAt(0))) && (getInputAt(0).stackSize > 0) &&
+ (GT_Utility.isStackInvalid(getSpecialSlot())) &&
+ (OrePrefixes.block.contains(getInputAt(0))))
+ {
+ ArrayList<ItemStack> tList = GT_OreDictUnificator.getOres(GT_OreDictUnificator.getAssociation(getInputAt(0)));
+ if (tList.size() > 1)
+ {
+ tList.add(tList.get(0));
+ int i = 0;
+ for (int j = tList.size() - 1; i < j; i++) {
+ if (GT_Utility.areStacksEqual(getInputAt(0), (ItemStack)tList.get(i)))
+ {
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { tList.get(i + 1) });
+ this.mEUt = (1 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
+ getInputAt(0).stackSize -= 1;
+ return 2;
+ }
+ }
+ }
+ }
+ this.mMaxProgresstime = 0;
+ return 0;
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return 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_Replicator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java index c2020ca7fa..d81103fbc5 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java @@ -1,122 +1,122 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Element;
-/* 5: */ import gregtech.api.enums.ItemList;
-/* 6: */ import gregtech.api.enums.Materials;
-/* 7: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Element;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 8: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 9: */ import gregtech.api.interfaces.ITexture;
-/* 10: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 11: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 12: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 13: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 14: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 15: */ import gregtech.api.util.GT_Utility;
-/* 16: */ import gregtech.common.items.behaviors.Behaviour_DataOrb;
+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_Utility;
+import gregtech.common.items.behaviors.Behaviour_DataOrb;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
-/* 17: */ import java.util.ArrayList;
-/* 18: */ import java.util.Collection;
-/* 19: */ import java.util.Iterator;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.FluidStack;
-/* 20: */ import net.minecraft.item.ItemStack;
-/* 21: */ import net.minecraftforge.fluids.FluidStack;
-/* 22: */
-/* 23: */ public class GT_MetaTileEntity_Replicator
-/* 24: */ extends GT_MetaTileEntity_BasicMachine
-/* 25: */ {
-/* 26:18 */ private static int sHeaviestElementMass = 0;
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Replicator(int aID, String aName, String aNameRegional, int aTier)
-/* 29: */ {
-/* 30:21 */ super(aID, aName, aNameRegional, aTier, 1, "Producing Elemental Matter", 1, 1, "Replicator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR) });
-/* 31: */ }
-/* 32: */
-/* 33: */ public GT_MetaTileEntity_Replicator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 34: */ {
-/* 35:25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 39: */ {
-/* 40:30 */ return new GT_MetaTileEntity_Replicator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 41: */ }
-/* 42: */
-/* 43: */ public int checkRecipe()
-/* 44: */ {
-/* 45:35 */ FluidStack tFluid = getFillableStack();
-/* 46:36 */ if ((tFluid != null) && (tFluid.isFluidEqual(Materials.UUMatter.getFluid(1L))))
-/* 47: */ {
-/* 48:37 */ ItemStack tDataOrb = getSpecialSlot();
-/* 49:38 */ if ((ItemList.Tool_DataOrb.isStackEqual(tDataOrb, false, true)) && (Behaviour_DataOrb.getDataTitle(tDataOrb).equals("Elemental-Scan")))
-/* 50: */ {
-/* 51:39 */ Materials tMaterial = (Materials)Element.get(Behaviour_DataOrb.getDataName(tDataOrb)).mLinkedMaterials.get(0);
-/* 52:40 */ long tMass = tMaterial.getMass();
-/* 53:41 */ if ((tFluid.amount >= tMass) && (tMass > 0L))
-/* 54: */ {
-/* 55:42 */ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
-/* 56:43 */ this.mMaxProgresstime = ((int)(tMass * 512L / (1 << this.mTier - 1)));
-/* 57:44 */ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L)) == null)
-/* 58: */ {
-/* 59:45 */ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L)) != null) {
-/* 60:46 */ if ((this.mOutputFluid = GT_Utility.getFluidForFilledItem(this.mOutputItems[0], true)) == null)
-/* 61: */ {
-/* 62:47 */ if (ItemList.Cell_Empty.isStackEqual(getInputAt(0))) {
-/* 63:48 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 64: */ {
-/* 65:49 */ getInputAt(0).stackSize -= 1; FluidStack
-/* 66:50 */ tmp231_230 = tFluid;tmp231_230.amount = ((int)(tmp231_230.amount - tMass));
-/* 67:51 */ return 2;
-/* 68: */ }
-/* 69: */ }
-/* 70: */ }
-/* 71: */ else
-/* 72: */ {
-/* 73:55 */ this.mOutputItems[0] = null;
-/* 74:56 */ if ((getDrainableStack() == null) || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) && (getDrainableStack().amount < 16000)))
-/* 75: */ {
-/* 76:57 */ FluidStack tmp287_286 = tFluid;tmp287_286.amount = ((int)(tmp287_286.amount - tMass));
-/* 77:58 */ return 2;
-/* 78: */ }
-/* 79: */ }
-/* 80: */ }
-/* 81: */ }
-/* 82:62 */ else if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 83: */ {
-/* 84:63 */ FluidStack tmp322_321 = tFluid;tmp322_321.amount = ((int)(tmp322_321.amount - tMass));
-/* 85:64 */ return 2;
-/* 86: */ }
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90:69 */ return 0;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 94: */ {
-/* 95:74 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (ItemList.Cell_Empty.isStackEqual(aStack));
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 99: */ {
-/* :0:79 */ return aFluid.isFluidEqual(Materials.UUMatter.getFluid(1L));
-/* :1: */ }
-/* :2: */
-/* :3: */ public int getCapacity()
-/* :4: */ {
-/* :5:84 */ if ((sHeaviestElementMass == 0) && (GregTech_API.sPostloadFinished))
-/* :6: */ {
-/* :7: */ Materials tMaterial;
-/* :8:84 */ for (Iterator i$ = Materials.VALUES.iterator(); i$.hasNext(); sHeaviestElementMass = Math.max(sHeaviestElementMass, (int)tMaterial.getMass()))
-/* :9: */ {
-/* ;0:84 */ tMaterial = (Materials)i$.next();
-/* ;1:84 */ if ((tMaterial.mElement == null) || (tMaterial.mElement.mIsIsotope)) {}
-/* ;2: */ }
-/* ;3: */ }
-/* ;4:85 */ return sHeaviestElementMass;
-/* ;5: */ }
-/* ;6: */ }
+public class GT_MetaTileEntity_Replicator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ private static int sHeaviestElementMass = 0;
+
+ public GT_MetaTileEntity_Replicator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Producing Elemental Matter", 1, 1, "Replicator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR) });
+ }
+
+ public GT_MetaTileEntity_Replicator(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_Replicator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ FluidStack tFluid = getFillableStack();
+ if ((tFluid != null) && (tFluid.isFluidEqual(Materials.UUMatter.getFluid(1L))))
+ {
+ ItemStack tDataOrb = getSpecialSlot();
+ if ((ItemList.Tool_DataOrb.isStackEqual(tDataOrb, false, true)) && (Behaviour_DataOrb.getDataTitle(tDataOrb).equals("Elemental-Scan")))
+ {
+ Materials tMaterial = (Materials)Element.get(Behaviour_DataOrb.getDataName(tDataOrb)).mLinkedMaterials.get(0);
+ long tMass = tMaterial.getMass();
+ if ((tFluid.amount >= tMass) && (tMass > 0L))
+ {
+ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
+ this.mMaxProgresstime = ((int)(tMass * 512L / (1 << this.mTier - 1)));
+ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L)) == null)
+ {
+ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L)) != null) {
+ if ((this.mOutputFluid = GT_Utility.getFluidForFilledItem(this.mOutputItems[0], true)) == null)
+ {
+ if (ItemList.Cell_Empty.isStackEqual(getInputAt(0))) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 1; FluidStack
+ tmp231_230 = tFluid;tmp231_230.amount = ((int)(tmp231_230.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ else
+ {
+ this.mOutputItems[0] = null;
+ if ((getDrainableStack() == null) || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) && (getDrainableStack().amount < 16000)))
+ {
+ FluidStack tmp287_286 = tFluid;tmp287_286.amount = ((int)(tmp287_286.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ }
+ else if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ FluidStack tmp322_321 = tFluid;tmp322_321.amount = ((int)(tmp322_321.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (ItemList.Cell_Empty.isStackEqual(aStack));
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return aFluid.isFluidEqual(Materials.UUMatter.getFluid(1L));
+ }
+
+ public int getCapacity()
+ {
+ if ((sHeaviestElementMass == 0) && (GregTech_API.sPostloadFinished))
+ {
+ Materials tMaterial;
+ for (Iterator i$ = Materials.VALUES.iterator(); i$.hasNext(); sHeaviestElementMass = Math.max(sHeaviestElementMass, (int)tMaterial.getMass()))
+ {
+ tMaterial = (Materials)i$.next();
+ if ((tMaterial.mElement == null) || (tMaterial.mElement.mIsIsotope)) {}
+ }
+ }
+ return sHeaviestElementMass;
+ }
+}
/* 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_RockBreaker.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java index 6bcc5b5074..d65970dbac 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java @@ -1,85 +1,85 @@ -/* 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.Blocks;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_RockBreaker
-/* 18: */ extends GT_MetaTileEntity_BasicMachine
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_RockBreaker(int aID, String aName, String aNameRegional, int aTier)
-/* 21: */ {
-/* 22:19 */ super(aID, aName, aNameRegional, aTier, 1, "Put Lava and Water adjacent", 1, 1, "RockBreaker.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER) });
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_RockBreaker(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 26: */ {
-/* 27:23 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32:28 */ return new GT_MetaTileEntity_RockBreaker(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 36: */ {
-/* 37:33 */ return GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes;
-/* 38: */ }
-/* 39: */
-/* 40: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 41: */ {
-/* 42:38 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 43: */ }
-/* 44: */
-/* 45: */ public int checkRecipe()
-/* 46: */ {
-/* 47:43 */ IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity();
-/* 48:44 */ if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water))
-/* 49: */ {
-/* 50:45 */ ItemStack tOutput = null;
-/* 51:46 */ if (aBaseMetaTileEntity.getBlockOffset(0, 1, 0) == Blocks.lava) {
-/* 52:47 */ tOutput = new ItemStack(Blocks.stone, 1);
-/* 53:49 */ } else if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) {
-/* 54:50 */ tOutput = new ItemStack(Blocks.cobblestone, 1);
-/* 55: */ }
-/* 56:52 */ if (tOutput != null) {
-/* 57:53 */ if (GT_Utility.areStacksEqual(getInputAt(0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)))
-/* 58: */ {
-/* 59:54 */ tOutput = new ItemStack(Blocks.obsidian, 1);
-/* 60:55 */ if (canOutput(new ItemStack[] { tOutput }))
-/* 61: */ {
-/* 62:56 */ getInputAt(0).stackSize -= 1;
-/* 63:57 */ this.mOutputItems[0] = tOutput;
-/* 64:58 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 65:59 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 66:60 */ return 2;
-/* 67: */ }
-/* 68: */ }
-/* 69:63 */ else if (canOutput(new ItemStack[] { tOutput }))
-/* 70: */ {
-/* 71:64 */ this.mOutputItems[0] = tOutput;
-/* 72:65 */ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
-/* 73:66 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 74:67 */ return 2;
-/* 75: */ }
-/* 76: */ }
-/* 77: */ }
-/* 78:72 */ return 0;
-/* 79: */ }
-/* 80: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_RockBreaker
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_RockBreaker(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Put Lava and Water adjacent", 1, 1, "RockBreaker.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER) });
+ }
+
+ public GT_MetaTileEntity_RockBreaker(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_RockBreaker(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.sRockBreakerFakeRecipes;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public int checkRecipe()
+ {
+ IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity();
+ if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water))
+ {
+ ItemStack tOutput = null;
+ if (aBaseMetaTileEntity.getBlockOffset(0, 1, 0) == Blocks.lava) {
+ tOutput = new ItemStack(Blocks.stone, 1);
+ } else if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) {
+ tOutput = new ItemStack(Blocks.cobblestone, 1);
+ }
+ if (tOutput != null) {
+ if (GT_Utility.areStacksEqual(getInputAt(0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)))
+ {
+ tOutput = new ItemStack(Blocks.obsidian, 1);
+ if (canOutput(new ItemStack[] { tOutput }))
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mOutputItems[0] = tOutput;
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ else if (canOutput(new ItemStack[] { tOutput }))
+ {
+ this.mOutputItems[0] = tOutput;
+ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
+}
/* 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_Scanner.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java index 72d613d225..3360369114 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java @@ -1,179 +1,179 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import forestry.api.genetics.AlleleManager;
-/* 4: */ import forestry.api.genetics.IAlleleRegistry;
-/* 5: */ import forestry.api.genetics.IIndividual;
+package gregtech.common.tileentities.machines.basic;
+
+import forestry.api.genetics.AlleleManager;
+import forestry.api.genetics.IAlleleRegistry;
+import forestry.api.genetics.IIndividual;
import gregtech.GT_Mod;
-/* 6: */ import gregtech.api.GregTech_API;
-/* 7: */ import gregtech.api.enums.Element;
-/* 8: */ import gregtech.api.enums.GT_Values;
-/* 9: */ import gregtech.api.enums.ItemList;
-/* 10: */ import gregtech.api.enums.Materials;
-/* 11: */ import gregtech.api.enums.OrePrefixes;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Element;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 12: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 13: */ import gregtech.api.interfaces.ITexture;
-/* 14: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 15: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 16: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 17: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 18: */ import gregtech.api.objects.ItemData;
-/* 19: */ import gregtech.api.objects.MaterialStack;
-/* 20: */ import gregtech.api.util.GT_Log;
-/* 21: */ 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.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 22: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 23: */ import gregtech.api.util.GT_Utility;
-/* 24: */ import gregtech.common.items.behaviors.Behaviour_DataOrb;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.items.behaviors.Behaviour_DataOrb;
+
+import java.util.Map;
-/* 25: */ import java.util.Map;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.fluids.FluidStack;
-/* 26: */ import net.minecraft.init.Items;
-/* 27: */ import net.minecraft.item.ItemStack;
-/* 28: */ import net.minecraft.nbt.NBTTagCompound;
-/* 29: */ import net.minecraftforge.fluids.FluidStack;
-/* 30: */
-/* 31: */ public class GT_MetaTileEntity_Scanner
-/* 32: */ extends GT_MetaTileEntity_BasicMachine
-/* 33: */ {
-/* 34: */ public GT_MetaTileEntity_Scanner(int aID, String aName, String aNameRegional, int aTier)
-/* 35: */ {
-/* 36: 29 */ super(aID, aName, aNameRegional, aTier, 1, "Scans Crops and other things.", 1, 1, "Scanner.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER) });
-/* 37: */ }
-/* 38: */
-/* 39: */ public GT_MetaTileEntity_Scanner(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 40: */ {
-/* 41: 33 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 42: */ }
-/* 43: */
-/* 44: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 45: */ {
-/* 46: 38 */ return new GT_MetaTileEntity_Scanner(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 47: */ }
-/* 48: */
-/* 49: */ public int checkRecipe()
-/* 50: */ {
-/* 51: 43 */ ItemStack aStack = getInputAt(0);
-/* 52: 44 */ if (getOutputAt(0) != null)
-/* 53: */ {
-/* 54: 45 */ this.mOutputBlocked += 1;
-/* 55: */ }
-/* 56: 46 */ else if ((GT_Utility.isStackValid(aStack)) && (aStack.stackSize > 0))
-/* 57: */ {
-/* 58: 47 */ if ((getFillableStack() != null) && (getFillableStack().containsFluid(Materials.Honey.getFluid(100L)))) {
-/* 59: */ try
-/* 60: */ {
-/* 61: 49 */ Object tIndividual = AlleleManager.alleleRegistry.getIndividual(aStack);
-/* 62: 50 */ if (tIndividual != null)
-/* 63: */ {
-/* 64: 51 */ if (((IIndividual)tIndividual).analyze())
-/* 65: */ {
-/* 66: 52 */ getFillableStack().amount -= 100;
-/* 67: 53 */ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
-/* 68: 54 */ aStack.stackSize = 0;
-/* 69: 55 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 70: 56 */ ((IIndividual)tIndividual).writeToNBT(tNBT);
-/* 71: 57 */ this.mOutputItems[0].setTagCompound(tNBT);
-/* 72: 58 */ this.mMaxProgresstime = (500 / (1 << this.mTier - 1));
-/* 73: 59 */ this.mEUt = (2 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 74: 60 */ return 2;
-/* 75: */ }
-/* 76: 62 */ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
-/* 77: 63 */ aStack.stackSize = 0;
-/* 78: 64 */ this.mMaxProgresstime = 1;
-/* 79: 65 */ this.mEUt = 1;
-/* 80: 66 */ return 2;
-/* 81: */ }
-/* 82: */ }
-/* 83: */ catch (Throwable e)
-/* 84: */ {
-/* 85: 69 */ if (GT_Values.D1) {
-/* 86: 69 */ e.printStackTrace(GT_Log.err);
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 72 */ if (ItemList.IC2_Crop_Seeds.isStackEqual(aStack, true, true))
-/* 91: */ {
-/* 92: 73 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 93: 74 */ if (tNBT == null) {
-/* 94: 74 */ tNBT = new NBTTagCompound();
-/* 95: */ }
-/* 96: 75 */ if (tNBT.getByte("scan") < 4)
-/* 97: */ {
-/* 98: 76 */ tNBT.setByte("scan", (byte)4);
-/* 99: 77 */ this.mMaxProgresstime = (160 / (1 << this.mTier - 1));
-/* 100: 78 */ this.mEUt = (8 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 101: */ }
-/* 102: */ else
-/* 103: */ {
-/* 104: 80 */ this.mMaxProgresstime = 1;
-/* 105: 81 */ this.mEUt = 1;
-/* 106: */ }
-/* 107: 83 */ aStack.stackSize -= 1;
-/* 108: 84 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { aStack });
-/* 109: 85 */ this.mOutputItems[0].setTagCompound(tNBT);
-/* 110: 86 */ return 2;
-/* 111: */ }
-/* 112: 88 */ if (ItemList.Tool_DataOrb.isStackEqual(getSpecialSlot(), false, true))
-/* 113: */ {
-/* 114: 89 */ if (ItemList.Tool_DataOrb.isStackEqual(aStack, false, true))
-/* 115: */ {
-/* 116: 90 */ aStack.stackSize -= 1;
-/* 117: 91 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 118: 92 */ this.mMaxProgresstime = (512 / (1 << this.mTier - 1));
-/* 119: 93 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 120: 94 */ return 2;
-/* 121: */ }
-/* 122: 96 */ ItemData tData = GT_OreDictUnificator.getAssociation(aStack);
-/* 123: 97 */ if ((tData != null) && ((tData.mPrefix == OrePrefixes.dust) || (tData.mPrefix == OrePrefixes.cell)) && (tData.mMaterial.mMaterial.mElement != null) && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) && (tData.mMaterial.mMaterial != Materials.Magic) && (tData.mMaterial.mMaterial.getMass() > 0L))
-/* 124: */ {
-/* 125: 98 */ getSpecialSlot().stackSize -= 1;
-/* 126: 99 */ aStack.stackSize -= 1;
-/* 127: */
-/* 128:101 */ this.mOutputItems[0] = ItemList.Tool_DataOrb.get(1L, new Object[0]);
-/* 129:102 */ Behaviour_DataOrb.setDataTitle(this.mOutputItems[0], "Elemental-Scan");
-/* 130:103 */ Behaviour_DataOrb.setDataName(this.mOutputItems[0], tData.mMaterial.mMaterial.mElement.name());
-/* 132:105 */ this.mMaxProgresstime = ((int)(tData.mMaterial.mMaterial.getMass() * 8192L / (1 << this.mTier - 1)));
-/* 133:106 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 134:107 */ return 2;
-/* 135: */ }
-/* 136: */ }
-/* 137:110 */ if (ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true))
-/* 138: */ {
-/* 139:111 */ if (ItemList.Tool_DataStick.isStackEqual(aStack, false, true))
-/* 140: */ {
-/* 141:112 */ aStack.stackSize -= 1;
-/* 142:113 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 143:114 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 144:115 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 145:116 */ return 2;
-/* 146: */ }
-/* 147:118 */ if (aStack.getItem() == Items.written_book)
-/* 148: */ {
-/* 149:119 */ getSpecialSlot().stackSize -= 1;
-/* 150:120 */ aStack.stackSize -= 1;
-/* 151: */
-/* 152:122 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 153:123 */ this.mOutputItems[0].setTagCompound(aStack.getTagCompound());
-/* 154:124 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 155:125 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 156:126 */ return 2;
-/* 157: */ }
-/* 158:128 */ if (aStack.getItem() == Items.filled_map)
-/* 159: */ {
-/* 160:129 */ getSpecialSlot().stackSize -= 1;
-/* 161:130 */ aStack.stackSize -= 1;
-/* 162: */
-/* 163:132 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 164:133 */ this.mOutputItems[0].setTagCompound(GT_Utility.getNBTContainingShort(new NBTTagCompound(), "map_id", (short)aStack.getItemDamage()));
-/* 165:134 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 166:135 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 167:136 */ return 2;
-/* 168: */ }
-/* 169: */ }
-/* 170: */ }
-/* 171:140 */ return 0;
-/* 172: */ }
+public class GT_MetaTileEntity_Scanner
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Scanner(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Scans Crops and other things.", 1, 1, "Scanner.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER) });
+ }
+
+ public GT_MetaTileEntity_Scanner(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_Scanner(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ ItemStack aStack = getInputAt(0);
+ if (getOutputAt(0) != null)
+ {
+ this.mOutputBlocked += 1;
+ }
+ else if ((GT_Utility.isStackValid(aStack)) && (aStack.stackSize > 0))
+ {
+ if ((getFillableStack() != null) && (getFillableStack().containsFluid(Materials.Honey.getFluid(100L)))) {
+ try
+ {
+ Object tIndividual = AlleleManager.alleleRegistry.getIndividual(aStack);
+ if (tIndividual != null)
+ {
+ if (((IIndividual)tIndividual).analyze())
+ {
+ getFillableStack().amount -= 100;
+ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
+ aStack.stackSize = 0;
+ NBTTagCompound tNBT = new NBTTagCompound();
+ ((IIndividual)tIndividual).writeToNBT(tNBT);
+ this.mOutputItems[0].setTagCompound(tNBT);
+ this.mMaxProgresstime = (500 / (1 << this.mTier - 1));
+ this.mEUt = (2 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
+ aStack.stackSize = 0;
+ this.mMaxProgresstime = 1;
+ this.mEUt = 1;
+ return 2;
+ }
+ }
+ catch (Throwable e)
+ {
+ if (GT_Values.D1) {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ }
+ if (ItemList.IC2_Crop_Seeds.isStackEqual(aStack, true, true))
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ if (tNBT.getByte("scan") < 4)
+ {
+ tNBT.setByte("scan", (byte)4);
+ this.mMaxProgresstime = (160 / (1 << this.mTier - 1));
+ this.mEUt = (8 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ }
+ else
+ {
+ this.mMaxProgresstime = 1;
+ this.mEUt = 1;
+ }
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { aStack });
+ this.mOutputItems[0].setTagCompound(tNBT);
+ return 2;
+ }
+ if (ItemList.Tool_DataOrb.isStackEqual(getSpecialSlot(), false, true))
+ {
+ if (ItemList.Tool_DataOrb.isStackEqual(aStack, false, true))
+ {
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mMaxProgresstime = (512 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ ItemData tData = GT_OreDictUnificator.getAssociation(aStack);
+ if ((tData != null) && ((tData.mPrefix == OrePrefixes.dust) || (tData.mPrefix == OrePrefixes.cell)) && (tData.mMaterial.mMaterial.mElement != null) && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) && (tData.mMaterial.mMaterial != Materials.Magic) && (tData.mMaterial.mMaterial.getMass() > 0L))
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = ItemList.Tool_DataOrb.get(1L, new Object[0]);
+ Behaviour_DataOrb.setDataTitle(this.mOutputItems[0], "Elemental-Scan");
+ Behaviour_DataOrb.setDataName(this.mOutputItems[0], tData.mMaterial.mMaterial.mElement.name());
+ this.mMaxProgresstime = ((int)(tData.mMaterial.mMaterial.getMass() * 8192L / (1 << this.mTier - 1)));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ if (ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true))
+ {
+ if (ItemList.Tool_DataStick.isStackEqual(aStack, false, true))
+ {
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ if (aStack.getItem() == Items.written_book)
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mOutputItems[0].setTagCompound(aStack.getTagCompound());
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ if (aStack.getItem() == Items.filled_map)
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mOutputItems[0].setTagCompound(GT_Utility.getNBTContainingShort(new NBTTagCompound(), "map_id", (short)aStack.getItemDamage()));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
@@ -184,35 +184,35 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick);
}
-/* 173: */
-/* 174: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 175: */ {
-/* 176:145 */ return GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes;
-/* 177: */ }
-/* 178: */
-/* 179: */ public int getCapacity()
-/* 180: */ {
-/* 181:150 */ return 1000;
-/* 182: */ }
-/* 183: */
-/* 184: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 185: */ {
-/* 186:155 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 187: */ }
-/* 188: */
-/* 189: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 190: */ {
-/* 191:160 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 192:161 */ if (aIndex == 1) {
-/* 193:161 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(212)), 10, 1.0F, aX, aY, aZ);
-/* 194: */ }
-/* 195: */ }
-/* 196: */
-/* 197: */ public void startProcess()
-/* 198: */ {
-/* 199:166 */ sendLoopStart((byte)1);
-/* 200: */ }
-/* 201: */ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes;
+ }
+
+ public int getCapacity()
+ {
+ return 1000;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(212)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)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/multi/GT_MetaTileEntity_BronzeBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java index d1b5ea8ec9..9f244a546b 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java @@ -1,405 +1,405 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
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.objects.GT_ItemStack;
-/* 11: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 12: */ import gregtech.api.util.GT_CoverBehavior;
-/* 13: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 14: */ import gregtech.api.util.GT_Utility;
-/* 15: */ import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
-/* 16: */ import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.init.Blocks;
-/* 20: */ import net.minecraft.init.Items;
-/* 21: */ import net.minecraft.item.ItemStack;
-/* 22: */ import net.minecraft.nbt.NBTTagCompound;
-/* 23: */ import net.minecraft.world.World;
-/* 24: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 25: */
-/* 26: */ public class GT_MetaTileEntity_BronzeBlastFurnace
-/* 27: */ extends MetaTileEntity
-/* 28: */ {
-/* 29: 26 */ public int mMaxProgresstime = 0;
-/* 30: 26 */ public int mUpdate = 5;
-/* 31: 26 */ public int mProgresstime = 0;
-/* 32: 28 */ public boolean mMachine = false;
-/* 33: 31 */ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
-/* 34: 32 */ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
-/* 35: 33 */ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
-/* 36: */ public ItemStack mOutputItem1;
-/* 37: */ public ItemStack mOutputItem2;
-/* 38: */
-/* 39: */ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
-/* 40: */ {
-/* 41: 36 */ super(aID, aName, aNameRegional, 4);
-/* 42: */ }
-/* 43: */
-/* 44: */ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
-/* 45: */ {
-/* 46: 40 */ super(aName, 4);
-/* 47: */ }
-/* 48: */
-/* 49: */ public String[] getDescription()
-/* 50: */ {
-/* 51: 45 */ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 55: */ {
-/* 56: 50 */ if (aSide == aFacing) {
-/* 57: 50 */ return aActive ? FACING_ACTIVE : FACING_FRONT;
-/* 58: */ }
-/* 59: 51 */ return FACING_SIDE;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isSteampowered()
-/* 63: */ {
-/* 64: 54 */ return false;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isElectric()
-/* 68: */ {
-/* 69: 55 */ return false;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean isPneumatic()
-/* 73: */ {
-/* 74: 56 */ return false;
-/* 75: */ }
-/* 76: */
-/* 77: */ public boolean isEnetInput()
-/* 78: */ {
-/* 79: 57 */ return false;
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean isEnetOutput()
-/* 83: */ {
-/* 84: 58 */ return false;
-/* 85: */ }
-/* 86: */
-/* 87: */ public boolean isInputFacing(byte aSide)
-/* 88: */ {
-/* 89: 59 */ return false;
-/* 90: */ }
-/* 91: */
-/* 92: */ public boolean isOutputFacing(byte aSide)
-/* 93: */ {
-/* 94: 60 */ return false;
-/* 95: */ }
-/* 96: */
-/* 97: */ public boolean isTeleporterCompatible()
-/* 98: */ {
-/* 99: 61 */ return false;
-/* 100: */ }
-/* 101: */
-/* 102: */ public boolean isFacingValid(byte aFacing)
-/* 103: */ {
-/* 104: 62 */ return aFacing > 1;
-/* 105: */ }
-/* 106: */
-/* 107: */ public boolean isAccessAllowed(EntityPlayer aPlayer)
-/* 108: */ {
-/* 109: 63 */ return true;
-/* 110: */ }
-/* 111: */
-/* 112: */ public int getProgresstime()
-/* 113: */ {
-/* 114: 64 */ return this.mProgresstime;
-/* 115: */ }
-/* 116: */
-/* 117: */ public int maxProgresstime()
-/* 118: */ {
-/* 119: 65 */ return this.mMaxProgresstime;
-/* 120: */ }
-/* 121: */
-/* 122: */ public int increaseProgress(int aProgress)
-/* 123: */ {
-/* 124: 66 */ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
-/* 125: */ }
-/* 126: */
-/* 127: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
-/* 128: */ {
-/* 129: 70 */ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
-/* 130: */ }
-/* 131: */
-/* 132: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 133: */ {
-/* 134: 75 */ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
-/* 135: */ }
-/* 136: */
-/* 137: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 138: */ {
-/* 139: 80 */ aNBT.setInteger("mProgresstime", this.mProgresstime);
-/* 140: 81 */ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
-/* 141: 82 */ if (this.mOutputItem1 != null)
-/* 142: */ {
-/* 143: 83 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 144: 84 */ this.mOutputItem1.writeToNBT(tNBT);
-/* 145: 85 */ aNBT.setTag("mOutputItem1", tNBT);
-/* 146: */ }
-/* 147: 87 */ if (this.mOutputItem2 != null)
-/* 148: */ {
-/* 149: 88 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 150: 89 */ this.mOutputItem2.writeToNBT(tNBT);
-/* 151: 90 */ aNBT.setTag("mOutputItem2", tNBT);
-/* 152: */ }
-/* 153: */ }
-/* 154: */
-/* 155: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 156: */ {
-/* 157: 96 */ this.mUpdate = 5;
-/* 158: 97 */ this.mProgresstime = aNBT.getInteger("mProgresstime");
-/* 159: 98 */ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
-/* 160: 99 */ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
-/* 161:100 */ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
-/* 162: */ }
-/* 163: */
-/* 164: */ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
-/* 165: */ {
-/* 166:105 */ if (aBaseMetaTileEntity.isClientSide()) {
-/* 167:105 */ return true;
-/* 168: */ }
-/* 169:106 */ aBaseMetaTileEntity.openGUI(aPlayer);
-/* 170:107 */ return true;
-/* 171: */ }
-/* 172: */
-/* 173: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 174: */ {
-/* 175:112 */ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 176: */ }
-/* 177: */
-/* 178: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 179: */ {
-/* 180:117 */ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 181: */ }
-/* 182: */
-/* 183: */ private boolean checkMachine()
-/* 184: */ {
-/* 185:121 */ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
-/* 186:122 */ for (int i = -1; i < 2; i++) {
-/* 187:122 */ for (int j = -1; j < 3; j++) {
-/* 188:122 */ for (int k = -1; k < 2; k++) {
-/* 189:122 */ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
-/* 190:123 */ if ((i != 0) || (j == -1) || (k != 0))
-/* 191: */ {
-/* 192:124 */ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
-/* 193:124 */ return false;
-/* 194: */ }
-/* 195: */ }
-/* 196:126 */ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
-/* 197:126 */ return false;
-/* 198: */ }
-/* 199: */ }
-/* 200: */ }
-/* 201: */ }
-/* 202: */ }
-/* 203:129 */ return true;
-/* 204: */ }
-/* 205: */
-/* 206: */ public void onMachineBlockUpdate()
-/* 207: */ {
-/* 208:134 */ this.mUpdate = 5;
-/* 209: */ }
-/* 210: */
-/* 211: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 212: */ {
-/* 213:139 */ if ((aBaseMetaTileEntity.isClientSide()) &&
-/* 214:140 */ (aBaseMetaTileEntity.isActive())) {
-/* 215:141 */ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
-/* 216: */ }
-/* 217:144 */ if (aBaseMetaTileEntity.isServerSide())
-/* 218: */ {
-/* 219:145 */ if (this.mUpdate-- == 0) {
-/* 220:146 */ this.mMachine = checkMachine();
-/* 221: */ }
-/* 222:149 */ if (this.mMachine) {
-/* 223:150 */ if (this.mMaxProgresstime > 0)
-/* 224: */ {
-/* 225:151 */ if (++this.mProgresstime >= this.mMaxProgresstime)
-/* 226: */ {
+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.objects.GT_ItemStack;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
+import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+
+public class GT_MetaTileEntity_BronzeBlastFurnace
+ extends MetaTileEntity
+{
+ public int mMaxProgresstime = 0;
+ public int mUpdate = 5;
+ public int mProgresstime = 0;
+ public boolean mMachine = false;
+ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
+ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
+ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
+ public ItemStack mOutputItem1;
+ public ItemStack mOutputItem2;
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, 4);
+ }
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
+ {
+ super(aName, 4);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return aActive ? FACING_ACTIVE : FACING_FRONT;
+ }
+ return FACING_SIDE;
+ }
+
+ public boolean isSteampowered()
+ {
+ return false;
+ }
+
+ public boolean isElectric()
+ {
+ return false;
+ }
+
+ public boolean isPneumatic()
+ {
+ return false;
+ }
+
+ public boolean isEnetInput()
+ {
+ return false;
+ }
+
+ public boolean isEnetOutput()
+ {
+ return false;
+ }
+
+ public boolean isInputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isOutputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isTeleporterCompatible()
+ {
+ return false;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean isAccessAllowed(EntityPlayer aPlayer)
+ {
+ return true;
+ }
+
+ public int getProgresstime()
+ {
+ return this.mProgresstime;
+ }
+
+ public int maxProgresstime()
+ {
+ return this.mMaxProgresstime;
+ }
+
+ public int increaseProgress(int aProgress)
+ {
+ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
+ }
+
+ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
+ {
+ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ aNBT.setInteger("mProgresstime", this.mProgresstime);
+ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
+ if (this.mOutputItem1 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem1.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem1", tNBT);
+ }
+ if (this.mOutputItem2 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem2.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem2", tNBT);
+ }
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ this.mUpdate = 5;
+ this.mProgresstime = aNBT.getInteger("mProgresstime");
+ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
+ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
+ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
+ }
+
+ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
+ {
+ if (aBaseMetaTileEntity.isClientSide()) {
+ return true;
+ }
+ aBaseMetaTileEntity.openGUI(aPlayer);
+ return true;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ private boolean checkMachine()
+ {
+ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 3; j++) {
+ for (int k = -1; k < 2; k++) {
+ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
+ if ((i != 0) || (j == -1) || (k != 0))
+ {
+ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
+ return false;
+ }
+ }
+ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public void onMachineBlockUpdate()
+ {
+ this.mUpdate = 5;
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ if ((aBaseMetaTileEntity.isClientSide()) &&
+ (aBaseMetaTileEntity.isActive())) {
+ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
+ }
+ if (aBaseMetaTileEntity.isServerSide())
+ {
+ if (this.mUpdate-- == 0) {
+ this.mMachine = checkMachine();
+ }
+ if (this.mMachine) {
+ if (this.mMaxProgresstime > 0)
+ {
+ if (++this.mProgresstime >= this.mMaxProgresstime)
+ {
addOutputProducts();
-/* 228:153 */ this.mOutputItem1 = null;
-/* 229:154 */ this.mOutputItem2 = null;
-/* 230:155 */ this.mProgresstime = 0;
-/* 231:156 */ this.mMaxProgresstime = 0;
-/* 232: */ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
-/* 227:152 */ }
-/* 233: */ }
-/* 234:159 */ else if (aBaseMetaTileEntity.isAllowedToWork()) {
-/* 235:159 */ checkRecipe();
-/* 236: */ }
-/* 237: */ }
-/* 238:163 */ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
-/* 239:165 */ if (aBaseMetaTileEntity.isActive())
-/* 240: */ {
-/* 241:166 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 242: */ {
-/* 243:167 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 244:168 */ this.mUpdate = 1;
-/* 245: */ }
-/* 246:170 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 247: */ {
-/* 248:171 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 249:172 */ this.mUpdate = 1;
-/* 250: */ }
-/* 251: */ }
-/* 252: */ else
-/* 253: */ {
-/* 254:175 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 255: */ {
-/* 256:176 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 257:177 */ this.mUpdate = 1;
-/* 258: */ }
-/* 259:179 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 260: */ {
-/* 261:180 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 262:181 */ this.mUpdate = 1;
-/* 263: */ }
-/* 264: */ }
-/* 265: */ }
-/* 266: */ }
-/* 267: */
-/* 268: */ private void addOutputProducts()
-/* 269: */ {
-/* 270:188 */ if (this.mOutputItem1 != null) {
-/* 271:189 */ if (this.mInventory[2] == null) {
-/* 272:190 */ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
-/* 273:191 */ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
-/* 274:192 */ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
-/* 275: */ }
-/* 276: */ }
-/* 277:194 */ if (this.mOutputItem2 != null) {
-/* 278:195 */ if (this.mInventory[3] == null) {
-/* 279:196 */ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
-/* 280:197 */ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
-/* 281:198 */ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
-/* 282: */ }
-/* 283: */ }
-/* 284: */ }
-/* 285: */
-/* 286: */ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
-/* 287: */ {
-/* 288:202 */ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
-/* 289:203 */ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
-/* 290:204 */ return true;
-/* 291: */ }
-/* 292:205 */ return false;
-/* 293: */ }
-/* 294: */
-/* 295: */ private boolean checkRecipe()
-/* 296: */ {
-/* 297:209 */ if (!this.mMachine) {
-/* 298:209 */ return false;
-/* 299: */ }
-/* 300:211 */ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
-/* 301:212 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
-/* 302: */ {
-/* 303:213 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
-/* 304: */ {
-/* 305:214 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 306:215 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 307:216 */ this.mMaxProgresstime = 7200;
-/* 308:217 */ return true;
-/* 309: */ }
-/* 310:219 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
-/* 311: */ {
-/* 312:220 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 313:221 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 314:222 */ this.mMaxProgresstime = 4800;
-/* 315:223 */ return true;
-/* 316: */ }
-/* 317:225 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 318: */ {
-/* 319:226 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 320:227 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 321:228 */ this.mMaxProgresstime = 64800;
-/* 322:229 */ return true;
-/* 323: */ }
-/* 324: */ }
-/* 325:231 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
-/* 326: */ {
-/* 327:232 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
-/* 328: */ {
-/* 329:233 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 330:234 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 331:235 */ this.mMaxProgresstime = 3600;
-/* 332:236 */ return true;
-/* 333: */ }
-/* 334:238 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
-/* 335: */ {
-/* 336:239 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 337:240 */ getBaseMetaTileEntity().decrStackSize(1, 1);
-/* 338:241 */ this.mMaxProgresstime = 2400;
-/* 339:242 */ return true;
-/* 340: */ }
-/* 341:244 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
-/* 342: */ {
-/* 343:245 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 344:246 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 345:247 */ this.mMaxProgresstime = 32400;
-/* 346:248 */ return true;
-/* 347: */ }
-/* 348: */ }
-/* 349:250 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
-/* 350: */ {
-/* 351:251 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 352: */ {
-/* 353:252 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 354:253 */ getBaseMetaTileEntity().decrStackSize(1, 36);
-/* 355:254 */ this.mMaxProgresstime = 64800;
-/* 356:255 */ return true;
-/* 357: */ }
-/* 358:257 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
-/* 359: */ {
-/* 360:258 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 361:259 */ getBaseMetaTileEntity().decrStackSize(1, 18);
-/* 362:260 */ this.mMaxProgresstime = 43200;
-/* 363:261 */ return true;
-/* 364: */ }
-/* 365:263 */ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 366: */ {
-/* 367:264 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 368:265 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 369:266 */ this.mMaxProgresstime = 64800;
-/* 370:267 */ return true;
-/* 371: */ }
-/* 372: */ }
-/* 373: */ }
-/* 374:272 */ this.mOutputItem1 = null;
-/* 375:273 */ this.mOutputItem2 = null;
-/* 376:274 */ return false;
-/* 377: */ }
-/* 378: */
-/* 379: */ public boolean isGivingInformation()
-/* 380: */ {
-/* 381:279 */ return false;
-/* 382: */ }
-/* 383: */
-/* 384: */ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 385: */ {
-/* 386:284 */ return aIndex > 1;
-/* 387: */ }
-/* 388: */
-/* 389: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 390: */ {
-/* 391:289 */ if (aIndex < 2) {}
-/* 392:289 */ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
-/* 393: */ }
-/* 394: */
-/* 395: */ public byte getTileEntityBaseType()
-/* 396: */ {
-/* 397:294 */ return 0;
-/* 398: */ }
-/* 399: */ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ this.mProgresstime = 0;
+ this.mMaxProgresstime = 0;
+ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
+ }
+ }
+ else if (aBaseMetaTileEntity.isAllowedToWork()) {
+ checkRecipe();
+ }
+ }
+ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
+ if (aBaseMetaTileEntity.isActive())
+ {
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ }
+ else
+ {
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ }
+ }
+ }
+
+ private void addOutputProducts()
+ {
+ if (this.mOutputItem1 != null) {
+ if (this.mInventory[2] == null) {
+ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
+ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
+ }
+ }
+ if (this.mOutputItem2 != null) {
+ if (this.mInventory[3] == null) {
+ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
+ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
+ }
+ }
+ }
+
+ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
+ {
+ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
+ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
+ return true;
+ }
+ return false;
+ }
+
+ private boolean checkRecipe()
+ {
+ if (!this.mMachine) {
+ return false;
+ }
+ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 7200;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 4800;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 3600;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 1);
+ this.mMaxProgresstime = 2400;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 32400;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 36);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 18);
+ this.mMaxProgresstime = 43200;
+ return true;
+ }
+ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ return false;
+ }
+
+ public boolean isGivingInformation()
+ {
+ return false;
+ }
+
+ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return aIndex > 1;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ if (aIndex < 2) {}
+ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
+ }
+
+ public byte getTileEntityBaseType()
+ {
+ return 0;
+ }
+}
/* 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/multi/GT_MetaTileEntity_DistillationTower.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java index c04a61d8bb..c48a2793bf 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java @@ -1,147 +1,147 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import gregtech.api.GregTech_API; +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; import gregtech.api.enums.Textures; -/* 4: */ import gregtech.api.enums.Textures.BlockIcons; -/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 6: */ import gregtech.api.interfaces.ITexture; -/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity; -/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.enums.Textures.BlockIcons; +import gregtech.api.gui.GT_GUIContainer_MultiMachine; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.metatileentity.IMetaTileEntity; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Output; -/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 10: */ import gregtech.api.objects.GT_RenderedTexture; -/* 11: */ import gregtech.api.util.GT_Recipe; -/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 13: */ import gregtech.api.util.GT_Utility; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; +import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.util.GT_Recipe; +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; +import gregtech.api.util.GT_Utility; -/* 14: */ import java.util.ArrayList; +import java.util.ArrayList; import net.minecraft.block.Block; -/* 15: */ import net.minecraft.entity.player.InventoryPlayer; -/* 16: */ import net.minecraft.item.ItemStack; -/* 17: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 18: */ -/* 19: */ public class GT_MetaTileEntity_DistillationTower -/* 20: */ extends GT_MetaTileEntity_MultiBlockBase -/* 21: */ { -/* 22: */ public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) -/* 23: */ { -/* 24: 24 */ super(aID, aName, aNameRegional); -/* 25: */ } -/* 26: */ -/* 27: */ public GT_MetaTileEntity_DistillationTower(String aName) -/* 28: */ { -/* 29: 28 */ super(aName); -/* 30: */ } -/* 31: */ -/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 33: */ { -/* 34: 33 */ return new GT_MetaTileEntity_DistillationTower(this.mName); -/* 35: */ } -/* 36: */ -/* 37: */ public String[] getDescription() -/* 38: */ { -/* 39: 38 */ return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; -/* 40: */ } -/* 41: */ -/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 43: */ { -/* 44: 43 */ if (aSide == aFacing) { -/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; -/* 46: */ } -/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; -/* 48: */ } -/* 49: */ -/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) -/* 51: */ { -/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); -/* 53: */ } -/* 54: */ -/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() -/* 56: */ { -/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; -/* 58: */ } -/* 59: */ -/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) -/* 61: */ { -/* 62: 59 */ return true; -/* 63: */ } -/* 64: */ -/* 65: */ public boolean isFacingValid(byte aFacing) -/* 66: */ { -/* 67: 62 */ return aFacing > 1; -/* 68: */ } -/* 69: */ -/* 70: */ public boolean checkRecipe(ItemStack aStack) -/* 71: */ { -/* 72: 66 */ -/* 75: 69 */ long tVoltage = getMaxInputVoltage(); -/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); -/* 77: */ if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ -/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); -/* 79: 73 */ if (tRecipe != null) { -/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) -/* 81: */ { -/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); -/* 83: 75 */ this.mEfficiencyIncrease = 10000; -/* 84: 77 */ if (tRecipe.mEUt <= 16) -/* 85: */ { -/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); -/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); -/* 88: */ } -/* 89: */ else -/* 90: */ { -/* 91: 81 */ this.mEUt = tRecipe.mEUt; -/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration; -/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) -/* 94: */ { -/* 95: 84 */ this.mEUt *= 4; -/* 96: 85 */ this.mMaxProgresstime /= 2; -/* 97: */ } -/* 98: */ } -/* 99: 89 */ if (this.mEUt > 0) { -/* 100: 89 */ this.mEUt = (-this.mEUt); -/* 101: */ } -/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); -/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; + +public class GT_MetaTileEntity_DistillationTower + extends GT_MetaTileEntity_MultiBlockBase +{ + public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_DistillationTower(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_DistillationTower(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { + return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { + + long tVoltage = getMaxInputVoltage(); + byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); + if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); + if (tRecipe != null) { + if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) + { + this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); + this.mEfficiencyIncrease = 10000; + if (tRecipe.mEUt <= 16) + { + this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); + this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); + } + else + { + this.mEUt = tRecipe.mEUt; + this.mMaxProgresstime = tRecipe.mDuration; + while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) + { + this.mEUt *= 4; + this.mMaxProgresstime /= 2; + } + } + if (this.mEUt > 0) { + this.mEUt = (-this.mEUt); + } + this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); + this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; this.mOutputFluids = tRecipe.mFluidOutputs; -/* 104: 92 */ updateSlots(); -/* 105: 93 */ return true; -/* 106: */ } -/* 107: */ }} -/* 108: */ -/* 109: 96 */ return false; -/* 110: */ } -/* 111: */ private static boolean controller; -/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) -/* 113: */ { -/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; -/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { -/* 116:103 */ return false; -/* 117: */ } -/* 118:105 */ int tAmount = 0; + updateSlots(); + return true; + } + }} + + return false; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { + return false; + } + int tAmount = 0; controller=false; -/* 119:107 */ for (int i = -1; i < 2; i++) { -/* 120:107 */ for (int j = -1; j < 2; j++) { -/* 121:107 */ for (int h = 0; h < 6; h++) { -/* 122:107 */ if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) -/* 123: */ { -/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); -/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) -/* 126: */ { -/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { -/* 128:110 */ return false; -/* 129: */ } + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = 0; h < 6; h++) { + if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) { -/* 131:111 */ return false; -/* 132: */ } -/* 133:112 */ tAmount++; -/* 134: */ } -/* 135: */ } -/* 136: */ } -/* 137: */ } -/* 138: */ } + return false; + } + tAmount++; + } + } + } + } + } if(this.mInputHatches.size()!=1||this.mOutputBusses.size()!=1||this.mInputBusses.size()!=0||this.mOutputHatches.size()!=5){return false;} int height = this.getBaseMetaTileEntity().getYCoord(); if(this.mInputHatches.get(0).getBaseMetaTileEntity().getYCoord()!=height||this.mOutputBusses.get(0).getBaseMetaTileEntity().getYCoord()!=height){return false;} @@ -152,36 +152,36 @@ import net.minecraftforge.fluids.FluidStack; tmpHatches[hatchNumber]=this.mOutputHatches.get(i); }else{return false;} } -/* 139:116 */ return tAmount >= 26; -/* 140: */ } + return tAmount >= 26; + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} return false; } -/* 141: */ -/* 142: */ public int getMaxEfficiency(ItemStack aStack) -/* 143: */ { -/* 144:121 */ return 10000; -/* 145: */ } -/* 146: */ -/* 147: */ public int getPollutionPerTick(ItemStack aStack) -/* 148: */ { -/* 149:126 */ return 0; -/* 150: */ } -/* 151: */ -/* 152: */ public int getDamageToComponent(ItemStack aStack) -/* 153: */ { -/* 154:131 */ return 0; -/* 155: */ } -/* 156: */ -/* 157: */ public int getAmountOfOutputs() -/* 158: */ { -/* 159:136 */ return 1; -/* 160: */ } -/* 161: */ -/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack) -/* 163: */ { -/* 164:141 */ return false; -/* 165: */ } -/* 166: */ }
\ No newline at end of file + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 0; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java index b8ef002bd9..5c6df03c1e 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java @@ -1,246 +1,246 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 17: */ import net.minecraft.item.ItemStack;
-/* 18: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 19: */ import net.minecraftforge.fluids.FluidStack;
-/* 20: */
-/* 21: */ public class GT_MetaTileEntity_ElectricBlastFurnace
-/* 22: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 23: */ {
-/* 24: 25 */ private int mHeatingCapacity = 0;
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
-/* 27: */ {
-/* 28: 28 */ super(aID, aName, aNameRegional);
-/* 29: */ }
-/* 30: */
-/* 31: */ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
-/* 32: */ {
-/* 33: 32 */ super(aName);
-/* 34: */ }
-/* 35: */
-/* 36: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 37: */ {
-/* 38: 37 */ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
-/* 39: */ }
-/* 40: */
-/* 41: */ public String[] getDescription()
-/* 42: */ {
-/* 43: 42 */ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 44: */ }
-/* 45: */
-/* 46: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 47: */ {
-/* 48: 47 */ if (aSide == aFacing) {
-/* 49: 47 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
-/* 50: */ }
-/* 51: 48 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 52: */ }
-/* 53: */
-/* 54: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 55: */ {
-/* 56: 53 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
-/* 57: */ }
-/* 58: */
-/* 59: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 60: */ {
-/* 61: 58 */ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 65: */ {
-/* 66: 63 */ return true;
-/* 67: */ }
-/* 68: */
-/* 69: */ public boolean isFacingValid(byte aFacing)
-/* 70: */ {
-/* 71: 66 */ return aFacing > 1;
-/* 72: */ }
-/* 73: */
-/* 74: */ public boolean checkRecipe(ItemStack aStack)
-/* 75: */ {
-/* 76: 70 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 81: */ {
-/* 82: 73 */ tInputList.remove(j--);
-/* 83: */ }
-/* 84: */ else
-/* 85: */ {
-/* 86: 73 */ tInputList.remove(i--); break;
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: */ }
-/* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 92: */
-/* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids();
-/* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) {
-/* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) {
-/* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
-/* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
-/* 98: */ {
-/* 99: 81 */ tFluidList.remove(j--);
-/* 100: */ }
-/* 101: */ else
-/* 102: */ {
-/* 103: 81 */ tFluidList.remove(i--); break;
-/* 104: */ }
-/* 105: */ }
-/* 106: */ }
-/* 107: */ }
-/* 108: 84 */ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
-/* 109: 86 */ if (tInputList.size() > 0)
-/* 110: */ {
-/* 111: 87 */ long tVoltage = getMaxInputVoltage();
-/* 112: 88 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 113: 89 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
-/* 114: 91 */ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
-/* 115: */ {
-/* 116: 92 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 117: 93 */ this.mEfficiencyIncrease = 10000;
-/* 118: 95 */ if (tRecipe.mEUt <= 16)
-/* 119: */ {
-/* 120: 96 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 121: 97 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 122: */ }
-/* 123: */ else
-/* 124: */ {
-/* 125: 99 */ this.mEUt = tRecipe.mEUt;
-/* 126:100 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 127:101 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 128: */ {
-/* 129:102 */ this.mEUt *= 4;
-/* 130:103 */ this.mMaxProgresstime /= 2;
-/* 131: */ }
-/* 132: */ }
-/* 133:107 */ if (this.mEUt > 0) {
-/* 134:107 */ this.mEUt = (-this.mEUt);
-/* 135: */ }
-/* 136:108 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 137:109 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 138:110 */ updateSlots();
-/* 139:111 */ return true;
-/* 140: */ }
-/* 141: */ }
-/* 142:114 */ return false;
-/* 143: */ }
-/* 144: */
-/* 145: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 146: */ {
-/* 147:119 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 148: */
-/* 149:121 */ this.mHeatingCapacity = 0;
-/* 150:123 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 151:123 */ return false;
-/* 152: */ }
-/* 153:124 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
-/* 154:124 */ return false;
-/* 155: */ }
-/* 156:126 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
-/* 157: */
-/* 158:128 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
-/* 159:130 */ switch (tUsedMeta)
-/* 160: */ {
-/* 161: */ case 12:
-/* 162:131 */ this.mHeatingCapacity = 1800; break;
-/* 163: */ case 13:
-/* 164:132 */ this.mHeatingCapacity = 2700; break;
-/* 165: */ case 14:
-/* 166:133 */ this.mHeatingCapacity = 3600; break;
-/* 167: */ default:
-/* 168:134 */ return false;
-/* 169: */ }
-/* 170:137 */ for (int i = -1; i < 2; i++) {
-/* 171:137 */ for (int j = -1; j < 2; j++) {
-/* 172:137 */ if ((i != 0) || (j != 0))
-/* 173: */ {
-/* 174:138 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 175:138 */ return false;
-/* 176: */ }
-/* 177:139 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
-/* 178:139 */ return false;
-/* 179: */ }
-/* 180:140 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 181:140 */ return false;
-/* 182: */ }
-/* 183:141 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 184:141 */ return false;
-/* 185: */ }
-/* 186:142 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 187:142 */ return false;
-/* 188: */ }
-/* 189:143 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
-/* 190:143 */ return false;
-/* 191: */ }
-/* 192: */ }
-/* 193: */ }
-/* 194: */ }
-/* 195:146 */ for (int i = -1; i < 2; i++) {
-/* 196:146 */ for (int j = -1; j < 2; j++) {
-/* 197:146 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 198: */ {
-/* 199:147 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 200:148 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 201: */ {
-/* 202:149 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 203:149 */ return false;
-/* 204: */ }
-/* 205:150 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 206:150 */ return false;
-/* 207: */ }
-/* 208: */ }
-/* 209: */ }
-/* 210: */ }
-/* 211: */ }
-/* 212:154 */ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
-/* 213:155 */ return true;
-/* 214: */ }
-/* 215: */
-/* 216: */ public int getMaxEfficiency(ItemStack aStack)
-/* 217: */ {
-/* 218:160 */ return 10000;
-/* 219: */ }
-/* 220: */
-/* 221: */ public int getPollutionPerTick(ItemStack aStack)
-/* 222: */ {
-/* 223:165 */ return 10;
-/* 224: */ }
-/* 225: */
-/* 226: */ public int getDamageToComponent(ItemStack aStack)
-/* 227: */ {
-/* 228:170 */ return 0;
-/* 229: */ }
-/* 230: */
-/* 231: */ public int getAmountOfOutputs()
-/* 232: */ {
-/* 233:175 */ return 2;
-/* 234: */ }
-/* 235: */
-/* 236: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 237: */ {
-/* 238:180 */ return false;
-/* 239: */ }
-/* 240: */ }
+public class GT_MetaTileEntity_ElectricBlastFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mHeatingCapacity = 0;
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+
+ ArrayList<FluidStack> tFluidList = getStoredFluids();
+ for (int i = 0; i < tFluidList.size() - 1; i++) {
+ for (int j = i + 1; j < tFluidList.size(); j++) {
+ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
+ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
+ {
+ tFluidList.remove(j--);
+ }
+ else
+ {
+ tFluidList.remove(i--); break;
+ }
+ }
+ }
+ }
+ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
+ if (tInputList.size() > 0)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
+ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mHeatingCapacity = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mHeatingCapacity = 1800; break;
+ case 13:
+ this.mHeatingCapacity = 2700; break;
+ case 14:
+ this.mHeatingCapacity = 3600; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/multi/GT_MetaTileEntity_FusionComputer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java index aedeeac45d..ef34923e27 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java @@ -1,6 +1,6 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import java.util.ArrayList; +package gregtech.common.tileentities.machines.multi; + +import java.util.ArrayList; import java.util.Arrays; import gregtech.GT_Mod; @@ -9,46 +9,46 @@ import gregtech.api.enums.Dyes; import gregtech.api.enums.Textures; import gregtech.api.gui.GT_Container_MultiMachine; import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Energy; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 7: */ import gregtech.api.objects.GT_ItemStack; +import gregtech.api.objects.GT_ItemStack; import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import gregtech.api.metatileentity.implementations.*; import gregtech.common.gui.GT_GUIContainer_FusionReactor; import net.minecraft.block.Block; -/* 8: */ import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; -/* 9: */ import net.minecraft.item.ItemStack; -/* 10: */ import net.minecraft.nbt.NBTTagCompound; -/* 11: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 12: */ -/* 13: */ public abstract class GT_MetaTileEntity_FusionComputer -/* 14: */ extends GT_MetaTileEntity_MultiBlockBase -/* 15: */ { + +public abstract class GT_MetaTileEntity_FusionComputer + extends GT_MetaTileEntity_MultiBlockBase +{ public GT_Recipe mLastRecipe; public int mEUStore; -/* 16: */ public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) -/* 17: */ { -/* 18: 16 */ super(aID, aName, aNameRegional); -/* 19: */ } -/* 20: */ -/* 21: */ public GT_MetaTileEntity_FusionComputer(String aName) -/* 22: */ { -/* 23: 20 */ super(aName); -/* 24: */ } -/* 30: */ public abstract int tier(); -/* 40: */ -/* 41: */ public abstract long maxEUStore(); -/* 50: */ + public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_FusionComputer(String aName) + { + super(aName); + } + public abstract int tier(); + + public abstract long maxEUStore(); + @Override public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_Container_MultiMachine(aPlayerInventory, aBaseMetaTileEntity); @@ -58,81 +58,81 @@ import net.minecraftforge.fluids.FluidStack; public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_GUIContainer_FusionReactor(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "FusionComputer.png"); } -/* 56: */ -/* 57: */ public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); -/* 61: */ -/* 62: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) -/* 63: */ { -/* 64: 42 */ return aSide != getBaseMetaTileEntity().getFrontFacing(); -/* 65: */ } -/* 66: */ -/* 67: */ public void saveNBTData(NBTTagCompound aNBT) { + + public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); + + public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) + { + return aSide != getBaseMetaTileEntity().getFrontFacing(); + } + + public void saveNBTData(NBTTagCompound aNBT) { super.saveNBTData(aNBT); } -/* 68: */ -/* 69: */ public void loadNBTData(NBTTagCompound aNBT) { + + public void loadNBTData(NBTTagCompound aNBT) { super.loadNBTData(aNBT); } -/* 70: */ -/* 71: */ @Override + + @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity,ItemStack aStack) { -/* 73: 57 */ int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; -/* 74: 59 */ if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && -/* 75: 60 */ ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && -/* 76: 61 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && -/* 77: 62 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && -/* 78: 63 */ (checkCoils(xCenter, yCenter, zCenter)) && -/* 79: 64 */ (checkHulls(xCenter, yCenter, zCenter)) && -/* 80: 65 */ (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && -/* 81: 66 */ (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && -/* 82: 67 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 83: 68 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 84: 69 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 85: 70 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 86: 71 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 87: 72 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 88: 73 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 89: 74 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 90: 75 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 91: 76 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 92: 77 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 93: 78 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 94: 79 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 95: 80 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 96: 81 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 97: 82 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 98: 83 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 99: 84 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 100: 85 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 101: 86 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 102: 87 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 103: 88 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 104: 89 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 105: 90 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 106: 91 */ (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 107: 92 */ (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 108: 93 */ (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 109: 94 */ (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 110: 95 */ (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 111: 96 */ (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 112: 97 */ (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 113: 98 */ (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 114: 99 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 115:100 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 116:101 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 117:102 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 118:103 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 119:104 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 120:105 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 121:106 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 122:107 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 123:108 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 124:109 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 125:110 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 126:111 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 127:112 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 128:113 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 129:114 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; + if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && + (checkCoils(xCenter, yCenter, zCenter)) && + (checkHulls(xCenter, yCenter, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && (this.mEnergyHatches.size()>=1)&& (this.mOutputHatches.size()>=1)&& (this.mInputHatches.size()>=2)) { @@ -147,10 +147,10 @@ import net.minecraftforge.fluids.FluidStack; if(this.mInputHatches.get(i).mTier<tier())return false;} } mWrench = true;mScrewdriver = true; mSoftHammer = true; mHardHammer = true; mSolderingTool = true; mCrowbar = true; -/* 130:115 */ return true; -/* 131: */ } -/* 132:117 */ return false; -/* 133: */ } + return true; + } + return false; + } private boolean checkTier(byte tier,ArrayList<GT_MetaTileEntity_Hatch> list){ if(list!=null){ @@ -162,64 +162,64 @@ import net.minecraftforge.fluids.FluidStack; } return true; } -/* 134: */ -/* 135: */ private boolean checkCoils(int aX, int aY, int aZ) -/* 136: */ { -/* 137:121 */ return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); -/* 138: */ } -/* 139: */ -/* 140: */ private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) -/* 141: */ { -/* 142:168 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); -/* 143: */ } -/* 144: */ -/* 145: */ private boolean checkHulls(int aX, int aY, int aZ) -/* 146: */ { -/* 147:205 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); -/* 148: */ } -/* 149: */ -/* 150: */ private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) -/* 151: */ { + + private boolean checkCoils(int aX, int aY, int aZ) + { + return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); + } + + private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); + } + + private boolean checkHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); + } + + private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) + { if(addEnergyInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 152:242 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 153: */ } -/* 154: */ -/* 155: */ private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 156: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addInputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 157:246 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 158: */ } -/* 159: */ -/* 160: */ private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 161: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addOutputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 162:250 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 163: */ } -/* 164: */ -/* 165: */ private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) -/* 166: */ { -/* 167:254 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); -/* 168: */ } + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); + } public abstract Block getCasing(); public abstract int getCasingMeta(); -/* 169: */ -/* 170: */ private boolean isFusionCoil(int aX, int aY, int aZ) -/* 171: */ { -/* 172:258 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); -/* 173: */ } + + private boolean isFusionCoil(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); + } public abstract Block getFusionCoil(); public abstract int getFusionCoilMeta(); -/* 190: */ public abstract String[] getDescription(); -/* 194: */ -/* 195: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 196: */ { + public abstract String[] getDescription(); + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { ITexture[] sTexture; if(aSide==aFacing){ sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS, Dyes.getModulation(-1, Dyes._NULL.mRGBa)),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SCREEN) }; @@ -229,8 +229,8 @@ import net.minecraftforge.fluids.FluidStack; sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW, Dyes.getModulation(-1, Dyes._NULL.mRGBa))}; } } -/* 197:283 */ return sTexture; -/* 198: */ } + return sTexture; + } @Override public boolean isCorrectMachinePart(ItemStack aStack) {return true;} diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java index 193118eec8..5c16af3e37 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java @@ -29,50 +29,50 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBlockBase{ - /* 25: */ public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) - /* 26: */ { - /* 27: 25 */ super(aID, aName, aNameRegional); - /* 28: */ } - /* 29: */ - /* 30: */ public GT_MetaTileEntity_HeatExchanger(String aName) - /* 31: */ { - /* 32: 29 */ super(aName); - /* 33: */ } - /* 34: */ - /* 35: */ public String[] getDescription() - /* 36: */ { - /* 37: 34 */ return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; - /* 38: */ } + public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_HeatExchanger(String aName) + { + super(aName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; + } public GT_MetaTileEntity_Hatch_Input mInputHotFluidHatch; public GT_MetaTileEntity_Hatch_Output mOutputColdFluidHatch; public boolean superheated=false; - /* 59: */ - /* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 61: */ { - /* 62: 53 */ if (aSide == aFacing) { - /* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 64: */ } - /* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; - /* 66: */ } - /* 67: */ - /* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 69: */ { - /* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); - /* 71: */ } - /* 72: */ - /* 73: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 74: */ { - /* 75: 64 */ return true; - /* 76: */ } - /* 77: */ - /* 78: */ public boolean isFacingValid(byte aFacing) - /* 79: */ { - /* 80: 67 */ return aFacing > 1; - /* 81: */ } - /* 82: */ - /* 83: */ public boolean checkRecipe(ItemStack aStack) - /* 84: */ { + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { if(GT_ModHandler.isLava(mInputHotFluidHatch.getFluid())){ int fluidAmount = mInputHotFluidHatch.getFluidAmount(); if(fluidAmount >= 1000){superheated=true;}else{superheated=false;} @@ -101,73 +101,73 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return true; } return false;} - /* 133: */ - /* 134: */ public boolean onRunningTick(ItemStack aStack) - /* 135: */ { - /* 136:115 */ if (this.mEUt > 0) - /* 137: */ {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); - /* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); - /* 139:117 */ if (tGeneratedEU > 0) { - /* 140:118 */ if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { + + public boolean onRunningTick(ItemStack aStack) + { + if (this.mEUt > 0) + {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); + int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); + if (tGeneratedEU > 0) { + if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { if(superheated){ addOutput(FluidRegistry.getFluidStack("ic2superheatedsteam", tGeneratedEU/2)); }else{ - /* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));} - /* 142: */ } else { - /* 143:121 */ explodeMultiblock(); - /* 144: */ } - /* 145: */ } - /* 146:124 */ return true; - /* 147: */ } - /* 148:126 */ return true; - /* 149: */ } - /* 150: */ private static boolean controller; - /* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 152: */ { - /* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 154: */ - /* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; - /* 156:135 */ for (int i = -1; i < 2; i++) { - /* 157:135 */ for (int j = -1; j < 2; j++) { - /* 158:136 */ if ((i != 0) || (j != 0)) - /* 159: */ { - /* 160:137 */ for (int k = 0; k <= 3; k++) { - /* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) - /* 162: */ { - /* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { - /* 164:139 */ return false; - /* 165: */ } - /* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { - /* 167:140 */ return false; - /* 168: */ } - /* 169:141 */ tCasingAmount++; - /* 170: */ } + addOutput(GT_ModHandler.getSteam(tGeneratedEU));} + } else { + explodeMultiblock(); + } + } + return true; + } + return true; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + + int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + if ((i != 0) || (j != 0)) + { + for (int k = 0; k <= 3; k++) { + if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { + return false; + } + tCasingAmount++; + } } - /* 171: */ }else{ + }else{ if(!addHotFluidInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j), 50)){ return false; } if(!addColdFluidOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 3, zDir + j), 50)){ return false; } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { + return false; + } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } - /* 172: */ } - /* 195: */ } - /* 196: */ } - /* 215:166 */ return (tCasingAmount >= 24); - /* 216: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { + return false; + } + } + } + } + return (tCasingAmount >= 24); + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} @@ -199,58 +199,58 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return false; } - /* 26: */ public Block getCasingBlock() - /* 27: */ { - /* 28:22 */ return GregTech_API.sBlockCasings4; - /* 29: */ } - /* 30: */ - /* 31: */ public byte getCasingMeta() - /* 32: */ { - /* 33:23 */ return 2; - /* 34: */ } - /* 35: */ - /* 36: */ public byte getCasingTextureIndex() - /* 37: */ { - /* 38:24 */ return 50; - /* 39: */ } - /* 40: */ - /* 41: */ public Block getPipeBlock() - /* 42: */ { - /* 43:26 */ return GregTech_API.sBlockCasings2; - /* 44: */ } - /* 45: */ - /* 46: */ public byte getPipeMeta() - /* 47: */ { - /* 48:27 */ return 14; - /* 49: */ } - /* 217: */ - /* 218: */ public int getMaxEfficiency(ItemStack aStack) - /* 219: */ { - /* 220:171 */ return 10000; - /* 221: */ } - /* 222: */ - /* 223: */ public int getPollutionPerTick(ItemStack aStack) - /* 224: */ { - /* 225:176 */ return 10; - /* 226: */ } - /* 227: */ - /* 228: */ public int getDamageToComponent(ItemStack aStack) - /* 229: */ { - /* 230:181 */ return 0; - /* 231: */ } - /* 232: */ - /* 233: */ public int getAmountOfOutputs() - /* 234: */ { - /* 235:186 */ return 1; - /* 236: */ } - /* 237: */ - /* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack) - /* 239: */ { - /* 240:191 */ return false; - /* 241: */ } - /* 242: */ - /* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 22: */ { - /* 23:19 */ return new GT_MetaTileEntity_HeatExchanger(this.mName); - /* 24: */ } + public Block getCasingBlock() + { + return GregTech_API.sBlockCasings4; + } + + public byte getCasingMeta() + { + return 2; + } + + public byte getCasingTextureIndex() + { + return 50; + } + + public Block getPipeBlock() + { + return GregTech_API.sBlockCasings2; + } + + public byte getPipeMeta() + { + return 14; + } + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 10; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_HeatExchanger(this.mName); + } } diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java index 48b7f03770..468da7a845 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java @@ -1,177 +1,177 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Map;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
-/* 16: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 17: */ import net.minecraft.block.Block;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 21: */
-/* 22: */ public class GT_MetaTileEntity_ImplosionCompressor
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_ImplosionCompressor(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37: 34 */ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public String[] getDescription()
-/* 41: */ {
-/* 42: 39 */ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
-/* 43: */ }
-/* 44: */
-/* 45: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 46: */ {
-/* 47: 44 */ if (aSide == aFacing) {
-/* 48: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
-/* 49: */ }
-/* 50: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
-/* 51: */ }
-/* 52: */
-/* 53: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 54: */ {
-/* 55: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
-/* 56: */ }
-/* 57: */
-/* 58: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 59: */ {
-/* 60: 55 */ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 64: */ {
-/* 65: 60 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean isFacingValid(byte aFacing)
-/* 69: */ {
-/* 70: 63 */ return aFacing > 1;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean checkRecipe(ItemStack aStack)
-/* 74: */ {
-/* 75: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 76: 69 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 77: 69 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 78: 70 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 79: 71 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 80: */ {
-/* 81: 71 */ tInputList.remove(j--);
-/* 82: */ }
-/* 83: */ else
-/* 84: */ {
-/* 85: 71 */ tInputList.remove(i--); break;
-/* 86: */ }
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 75 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 91: 77 */ if (tInputList.size() > 0)
-/* 92: */ {
-/* 93: 78 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
-/* 94: 79 */ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
-/* 95: */ {
-/* 96: 80 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 97: 81 */ this.mEfficiencyIncrease = 10000;
-/* 98: */
-/* 99: 83 */ this.mEUt = (-tRecipe.mEUt);
-/* 100: 84 */ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
-/* 101: 85 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 102: 86 */ sendLoopStart((byte)20);
-/* 103: 87 */ updateSlots();
-/* 104: 88 */ return true;
-/* 105: */ }
-/* 106: */ }
-/* 107: 91 */ return false;
-/* 108: */ }
-/* 109: */
-/* 110: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 111: */ {
-/* 112: 96 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 113: 97 */ if (aIndex == 20) {
-/* 114: 97 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
-/* 115: */ }
-/* 116: */ }
-/* 117: */
-/* 118: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 119: */ {
-/* 120:102 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 121:104 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 122:104 */ return false;
-/* 123: */ }
-/* 124:106 */ int tAmount = 0;
-/* 125:108 */ for (int i = -1; i < 2; i++) {
-/* 126:108 */ for (int j = -1; j < 2; j++) {
-/* 127:108 */ for (int h = -1; h < 2; h++) {
-/* 128:108 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 129: */ {
-/* 130:109 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 131:110 */ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
-/* 132: */ {
-/* 133:111 */ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
-/* 134:112 */ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
-/* 135:113 */ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
-/* 136:113 */ return false;
-/* 137: */ }
-/* 138:114 */ tAmount++;
-/* 139: */ }
-/* 140: */ }
-/* 141: */ }
-/* 142: */ }
-/* 143: */ }
-/* 144:118 */ return tAmount >= 16;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getMaxEfficiency(ItemStack aStack)
-/* 148: */ {
-/* 149:123 */ return 10000;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getPollutionPerTick(ItemStack aStack)
-/* 153: */ {
-/* 154:128 */ return 1000;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getDamageToComponent(ItemStack aStack)
-/* 158: */ {
-/* 159:133 */ return 0;
-/* 160: */ }
-/* 161: */
-/* 162: */ public int getAmountOfOutputs()
-/* 163: */ {
-/* 164:138 */ return 2;
-/* 165: */ }
-/* 166: */
-/* 167: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 168: */ {
-/* 169:143 */ return false;
-/* 170: */ }
-/* 171: */ }
+public class GT_MetaTileEntity_ImplosionCompressor
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ImplosionCompressor(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+ if (tInputList.size() > 0)
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
+ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-tRecipe.mEUt);
+ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ sendLoopStart((byte)20);
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 20) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
+ {
+ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
+ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
+ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 1000;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/multi/GT_MetaTileEntity_LargeBoiler.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java index fd02e50e2c..93d8e260de 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java @@ -1,156 +1,156 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
-/* 14: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 15: */ import java.util.ArrayList;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.block.Block;
-/* 17: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 20: */ import net.minecraftforge.fluids.FluidStack;
-/* 21: */
-/* 22: */ public abstract class GT_MetaTileEntity_LargeBoiler
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_LargeBoiler(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public String[] getDescription()
-/* 36: */ {
-/* 37: 34 */ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
-/* 38: */ }
-/* 39: */
-/* 40: */ public abstract Block getCasingBlock();
-/* 41: */
-/* 42: */ public abstract byte getCasingMeta();
-/* 43: */
-/* 44: */ public abstract byte getCasingTextureIndex();
-/* 45: */
-/* 46: */ public abstract Block getPipeBlock();
-/* 47: */
-/* 48: */ public abstract byte getPipeMeta();
-/* 49: */
-/* 50: */ public abstract Block getFireboxBlock();
-/* 51: */
-/* 52: */ public abstract byte getFireboxMeta();
-/* 53: */
-/* 54: */ public abstract byte getFireboxTextureIndex();
-/* 55: */
-/* 56: */ public abstract int getEUt();
-/* 57: */
-/* 58: */ public abstract int getEfficiencyIncrease();
-/* 59: */
-/* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 61: */ {
-/* 62: 53 */ if (aSide == aFacing) {
-/* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
-/* 64: */ }
-/* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
-/* 66: */ }
-/* 67: */
-/* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 69: */ {
-/* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 74: */ {
-/* 75: 64 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean isFacingValid(byte aFacing)
-/* 79: */ {
-/* 80: 67 */ return aFacing > 1;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean checkRecipe(ItemStack aStack)
-/* 84: */ {
-/* 85: 71 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
-/* 86: */ {
-/* 87: 72 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 88: 73 */ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
-/* 89: */ {
-/* 90: 74 */ tFluid.amount = 1000;
-/* 91: 75 */ if (depleteInput(tFluid))
-/* 92: */ {
-/* 93: 76 */ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
-/* 94: 77 */ this.mEUt = getEUt();
-/* 95: 78 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
-/* 96: 79 */ return true;
-/* 97: */ }
-/* 98: */ }
-/* 99: */ }
-/* 100: 83 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
-/* 101: */ {
-/* 102: 84 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 103: 85 */ if (tFluid != null)
-/* 104: */ {
-/* 105: 86 */ tFluid.amount = 1000;
-/* 106: 87 */ if (depleteInput(tFluid))
-/* 107: */ {
-/* 108: 88 */ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
-/* 109: 89 */ this.mEUt = getEUt();
-/* 110: 90 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 111: 91 */ return true;
-/* 112: */ }
-/* 113: */ }
-/* 114: */ }
-/* 115: 95 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 116: 96 */ if (!tInputList.isEmpty()) {
-/* 117: 97 */ for (ItemStack tInput : tInputList) {
-/* 118: 98 */ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
-/* 119: */ {
-/* 120: 99 */ this.mEUt = getEUt();
-/* 121:100 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 122:101 */ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
-/* 123:102 */ tInput.stackSize -= 1;
-/* 124:103 */ updateSlots();
-/* 125:104 */ return true;
-/* 126: */ }
-/* 127: */ }
-/* 128: */ }
-/* 129:108 */ this.mMaxProgresstime = 0;
-/* 130:109 */ this.mEUt = 0;
-/* 131:110 */ return false;
-/* 132: */ }
-/* 133: */
-/* 134: */ public boolean onRunningTick(ItemStack aStack)
-/* 135: */ {
-/* 136:115 */ if (this.mEUt > 0)
-/* 137: */ {
-/* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
-/* 139:117 */ if (tGeneratedEU > 0) {
-/* 140:118 */ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
-/* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
-/* 142: */ } else {
-/* 143:121 */ explodeMultiblock();
-/* 144: */ }
-/* 145: */ }
-/* 146:124 */ return true;
-/* 147: */ }
-/* 148:126 */ return true;
-/* 149: */ }
+public abstract class GT_MetaTileEntity_LargeBoiler
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler(String aName)
+ {
+ super(aName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
+ }
+
+ public abstract Block getCasingBlock();
+
+ public abstract byte getCasingMeta();
+
+ public abstract byte getCasingTextureIndex();
+
+ public abstract Block getPipeBlock();
+
+ public abstract byte getPipeMeta();
+
+ public abstract Block getFireboxBlock();
+
+ public abstract byte getFireboxMeta();
+
+ public abstract byte getFireboxTextureIndex();
+
+ public abstract int getEUt();
+
+ public abstract int getEfficiencyIncrease();
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
+ return true;
+ }
+ }
+ }
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if (tFluid != null)
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ return true;
+ }
+ }
+ }
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty()) {
+ for (ItemStack tInput : tInputList) {
+ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
+ {
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
+ tInput.stackSize -= 1;
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ this.mMaxProgresstime = 0;
+ this.mEUt = 0;
+ return false;
+ }
+
+ public boolean onRunningTick(ItemStack aStack)
+ {
+ if (this.mEUt > 0)
+ {
+ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
+ if (tGeneratedEU > 0) {
+ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
+ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
+ } else {
+ explodeMultiblock();
+ }
+ }
+ return true;
+ }
+ return true;
+ }
private boolean firstRun = true;
@@ -163,99 +163,99 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { }
-/* 150: */
-/* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 152: */ {
-/* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 154: */
-/* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;
-/* 156:135 */ for (int i = -1; i < 2; i++) {
-/* 157:135 */ for (int j = -1; j < 2; j++) {
-/* 158:136 */ if ((i != 0) || (j != 0))
-/* 159: */ {
-/* 160:137 */ for (int k = 1; k <= 4; k++) {
-/* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
-/* 162: */ {
-/* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
-/* 164:139 */ return false;
-/* 165: */ }
-/* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
-/* 167:140 */ return false;
-/* 168: */ }
-/* 169:141 */ tCasingAmount++;
-/* 170: */ }
-/* 171: */ }
-/* 172: */ }
-/* 173: */ else
-/* 174: */ {
-/* 175:145 */ for (int k = 1; k <= 3; k++)
-/* 176: */ {
-/* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
-/* 178:146 */ return false;
-/* 179: */ }
-/* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
-/* 181:147 */ return false;
-/* 182: */ }
-/* 183: */ }
-/* 184:149 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
-/* 185: */ {
-/* 186:150 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
-/* 187:150 */ return false;
-/* 188: */ }
-/* 189:151 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
-/* 190:151 */ return false;
-/* 191: */ }
-/* 192:152 */ tCasingAmount++;
-/* 193: */ }
-/* 194: */ }
-/* 195: */ }
-/* 196: */ }
-/* 197:157 */ for (int i = -1; i < 2; i++) {
-/* 198:157 */ for (int j = -1; j < 2; j++) {
-/* 199:157 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 200: */ {
-/* 201:158 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 202:159 */ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
-/* 203: */ {
-/* 204:160 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
-/* 205:160 */ return false;
-/* 206: */ }
-/* 207:161 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
-/* 208:161 */ return false;
-/* 209: */ }
-/* 210:162 */ tFireboxAmount++;
-/* 211: */ }
-/* 212: */ }
-/* 213: */ }
-/* 214: */ }
-/* 215:166 */ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
-/* 216: */ }
-/* 217: */
-/* 218: */ public int getMaxEfficiency(ItemStack aStack)
-/* 219: */ {
-/* 220:171 */ return 10000;
-/* 221: */ }
-/* 222: */
-/* 223: */ public int getPollutionPerTick(ItemStack aStack)
-/* 224: */ {
-/* 225:176 */ return 10;
-/* 226: */ }
-/* 227: */
-/* 228: */ public int getDamageToComponent(ItemStack aStack)
-/* 229: */ {
-/* 230:181 */ return 0;
-/* 231: */ }
-/* 232: */
-/* 233: */ public int getAmountOfOutputs()
-/* 234: */ {
-/* 235:186 */ return 1;
-/* 236: */ }
-/* 237: */
-/* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 239: */ {
-/* 240:191 */ return false;
-/* 241: */ }
-/* 242: */ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ int tCasingAmount = 0;int tFireboxAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ for (int k = 1; k <= 4; k++) {
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ else
+ {
+ for (int k = 1; k <= 3; k++)
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
+ return false;
+ }
+ }
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
+ return false;
+ }
+ tFireboxAmount++;
+ }
+ }
+ }
+ }
+ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java index 434a34799d..c0c362d2c5 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Bronze
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings1;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 10;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 10;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 12;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 13;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 45;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 400;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 16;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Bronze
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings1;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 10;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 10;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 12;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 13;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 45;
+ }
+
+ public int getEUt()
+ {
+ return 400;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 16;
+ }
+}
/* 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/multi/GT_MetaTileEntity_LargeBoiler_Steel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java index 7532795cb1..c6f16a7d4f 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Steel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings2;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 16;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 13;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 14;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 46;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 600;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 12;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Steel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 16;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 13;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 14;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 46;
+ }
+
+ public int getEUt()
+ {
+ return 600;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 12;
+ }
+}
/* 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/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java index a5c906827a..7d11836a19 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java @@ -1,75 +1,75 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Titanium
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 2;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 50;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 14;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings4;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 3;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 51;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 800;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 8;
-/* 74: */ }
-/* 75: */ }
\ No newline at end of file +package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Titanium
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 2;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 50;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 14;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 3;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 51;
+ }
+
+ public int getEUt()
+ {
+ return 800;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 8;
+ }
+}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java index 8356a29c3d..399ba2dcf4 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 48;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 15;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 15;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 47;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 1000;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 4;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 48;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 15;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 15;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 47;
+ }
+
+ public int getEUt()
+ {
+ return 1000;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 4;
+ }
+}
/* 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/multi/GT_MetaTileEntity_MultiFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java index ae50fec788..f1017a18a3 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java @@ -1,192 +1,192 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_MultiFurnace
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: 22 */ private int mLevel = 0;
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
-/* 25: */ {
-/* 26: 25 */ super(aID, aName, aNameRegional);
-/* 27: */ }
-/* 28: */
-/* 29: */ public GT_MetaTileEntity_MultiFurnace(String aName)
-/* 30: */ {
-/* 31: 29 */ super(aName);
-/* 32: */ }
-/* 33: */
-/* 34: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 35: */ {
-/* 36: 34 */ return new GT_MetaTileEntity_MultiFurnace(this.mName);
-/* 37: */ }
-/* 38: */
-/* 39: */ public String[] getDescription()
-/* 40: */ {
-/* 41: 39 */ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 42: */ }
-/* 43: */
-/* 44: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 45: */ {
-/* 46: 44 */ if (aSide == aFacing) {
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
-/* 48: */ }
-/* 49: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
-/* 55: */ }
-/* 56: */
-/* 57: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 58: */ {
-/* 59: 55 */ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 63: */ {
-/* 64: 60 */ return true;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isFacingValid(byte aFacing)
-/* 68: */ {
-/* 69: 63 */ return aFacing > 1;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean checkRecipe(ItemStack aStack)
-/* 73: */ {
-/* 74: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 75: 69 */ if (!tInputList.isEmpty())
-/* 76: */ {
-/* 77: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
-/* 78: */
-/* 79: 72 */ int j = 0;
-/* 80: 73 */ this.mOutputItems = new ItemStack[6 * this.mLevel];
-/* 81: 75 */ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
-/* 82: 75 */ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
-/* 83: 75 */ j++;
-/* 84: */ }
-/* 85: */ }
-/* 86: 77 */ if (j > 0)
-/* 87: */ {
-/* 88: 78 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 89: 79 */ this.mEfficiencyIncrease = 10000;
-/* 90: */
-/* 91: 81 */ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
-/* 92: 82 */ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
-/* 93: */ }
-/* 94: 85 */ updateSlots();
-/* 95: 86 */ return true;
-/* 96: */ }
-/* 97: 88 */ return false;
-/* 98: */ }
-/* 99: */
-/* 100: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 101: */ {
-/* 102: 93 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 103: */
-/* 104: 95 */ this.mLevel = 0;
-/* 105: 97 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 106: 97 */ return false;
-/* 107: */ }
-/* 108: 99 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
-/* 109: */
-/* 110:101 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
-/* 111:103 */ switch (tUsedMeta)
-/* 112: */ {
-/* 113: */ case 12:
-/* 114:104 */ this.mLevel = 1; break;
-/* 115: */ case 13:
-/* 116:105 */ this.mLevel = 2; break;
-/* 117: */ case 14:
-/* 118:106 */ this.mLevel = 3; break;
-/* 119: */ default:
-/* 120:107 */ return false;
-/* 121: */ }
-/* 122:110 */ for (int i = -1; i < 2; i++) {
-/* 123:110 */ for (int j = -1; j < 2; j++) {
-/* 124:110 */ if ((i != 0) || (j != 0))
-/* 125: */ {
-/* 126:111 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 127:111 */ return false;
-/* 128: */ }
-/* 129:112 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 130:112 */ return false;
-/* 131: */ }
-/* 132:113 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 133:113 */ return false;
-/* 134: */ }
-/* 135:114 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
-/* 136:114 */ return false;
-/* 137: */ }
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
-/* 141:117 */ for (int i = -1; i < 2; i++) {
-/* 142:117 */ for (int j = -1; j < 2; j++) {
-/* 143:117 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 144: */ {
-/* 145:118 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 146:119 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 147: */ {
-/* 148:120 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 149:120 */ return false;
-/* 150: */ }
-/* 151:121 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 152:121 */ return false;
-/* 153: */ }
-/* 154: */ }
-/* 155: */ }
-/* 156: */ }
-/* 157: */ }
-/* 158:125 */ return true;
-/* 159: */ }
-/* 160: */
-/* 161: */ public int getMaxEfficiency(ItemStack aStack)
-/* 162: */ {
-/* 163:130 */ return 10000;
-/* 164: */ }
-/* 165: */
-/* 166: */ public int getPollutionPerTick(ItemStack aStack)
-/* 167: */ {
-/* 168:135 */ return 20;
-/* 169: */ }
-/* 170: */
-/* 171: */ public int getDamageToComponent(ItemStack aStack)
-/* 172: */ {
-/* 173:140 */ return 0;
-/* 174: */ }
-/* 175: */
-/* 176: */ public int getAmountOfOutputs()
-/* 177: */ {
-/* 178:145 */ return 18;
-/* 179: */ }
-/* 180: */
-/* 181: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 182: */ {
-/* 183:150 */ return false;
-/* 184: */ }
-/* 185: */ }
+public class GT_MetaTileEntity_MultiFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mLevel = 0;
+
+ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_MultiFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_MultiFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty())
+ {
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
+
+ int j = 0;
+ this.mOutputItems = new ItemStack[6 * this.mLevel];
+ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
+ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
+ j++;
+ }
+ }
+ if (j > 0)
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
+ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
+ }
+ updateSlots();
+ return true;
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mLevel = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mLevel = 1; break;
+ case 13:
+ this.mLevel = 2; break;
+ case 14:
+ this.mLevel = 3; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 20;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 18;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/multi/GT_MetaTileEntity_ProcessingArray.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java index 4726181726..6bc1f36794 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -21,41 +21,41 @@ import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBlockBase{ - /* 22: */ public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) - /* 23: */ { - /* 24: 24 */ super(aID, aName, aNameRegional); - /* 25: */ } - /* 26: */ - /* 27: */ public GT_MetaTileEntity_ProcessingArray(String aName) - /* 28: */ { - /* 29: 28 */ super(aName); - /* 30: */ } - /* 31: */ - /* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 33: */ { - /* 34: 33 */ return new GT_MetaTileEntity_ProcessingArray(this.mName); - /* 35: */ } - /* 36: */ - /* 37: */ public String[] getDescription() - /* 38: */ { - /* 39: 38 */ return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; - /* 40: */ } - /* 41: */ - /* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 43: */ { - /* 44: 43 */ if (aSide == aFacing) { - /* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 46: */ } - /* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; - /* 48: */ } - /* 49: */ - /* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 51: */ { - /* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); - /* 53: */ } - /* 54: */ - /* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() - /* 56: */ { + public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_ProcessingArray(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_ProcessingArray(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { if(mInventory[1]==null)return null; String tmp = mInventory[1].getUnlocalizedName().replaceAll("gt.blockmachines.basicmachine.", ""); if(tmp.startsWith("centrifuge")){ @@ -93,55 +93,55 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl }else if(tmp.startsWith("sifter")){ return GT_Recipe.GT_Recipe_Map.sSifterRecipes; } - /* 57: 54 */ return null; - /* 58: */ } - /* 59: */ - /* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 61: */ { + return null; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { if(aStack!=null&&aStack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.")){ - /* 62: 59 */ return true;} + return true;} return false; - /* 63: */ } - /* 64: */ - /* 65: */ public boolean isFacingValid(byte aFacing) - /* 66: */ { - /* 67: 62 */ return aFacing > 1; - /* 68: */ } - /* 69: */ + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + GT_Recipe mLastRecipe; - /* 70: */ public boolean checkRecipe(ItemStack aStack){ + public boolean checkRecipe(ItemStack aStack){ if(!isCorrectMachinePart(mInventory[1])){return false;} GT_Recipe.GT_Recipe_Map map = getRecipeMap(); if(map==null){return false;} - /* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs(); - /* 76: 70 */ int tTier = 0; + ArrayList<ItemStack> tInputList = getStoredInputs(); + int tTier = 0; if(mInventory[1].getUnlocalizedName().endsWith("1")){tTier=1;} if(mInventory[1].getUnlocalizedName().endsWith("2")){tTier=2;} if(mInventory[1].getUnlocalizedName().endsWith("3")){tTier=3;} if(mInventory[1].getUnlocalizedName().endsWith("4")){tTier=4;} if(mInventory[1].getUnlocalizedName().endsWith("5")){tTier=5;} - /* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) { - /* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) { - /* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { - /* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) - /* 81: */ { - /* 82: 73 */ tInputList.remove(j--); - /* 83: */ } - /* 84: */ else - /* 85: */ { - /* 86: 73 */ tInputList.remove(i--); break; - /* 87: */ } - /* 88: */ } - /* 89: */ } - /* 90: */ } - /* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); - /* 92: */ - /* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids(); - /* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) { - /* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) { - /* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { - /* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) - /* 98: */ { + for (int i = 0; i < tInputList.size() - 1; i++) { + for (int j = i + 1; j < tInputList.size(); j++) { + if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { + if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) + { + tInputList.remove(j--); + } + else + { + tInputList.remove(i--); break; + } + } + } + } + ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); + + ArrayList<FluidStack> tFluidList = getStoredFluids(); + for (int i = 0; i < tFluidList.size() - 1; i++) { + for (int j = i + 1; j < tFluidList.size(); j++) { + if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { + if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) + { tFluidList.remove(j--); } else @@ -153,8 +153,8 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl } FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1); if(tInputList.size() > 0 || tFluids.length>0){ - /* 78: 72 */ GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); - /* 79: 73 */ if (tRecipe != null) { + GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); + if (tRecipe != null) { mLastRecipe = tRecipe; this.mEUt = 0; this.mOutputItems = null; @@ -215,45 +215,45 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl this.mOutputFluids = new FluidStack[]{tFOut}; // System.out.println("ArrayOut"+mOutputItems.length+" "+mOutputFluids.length+" "+(mOutputItems.length>0?mOutputItems[0].getUnlocalizedName():"")+" "+(mOutputFluids.length>0?mOutputFluids[0].getUnlocalizedName():" ")); updateSlots(); - /* 105: 93 */ return true; - /* 107: */ } + return true; + } } - /* 109: 96 */ return false; - /* 110: */ } - /* 111: */ - /* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 113: */ { - /* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { - /* 116:103 */ return false; - /* 117: */ } - /* 118:105 */ int tAmount = 0; - /* 119:107 */ for (int i = -1; i < 2; i++) { - /* 120:107 */ for (int j = -1; j < 2; j++) { - /* 121:107 */ for (int h = -1; h < 2; h++) { - /* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) - /* 123: */ { - /* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); - /* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) - /* 126: */ { - /* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { - /* 128:110 */ return false; - /* 129: */ } - /* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { - /* 131:111 */ return false; - /* 132: */ } - /* 133:112 */ tAmount++; - /* 134: */ } - /* 135: */ } - /* 136: */ } - /* 137: */ } - /* 138: */ } - /* 139:116 */ return tAmount >= 16; - /* 140: */ } - /* 141: */ - /* 142: */ public int getMaxEfficiency(ItemStack aStack){return 10000;} - /* 147: */ public int getPollutionPerTick(ItemStack aStack){return 0;} - /* 152: */ public int getDamageToComponent(ItemStack aStack){return 0;} - /* 157: */ public int getAmountOfOutputs(){return 1;} - /* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack){return false;} - /* 166: */ }
\ No newline at end of file + return false; + } + + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { + return false; + } + int tAmount = 0; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = -1; h < 2; h++) { + if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { + return false; + } + tAmount++; + } + } + } + } + } + return tAmount >= 16; + } + + public int getMaxEfficiency(ItemStack aStack){return 10000;} + public int getPollutionPerTick(ItemStack aStack){return 0;} + public int getDamageToComponent(ItemStack aStack){return 0;} + public int getAmountOfOutputs(){return 1;} + public boolean explodesOnComponentBreak(ItemStack aStack){return false;} + }
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java index 14facd8a71..e416905b7c 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java @@ -1,172 +1,172 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_VacuumFreezer
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 24 */ super(aID, aName, aNameRegional);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_VacuumFreezer(String aName)
-/* 28: */ {
-/* 29: 28 */ super(aName);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34: 33 */ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
-/* 35: */ }
-/* 36: */
-/* 37: */ public String[] getDescription()
-/* 38: */ {
-/* 39: 38 */ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
-/* 40: */ }
-/* 41: */
-/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 43: */ {
-/* 44: 43 */ if (aSide == aFacing) {
-/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
-/* 46: */ }
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
-/* 48: */ }
-/* 49: */
-/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 51: */ {
-/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
-/* 53: */ }
-/* 54: */
-/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 56: */ {
-/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 61: */ {
-/* 62: 59 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean isFacingValid(byte aFacing)
-/* 66: */ {
-/* 67: 62 */ return aFacing > 1;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean checkRecipe(ItemStack aStack)
-/* 71: */ {
-/* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 73: 68 */ for (ItemStack tInput : tInputList)
-/* 74: */ {
-/* 75: 69 */ long tVoltage = getMaxInputVoltage();
-/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 77: */
-/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
-/* 79: 73 */ if (tRecipe != null) {
-/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
-/* 81: */ {
-/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 83: 75 */ this.mEfficiencyIncrease = 10000;
-/* 84: 77 */ if (tRecipe.mEUt <= 16)
-/* 85: */ {
-/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 88: */ }
-/* 89: */ else
-/* 90: */ {
-/* 91: 81 */ this.mEUt = tRecipe.mEUt;
-/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 94: */ {
-/* 95: 84 */ this.mEUt *= 4;
-/* 96: 85 */ this.mMaxProgresstime /= 2;
-/* 97: */ }
-/* 98: */ }
-/* 99: 89 */ if (this.mEUt > 0) {
-/* 100: 89 */ this.mEUt = (-this.mEUt);
-/* 101: */ }
-/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
-/* 104: 92 */ updateSlots();
-/* 105: 93 */ return true;
-/* 106: */ }
-/* 107: */ }
-/* 108: */ }
-/* 109: 96 */ return false;
-/* 110: */ }
-/* 111: */
-/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 113: */ {
-/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 116:103 */ return false;
-/* 117: */ }
-/* 118:105 */ int tAmount = 0;
-/* 119:107 */ for (int i = -1; i < 2; i++) {
-/* 120:107 */ for (int j = -1; j < 2; j++) {
-/* 121:107 */ for (int h = -1; h < 2; h++) {
-/* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 123: */ {
-/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
-/* 126: */ {
-/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
-/* 128:110 */ return false;
-/* 129: */ }
-/* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
-/* 131:111 */ return false;
-/* 132: */ }
-/* 133:112 */ tAmount++;
-/* 134: */ }
-/* 135: */ }
-/* 136: */ }
-/* 137: */ }
-/* 138: */ }
-/* 139:116 */ return tAmount >= 16;
-/* 140: */ }
-/* 141: */
-/* 142: */ public int getMaxEfficiency(ItemStack aStack)
-/* 143: */ {
-/* 144:121 */ return 10000;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getPollutionPerTick(ItemStack aStack)
-/* 148: */ {
-/* 149:126 */ return 0;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getDamageToComponent(ItemStack aStack)
-/* 153: */ {
-/* 154:131 */ return 0;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getAmountOfOutputs()
-/* 158: */ {
-/* 159:136 */ return 1;
-/* 160: */ }
-/* 161: */
-/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 163: */ {
-/* 164:141 */ return false;
-/* 165: */ }
-/* 166: */ }
+public class GT_MetaTileEntity_VacuumFreezer
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_VacuumFreezer(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (ItemStack tInput : tInputList)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
+ if (tRecipe != null) {
+ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java index 49e4befd16..e8e06e94a8 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_AlloySmelter_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_AlloySmelter_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_AlloySmelter_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 2, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = tRecipe.mEUt;
-/* 49: 43 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = tRecipe.mEUt;
-/* 54: 46 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_AlloySmelter_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_AlloySmelter_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
+ }
+
+ public GT_MetaTileEntity_AlloySmelter_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 2, 1, true);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_AlloySmelter_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java index 8a3dbfee52..e2d9ddbf62 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_AlloySmelter_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_AlloySmelter_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_AlloySmelter_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 2, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 49: 43 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 54: 46 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_AlloySmelter_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_AlloySmelter_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
+ }
+
+ public GT_MetaTileEntity_AlloySmelter_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 2, 1, true);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ else
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Compressor_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java index 9aed7547ec..8b9d8400c8 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Compressor_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Compressor_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Compressor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeCompressor.png", "ic2.compressor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 2;
-/* 45:39 */ this.mMaxProgresstime = 800;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Compressor_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Compressor_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Compressor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeCompressor.png", "ic2.compressor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 2;
+ this.mMaxProgresstime = 800;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Compressor_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java index b331b596fd..ec478e620f 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Compressor_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Compressor_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Compressor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelCompressor.png", "ic2.compressor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 6;
-/* 45:39 */ this.mMaxProgresstime = 400;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Compressor_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Compressor_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Compressor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelCompressor.png", "ic2.compressor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Extractor_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java index 9fe408e578..bfcf602ca3 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Extractor_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Extractor_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Extractor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeExtractor.png", "ic2.extractor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 2;
-/* 45:39 */ this.mMaxProgresstime = 800;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Extractor_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Extractor_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Extractor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeExtractor.png", "ic2.extractor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 2;
+ this.mMaxProgresstime = 800;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Extractor_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java index c283890139..d2a0cc3c70 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Extractor_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Extractor_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Extractor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelExtractor.png", "ic2.extractor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 6;
-/* 45:39 */ this.mMaxProgresstime = 400;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Extractor_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Extractor_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Extractor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelExtractor.png", "ic2.extractor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java index 19764d0034..5596571384 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_ForgeHammer_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_ForgeHammer_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_ForgeHammer_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = tRecipe.mEUt;
-/* 49: 43 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = tRecipe.mEUt;
-/* 54: 46 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_ForgeHammer_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_ForgeHammer_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_ForgeHammer_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_ForgeHammer_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java index 162a660d67..fda0620572 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_ForgeHammer_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_ForgeHammer_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_ForgeHammer_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 49: 43 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 54: 46 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_ForgeHammer_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_ForgeHammer_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_ForgeHammer_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ else
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Furnace_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java index be5749ed5f..29606fceee 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Furnace_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Furnace_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Furnace_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeFurnace.png", "smelting");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 4;
-/* 45:39 */ this.mMaxProgresstime = 256;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Furnace_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Furnace_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
+ }
+
+ public GT_MetaTileEntity_Furnace_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, true);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeFurnace.png", "smelting");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 4;
+ this.mMaxProgresstime = 256;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Furnace_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java index d8bddf4a71..3bce5fd489 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Furnace_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Furnace_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Furnace_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelFurnace.png", "smelting");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 12;
-/* 45:39 */ this.mMaxProgresstime = 128;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Furnace_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Furnace_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
+ }
+
+ public GT_MetaTileEntity_Furnace_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, true);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelFurnace.png", "smelting");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 12;
+ this.mMaxProgresstime = 128;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
+ }
+}
/* 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/steam/GT_MetaTileEntity_Macerator_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java index 54c1257b23..3fde9702d5 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java @@ -1,127 +1,127 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 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_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
+import java.util.Random;
-/* 13: */ import java.util.Map;
-/* 14: */ import java.util.Random;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraft.world.World;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_Macerator_Steel
-/* 20: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_Macerator_Steel(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 21 */ super(aID, aName, aNameRegional, "Macerating your Ores", 1, 1, false);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Macerator_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29: 25 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 30: */ }
-/* 31: */
-/* 32: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 33: */ {
-/* 34: 30 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelMacerator.png", "ic2.macerator");
-/* 35: */ }
-/* 36: */
-/* 37: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 38: */ {
-/* 39: 35 */ return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures);
-/* 40: */ }
-/* 41: */
-/* 42: */ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 43: */ {
-/* 44: 40 */ super.onPreTick(aBaseMetaTileEntity, aTick);
-/* 45: 41 */ if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive()) && (aBaseMetaTileEntity.getFrontFacing() != 1) && (aBaseMetaTileEntity.getCoverIDAtSide((byte)1) == 0) && (!aBaseMetaTileEntity.getOpacityAtSide((byte)1)))
-/* 46: */ {
-/* 47: 42 */ Random tRandom = aBaseMetaTileEntity.getWorld().rand;
-/* 48: 43 */ aBaseMetaTileEntity.getWorld().spawnParticle("smoke", aBaseMetaTileEntity.getXCoord() + 0.8F - tRandom.nextFloat() * 0.6F, aBaseMetaTileEntity.getYCoord() + 0.9F + tRandom.nextFloat() * 0.2F, aBaseMetaTileEntity.getZCoord() + 0.8F - tRandom.nextFloat() * 0.6F, 0.0D, 0.0D, 0.0D);
-/* 49: */ }
-/* 50: */ }
-/* 51: */
-/* 52: */ public int checkRecipe()
-/* 53: */ {
-/* 54: 49 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getMaceratorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 55: */ {
-/* 56: 50 */ this.mEUt = 6;
-/* 57: 51 */ this.mMaxProgresstime = 400;
-/* 58: 52 */ return 2;
-/* 59: */ }
-/* 60: 54 */ return 0;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 64: */ {
+public class GT_MetaTileEntity_Macerator_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Macerator_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Macerating your Ores", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Macerator_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelMacerator.png", "ic2.macerator");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ super.onPreTick(aBaseMetaTileEntity, aTick);
+ if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive()) && (aBaseMetaTileEntity.getFrontFacing() != 1) && (aBaseMetaTileEntity.getCoverIDAtSide((byte)1) == 0) && (!aBaseMetaTileEntity.getOpacityAtSide((byte)1)))
+ {
+ Random tRandom = aBaseMetaTileEntity.getWorld().rand;
+ aBaseMetaTileEntity.getWorld().spawnParticle("smoke", aBaseMetaTileEntity.getXCoord() + 0.8F - tRandom.nextFloat() * 0.6F, aBaseMetaTileEntity.getYCoord() + 0.9F + tRandom.nextFloat() * 0.2F, aBaseMetaTileEntity.getZCoord() + 0.8F - tRandom.nextFloat() * 0.6F, 0.0D, 0.0D, 0.0D);
+ }
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getMaceratorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 66: 59 */ return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 70: */ {
-/* 71: 64 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 72: 65 */ if (aIndex == 1) {
-/* 73: 65 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ);
-/* 74: */ }
-/* 75: */ }
-/* 76: */
-/* 77: */ public void startProcess()
-/* 78: */ {
-/* 79: 70 */ sendLoopStart((byte)1);
-/* 80: */ }
-/* 81: */
-/* 82: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 83: */ {
-/* 84: 75 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE) };
-/* 85: */ }
-/* 86: */
-/* 87: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 88: */ {
-/* 89: 80 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR) };
-/* 90: */ }
-/* 91: */
-/* 92: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 93: */ {
-/* 94: 85 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE) };
-/* 95: */ }
-/* 96: */
-/* 97: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 98: */ {
-/* 99: 90 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR) };
-/* 100: */ }
-/* 101: */
-/* 102: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 103: */ {
-/* 104: 95 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR_ACTIVE) };
-/* 105: */ }
-/* 106: */
-/* 107: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 108: */ {
-/* 109:100 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR) };
-/* 110: */ }
-/* 111: */
-/* 112: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 113: */ {
-/* 114:105 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE) };
-/* 115: */ }
-/* 116: */
-/* 117: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 118: */ {
-/* 119:110 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR) };
-/* 120: */ }
-/* 121: */ }
+ return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR) };
+ }
+}
/* 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/storage/GT_MetaTileEntity_Locker.java b/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java index 3f0e525786..1f6df57cab 100644 --- a/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java +++ b/main/java/gregtech/common/tileentities/storage/GT_MetaTileEntity_Locker.java @@ -1,200 +1,200 @@ -/* 1: */ package gregtech.common.tileentities.storage;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.storage;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_TieredMachineBlock;
-/* 9: */ import gregtech.api.objects.GT_ItemStack;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_TieredMachineBlock;
+import gregtech.api.objects.GT_ItemStack;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 12: */ import java.util.Map;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.Container;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.inventory.Container;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.nbt.NBTTagCompound;
-/* 17: */
-/* 18: */ public class GT_MetaTileEntity_Locker
-/* 19: */ extends GT_MetaTileEntity_TieredMachineBlock
-/* 20: */ {
-/* 21: 24 */ public byte mType = 0;
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_Locker(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25: 27 */ super(aID, aName, aNameRegional, aTier, 4, "Stores and recharges Armor", new ITexture[0]);
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Locker(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 29: */ {
-/* 30: 31 */ super(aName, aTier, 4, aDescription, aTextures);
-/* 31: */ }
-/* 32: */
-/* 33: */ public String[] getDescription()
-/* 34: */ {
-/* 35: 36 */ return new String[] { this.mDescription, "Click with Screwdriver to change Style" };
-/* 36: */ }
-/* 37: */
-/* 38: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 39: */ {
-/* 40: 41 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 41: 42 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 42: */ {ITexture[] tmp0 ={ Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)] };
-/* 43: 43 */ rTextures[0][(i + 1)] = tmp0;
-/* 44: 44 */ ITexture[] tmp1 ={ Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)], Textures.BlockIcons.OVERLAYS_ENERGY_IN[this.mTier] };
+public class GT_MetaTileEntity_Locker
+ extends GT_MetaTileEntity_TieredMachineBlock
+{
+ public byte mType = 0;
+
+ public GT_MetaTileEntity_Locker(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 4, "Stores and recharges Armor", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Locker(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, 4, aDescription, aTextures);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { this.mDescription, "Click with Screwdriver to change Style" };
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)] };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)], Textures.BlockIcons.OVERLAYS_ENERGY_IN[this.mTier] };
rTextures[1][(i + 1)] = tmp1;
-/* 45: 45 */ ITexture[] tmp2 = { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_LOCKER) };
+ ITexture[] tmp2 = { Textures.BlockIcons.MACHINE_CASINGS[this.mTier][(i + 1)], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_LOCKER) };
rTextures[2][(i + 1)] =tmp2;
-/* 46: */ }
-/* 47: 47 */ return rTextures;
-/* 48: */ }
-/* 49: */
-/* 50: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 51: */ {
-/* 52: 52 */ if (aSide == aFacing) {
-/* 53: 52 */ return new ITexture[] { this.mTextures[2][(aColorIndex + 1)][0], this.mTextures[2][(aColorIndex + 1)][1], Textures.BlockIcons.LOCKERS[java.lang.Math.abs(this.mType % Textures.BlockIcons.LOCKERS.length)] };
-/* 54: */ }
-/* 55: 53 */ return this.mTextures[0][(aColorIndex + 1)];
-/* 56: */ }
-/* 57: */
-/* 58: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 59: */ {
-/* 60: 58 */ return new GT_MetaTileEntity_Locker(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean isSimpleMachine()
-/* 64: */ {
-/* 65: 61 */ return false;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean isElectric()
-/* 69: */ {
-/* 70: 62 */ return true;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean isValidSlot(int aIndex)
-/* 74: */ {
-/* 75: 63 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean isFacingValid(byte aFacing)
-/* 79: */ {
-/* 80: 64 */ return aFacing > 1;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isEnetInput()
-/* 84: */ {
-/* 85: 65 */ return true;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean isInputFacing(byte aSide)
-/* 89: */ {
-/* 90: 66 */ return aSide == getBaseMetaTileEntity().getBackFacing();
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean isTeleporterCompatible()
-/* 94: */ {
-/* 95: 67 */ return false;
-/* 96: */ }
-/* 97: */
-/* 98: */ public long maxEUStore()
-/* 99: */ {
-/* 100: 68 */ return gregtech.api.enums.GT_Values.V[this.mTier] * maxAmperesIn();
-/* 101: */ }
-/* 102: */
-/* 103: */ public long maxEUInput()
-/* 104: */ {
-/* 105: 69 */ return gregtech.api.enums.GT_Values.V[this.mTier];
-/* 106: */ }
-/* 107: */
-/* 108: */ public long maxAmperesIn()
-/* 109: */ {
-/* 110: 70 */ return this.mInventory.length * 2;
-/* 111: */ }
-/* 112: */
-/* 113: */ public int rechargerSlotStartIndex()
-/* 114: */ {
-/* 115: 71 */ return 0;
-/* 116: */ }
-/* 117: */
-/* 118: */ public int rechargerSlotCount()
-/* 119: */ {
-/* 120: 72 */ return getBaseMetaTileEntity().isAllowedToWork() ? this.mInventory.length : 0;
-/* 121: */ }
-/* 122: */
-/* 123: */ public boolean isAccessAllowed(EntityPlayer aPlayer)
-/* 124: */ {
-/* 125: 73 */ return true;
-/* 126: */ }
-/* 127: */
-/* 128: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 129: */ {
-/* 130: 77 */ aNBT.setByte("mType", this.mType);
-/* 131: */ }
-/* 132: */
-/* 133: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 134: */ {
-/* 135: 82 */ this.mType = aNBT.getByte("mType");
-/* 136: */ }
-/* 137: */
-/* 138: */ public void onValueUpdate(byte aValue)
-/* 139: */ {
-/* 140: 87 */ this.mType = aValue;
-/* 141: */ }
-/* 142: */
-/* 143: */ public byte getUpdateData()
-/* 144: */ {
-/* 145: 92 */ return this.mType;
-/* 146: */ }
-/* 147: */
-/* 148: */ public void doSound(byte aIndex, double aX, double aY, double aZ)
-/* 149: */ {
-/* 150: 97 */ if (aIndex == 16) {
-/* 151: 97 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(3)), 1, 1.0F);
-/* 152: */ }
-/* 153: */ }
-/* 154: */
-/* 155: */ public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 156: */ {
-/* 157:102 */ if (aSide == getBaseMetaTileEntity().getFrontFacing()) {
-/* 158:102 */ this.mType = ((byte)(this.mType + 1));
-/* 159: */ }
-/* 160: */ }
-/* 161: */
-/* 162: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack)
-/* 163: */ {
-/* 164:107 */ return aSide != getBaseMetaTileEntity().getFrontFacing();
-/* 165: */ }
-/* 166: */
-/* 167: */ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, float aZ)
-/* 168: */ {
-/* 169:112 */ if ((aBaseMetaTileEntity.isServerSide()) && (aSide == aBaseMetaTileEntity.getFrontFacing()))
-/* 170: */ {
-/* 171:113 */ for (int i = 0; i < 4; i++)
-/* 172: */ {
-/* 173:114 */ ItemStack tSwapStack = this.mInventory[i];
-/* 174:115 */ this.mInventory[i] = aPlayer.inventory.armorInventory[i];
-/* 175:116 */ aPlayer.inventory.armorInventory[i] = tSwapStack;
-/* 176: */ }
-/* 177:118 */ aPlayer.inventoryContainer.detectAndSendChanges();
-/* 178:119 */ sendSound((byte)16);
-/* 179: */ }
-/* 180:121 */ return true;
-/* 181: */ }
-/* 182: */
-/* 183: */ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 184: */ {
-/* 185:126 */ return false;
-/* 186: */ }
-/* 187: */
-/* 188: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 189: */ {
-/* 190:131 */ return false;
-/* 191: */ }
-/* 192: */ }
+ }
+ return rTextures;
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { this.mTextures[2][(aColorIndex + 1)][0], this.mTextures[2][(aColorIndex + 1)][1], Textures.BlockIcons.LOCKERS[java.lang.Math.abs(this.mType % Textures.BlockIcons.LOCKERS.length)] };
+ }
+ return this.mTextures[0][(aColorIndex + 1)];
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Locker(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public boolean isSimpleMachine()
+ {
+ return false;
+ }
+
+ public boolean isElectric()
+ {
+ return true;
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean isEnetInput()
+ {
+ return true;
+ }
+
+ public boolean isInputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getBackFacing();
+ }
+
+ public boolean isTeleporterCompatible()
+ {
+ return false;
+ }
+
+ public long maxEUStore()
+ {
+ return gregtech.api.enums.GT_Values.V[this.mTier] * maxAmperesIn();
+ }
+
+ public long maxEUInput()
+ {
+ return gregtech.api.enums.GT_Values.V[this.mTier];
+ }
+
+ public long maxAmperesIn()
+ {
+ return this.mInventory.length * 2;
+ }
+
+ public int rechargerSlotStartIndex()
+ {
+ return 0;
+ }
+
+ public int rechargerSlotCount()
+ {
+ return getBaseMetaTileEntity().isAllowedToWork() ? this.mInventory.length : 0;
+ }
+
+ public boolean isAccessAllowed(EntityPlayer aPlayer)
+ {
+ return true;
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ aNBT.setByte("mType", this.mType);
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ this.mType = aNBT.getByte("mType");
+ }
+
+ public void onValueUpdate(byte aValue)
+ {
+ this.mType = aValue;
+ }
+
+ public byte getUpdateData()
+ {
+ return this.mType;
+ }
+
+ public void doSound(byte aIndex, double aX, double aY, double aZ)
+ {
+ if (aIndex == 16) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(3)), 1, 1.0F);
+ }
+ }
+
+ public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (aSide == getBaseMetaTileEntity().getFrontFacing()) {
+ this.mType = ((byte)(this.mType + 1));
+ }
+ }
+
+ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack)
+ {
+ return aSide != getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, float aZ)
+ {
+ if ((aBaseMetaTileEntity.isServerSide()) && (aSide == aBaseMetaTileEntity.getFrontFacing()))
+ {
+ for (int i = 0; i < 4; i++)
+ {
+ ItemStack tSwapStack = this.mInventory[i];
+ this.mInventory[i] = aPlayer.inventory.armorInventory[i];
+ aPlayer.inventory.armorInventory[i] = tSwapStack;
+ }
+ aPlayer.inventoryContainer.detectAndSendChanges();
+ sendSound((byte)16);
+ }
+ return true;
+ }
+
+ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return false;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return false;
+ }
+}
/* 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/tools/GT_Tool.java b/main/java/gregtech/common/tools/GT_Tool.java index 7af4bc3837..3bd87a4b5f 100644 --- a/main/java/gregtech/common/tools/GT_Tool.java +++ b/main/java/gregtech/common/tools/GT_Tool.java @@ -1,173 +1,173 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.damagesources.GT_DamageSources;
-/* 5: */ import gregtech.api.interfaces.IToolStats;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+package gregtech.common.tools;
-/* 7: */ import java.util.List;
-/* 8: */ import java.util.Map;
+import gregtech.api.GregTech_API;
+import gregtech.api.damagesources.GT_DamageSources;
+import gregtech.api.interfaces.IToolStats;
+import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.enchantment.Enchantment;
-/* 11: */ import net.minecraft.entity.Entity;
-/* 12: */ import net.minecraft.entity.EntityLivingBase;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.stats.AchievementList;
-/* 16: */ import net.minecraft.util.DamageSource;
-/* 17: */ import net.minecraft.util.EntityDamageSource;
-/* 18: */ import net.minecraft.util.IChatComponent;
+import java.util.List;
+import java.util.Map;
+
+import net.minecraft.block.Block;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
+import net.minecraft.util.DamageSource;
+import net.minecraft.util.EntityDamageSource;
+import net.minecraft.util.IChatComponent;
import net.minecraftforge.event.world.BlockEvent;
-/* 19: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 20: */
-/* 21: */ public abstract class GT_Tool
-/* 22: */ implements IToolStats
-/* 23: */ {
-/* 24: 23 */ public static final Enchantment[] FORTUNE_ENCHANTMENT = { Enchantment.fortune };
-/* 25: 24 */ public static final Enchantment[] LOOTING_ENCHANTMENT = { Enchantment.looting };
-/* 26: 25 */ public static final Enchantment[] ZERO_ENCHANTMENTS = new Enchantment[0];
-/* 27: 26 */ public static final int[] ZERO_ENCHANTMENT_LEVELS = new int[0];
-/* 28: */
-/* 29: */ public int getToolDamagePerBlockBreak()
-/* 30: */ {
-/* 31: 30 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerDropConversion()
-/* 35: */ {
-/* 36: 35 */ return 100;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getToolDamagePerContainerCraft()
-/* 40: */ {
-/* 41: 40 */ return 800;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getToolDamagePerEntityAttack()
-/* 45: */ {
-/* 46: 45 */ return 200;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51: 50 */ return 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56: 55 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 60: */ {
-/* 61: 60 */ return aOriginalHurtResistance;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getMiningSound()
-/* 65: */ {
-/* 66: 65 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getCraftingSound()
-/* 70: */ {
-/* 71: 70 */ return null;
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getEntityHitSound()
-/* 75: */ {
-/* 76: 75 */ return null;
-/* 77: */ }
-/* 78: */
-/* 79: */ public String getBreakingSound()
-/* 80: */ {
-/* 81: 80 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 82: */ }
-/* 83: */
-/* 84: */ public int getBaseQuality()
-/* 85: */ {
-/* 86: 85 */ return 0;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean canBlock()
-/* 90: */ {
-/* 91: 90 */ return false;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isCrowbar()
-/* 95: */ {
-/* 96: 95 */ return false;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean isGrafter()
-/* 100: */ {
-/* 101:100 */ return false;
-/* 102: */ }
-/* 103: */
-/* 104: */ public boolean isWeapon()
-/* 105: */ {
-/* 106:105 */ return false;
-/* 107: */ }
-/* 108: */
-/* 109: */ public boolean isRangedWeapon()
-/* 110: */ {
-/* 111:110 */ return false;
-/* 112: */ }
-/* 113: */
-/* 114: */ public boolean isMiningTool()
-/* 115: */ {
-/* 116:115 */ return true;
-/* 117: */ }
-/* 118: */
-/* 119: */ public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity)
-/* 120: */ {
-/* 121:120 */ return GT_DamageSources.getCombatDamage((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer, (aEntity instanceof EntityLivingBase) ? getDeathMessage(aPlayer, (EntityLivingBase)aEntity) : null);
-/* 122: */ }
-/* 123: */
-/* 124: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 125: */ {
-/* 126:124 */ return new EntityDamageSource((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer).func_151519_b(aEntity);
-/* 127: */ }
-/* 128: */
-/* 129: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 130: */ {
-/* 131:129 */ return 0;
-/* 132: */ }
-/* 133: */
-/* 134: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 135: */ {
-/* 136:134 */ return null;
-/* 137: */ }
-/* 138: */
-/* 139: */ public Enchantment[] getEnchantments(ItemStack aStack)
-/* 140: */ {
-/* 141:139 */ return ZERO_ENCHANTMENTS;
-/* 142: */ }
-/* 143: */
-/* 144: */ public int[] getEnchantmentLevels(ItemStack aStack)
-/* 145: */ {
-/* 146:144 */ return ZERO_ENCHANTMENT_LEVELS;
-/* 147: */ }
-/* 148: */
-/* 149: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 150: */ {
-/* 151:149 */ aPlayer.triggerAchievement(AchievementList.openInventory);
-/* 152:150 */ aPlayer.triggerAchievement(AchievementList.mineWood);
-/* 153:151 */ aPlayer.triggerAchievement(AchievementList.buildWorkBench);
-/* 154: */ }
-/* 155: */
-/* 156: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 157: */
-/* 158: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 159: */ {
-/* 160:161 */ return aOriginalDamage;
-/* 161: */ }
-/* 162: */
-/* 163: */ public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 164: */ {
-/* 165:166 */ return aOriginalDamage;
-/* 166: */ }
-/* 167: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public abstract class GT_Tool
+ implements IToolStats
+{
+ public static final Enchantment[] FORTUNE_ENCHANTMENT = { Enchantment.fortune };
+ public static final Enchantment[] LOOTING_ENCHANTMENT = { Enchantment.looting };
+ public static final Enchantment[] ZERO_ENCHANTMENTS = new Enchantment[0];
+ public static final int[] ZERO_ENCHANTMENT_LEVELS = new int[0];
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance;
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isGrafter()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return false;
+ }
+
+ public boolean isRangedWeapon()
+ {
+ return false;
+ }
+
+ public boolean isMiningTool()
+ {
+ return true;
+ }
+
+ public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity)
+ {
+ return GT_DamageSources.getCombatDamage((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer, (aEntity instanceof EntityLivingBase) ? getDeathMessage(aPlayer, (EntityLivingBase)aEntity) : null);
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new EntityDamageSource((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer).func_151519_b(aEntity);
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ return 0;
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public Enchantment[] getEnchantments(ItemStack aStack)
+ {
+ return ZERO_ENCHANTMENTS;
+ }
+
+ public int[] getEnchantmentLevels(ItemStack aStack)
+ {
+ return ZERO_ENCHANTMENT_LEVELS;
+ }
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ aPlayer.triggerAchievement(AchievementList.openInventory);
+ aPlayer.triggerAchievement(AchievementList.mineWood);
+ aPlayer.triggerAchievement(AchievementList.buildWorkBench);
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ return aOriginalDamage;
+ }
+
+ public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ return aOriginalDamage;
+ }
+}
/* 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/tools/GT_Tool_Axe.java b/main/java/gregtech/common/tools/GT_Tool_Axe.java index 5f07ded782..72c60f1578 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Axe.java +++ b/main/java/gregtech/common/tools/GT_Tool_Axe.java @@ -1,149 +1,149 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+package gregtech.common.tools;
-/* 8: */ import java.util.List;
-/* 9: */ import java.util.Map;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.block.material.Material;
-/* 12: */ import net.minecraft.entity.EntityLivingBase;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.util.ChatComponentText;
-/* 16: */ import net.minecraft.util.EnumChatFormatting;
-/* 17: */ import net.minecraft.util.IChatComponent;
-/* 18: */ import net.minecraft.world.World;
+import java.util.List;
+import java.util.Map;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+import net.minecraft.world.World;
import net.minecraftforge.event.world.BlockEvent;
-/* 19: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 20: */
-/* 21: */ public class GT_Tool_Axe
-/* 22: */ extends GT_Tool
-/* 23: */ {
-/* 24: */ public int getToolDamagePerBlockBreak()
-/* 25: */ {
-/* 26: 23 */ return 50;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerDropConversion()
-/* 30: */ {
-/* 31: 28 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerContainerCraft()
-/* 35: */ {
-/* 36: 33 */ return 100;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getToolDamagePerEntityAttack()
-/* 40: */ {
-/* 41: 38 */ return 200;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getBaseQuality()
-/* 45: */ {
-/* 46: 43 */ return 0;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getBaseDamage()
-/* 50: */ {
-/* 51: 48 */ return 3.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getSpeedMultiplier()
-/* 55: */ {
-/* 56: 53 */ return 2.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public float getMaxDurabilityMultiplier()
-/* 60: */ {
-/* 61: 58 */ return 1.0F;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getCraftingSound()
-/* 65: */ {
-/* 66: 63 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getEntityHitSound()
-/* 70: */ {
-/* 71: 68 */ return null;
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getBreakingSound()
-/* 75: */ {
-/* 76: 73 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 77: */ }
-/* 78: */
-/* 79: */ public String getMiningSound()
-/* 80: */ {
-/* 81: 78 */ return null;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean canBlock()
-/* 85: */ {
-/* 86: 83 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isCrowbar()
-/* 90: */ {
-/* 91: 88 */ return false;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isWeapon()
-/* 95: */ {
-/* 96: 93 */ return true;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 100: */ {
-/* 101: 98 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 102: 99 */ return ((tTool != null) && (tTool.equals("axe"))) || (aBlock.getMaterial() == Material.wood);
-/* 103: */ }
-/* 104: */
-/* 105: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 106: */ {
-/* 107:104 */ int rAmount = 0;
-/* 108:105 */ if ((GregTech_API.sTimber) && (!aPlayer.isSneaking()) && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))))
-/* 109: */ {
-/* 110:106 */ int tY = aY + 1;
-/* 111:106 */ for (int tH = aPlayer.worldObj.getHeight(); tY < tH; tY++)
-/* 112: */ {
-/* 113:107 */ if ((aPlayer.worldObj.getBlock(aX, tY, aZ) != aBlock) || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) {
-/* 114: */ break;
-/* 115: */ }
-/* 116:107 */ rAmount++;
-/* 117: */ }
-/* 118: */ }
-/* 119:110 */ return rAmount;
-/* 120: */ }
-/* 121: */
-/* 122: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 123: */ {
-/* 124:115 */ return null;
-/* 125: */ }
-/* 126: */
-/* 127: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 128: */ {
-/* 129:120 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.toolHeadAxe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.stick.mTextureIndex];
-/* 130: */ }
-/* 131: */
-/* 132: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 133: */ {
-/* 134:125 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 135: */ }
-/* 136: */
-/* 137: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 138: */
-/* 139: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 140: */ {
-/* 141:135 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been chopped by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 142: */ }
-/* 143: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_Axe
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("axe"))) || (aBlock.getMaterial() == Material.wood);
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ int rAmount = 0;
+ if ((GregTech_API.sTimber) && (!aPlayer.isSneaking()) && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData))))
+ {
+ int tY = aY + 1;
+ for (int tH = aPlayer.worldObj.getHeight(); tY < tH; tY++)
+ {
+ if ((aPlayer.worldObj.getBlock(aX, tY, aZ) != aBlock) || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) {
+ break;
+ }
+ rAmount++;
+ }
+ }
+ return rAmount;
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.toolHeadAxe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been chopped by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_BranchCutter.java b/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java index 2a26e934f6..0757a5117c 100644 --- a/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java +++ b/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java @@ -1,103 +1,103 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.api.util.GT_ModHandler;
-/* 8: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
-/* 9: */ import java.util.List;
-/* 10: */ import java.util.Random;
+import java.util.List;
+import java.util.Random;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 14: */ import net.minecraft.entity.player.EntityPlayer;
-/* 15: */ import net.minecraft.init.Blocks;
-/* 16: */ import net.minecraft.init.Items;
-/* 17: */ import net.minecraft.item.Item;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraft.util.ChatComponentText;
-/* 20: */ import net.minecraft.util.EnumChatFormatting;
-/* 21: */ import net.minecraft.util.IChatComponent;
-/* 22: */ import net.minecraft.world.World;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+import net.minecraft.world.World;
import net.minecraftforge.event.world.BlockEvent;
-/* 23: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 24: */
-/* 25: */ public class GT_Tool_BranchCutter
-/* 26: */ extends GT_Tool
-/* 27: */ {
-/* 28: */ public float getBaseDamage()
-/* 29: */ {
-/* 30:26 */ return 2.5F;
-/* 31: */ }
-/* 32: */
-/* 33: */ public float getSpeedMultiplier()
-/* 34: */ {
-/* 35:31 */ return 0.25F;
-/* 36: */ }
-/* 37: */
-/* 38: */ public float getMaxDurabilityMultiplier()
-/* 39: */ {
-/* 40:36 */ return 0.25F;
-/* 41: */ }
-/* 42: */
-/* 43: */ public boolean isGrafter()
-/* 44: */ {
-/* 45:41 */ return true;
-/* 46: */ }
-/* 47: */
-/* 48: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 49: */ {
-/* 50:46 */ if (aBlock.getMaterial() == Material.leaves)
-/* 51: */ {
-/* 52:47 */ aEvent.dropChance = Math.min(1.0F, Math.max(aEvent.dropChance, (aStack.getItem().getHarvestLevel(aStack, "") + 1) * 0.2F));
-/* 53:48 */ if (aBlock == Blocks.leaves)
-/* 54: */ {
-/* 55:49 */ aDrops.clear();
-/* 56:50 */ if (((aMetaData & 0x3) == 0) && (aPlayer.worldObj.rand.nextInt(9) <= aFortune * 2)) {
-/* 57:50 */ aDrops.add(new ItemStack(Items.apple, 1, 0));
-/* 58: */ } else {
-/* 59:50 */ aDrops.add(new ItemStack(Blocks.sapling, 1, aMetaData & 0x3));
-/* 60: */ }
-/* 61: */ }
-/* 62:51 */ else if (aBlock == Blocks.leaves2)
-/* 63: */ {
-/* 64:52 */ aDrops.clear();
-/* 65:53 */ aDrops.add(new ItemStack(Blocks.sapling, 1, (aMetaData & 0x3) + 4));
-/* 66: */ }
-/* 67:54 */ else if (aBlock == GT_Utility.getBlockFromStack(GT_ModHandler.getIC2Item("rubberLeaves", 1L)))
-/* 68: */ {
-/* 69:55 */ aDrops.clear();
-/* 70:56 */ aDrops.add(GT_ModHandler.getIC2Item("rubberSapling", 1L));
-/* 71: */ }
-/* 72: */ }
-/* 73:59 */ return 0;
-/* 74: */ }
-/* 75: */
-/* 76: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 77: */ {
-/* 78:64 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 79:65 */ return ((tTool != null) && (tTool.equals("grafter"))) || (aBlock.getMaterial() == Material.leaves);
-/* 80: */ }
-/* 81: */
-/* 82: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 83: */ {
-/* 84:70 */ return aIsToolHead ? Textures.ItemIcons.GRAFTER : null;
-/* 85: */ }
-/* 86: */
-/* 87: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 88: */ {
-/* 89:75 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 90: */ }
-/* 91: */
-/* 92: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 93: */ {
-/* 94:80 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been trimmed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 95: */ }
-/* 96: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_BranchCutter
+ extends GT_Tool
+{
+ public float getBaseDamage()
+ {
+ return 2.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.25F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 0.25F;
+ }
+
+ public boolean isGrafter()
+ {
+ return true;
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ if (aBlock.getMaterial() == Material.leaves)
+ {
+ aEvent.dropChance = Math.min(1.0F, Math.max(aEvent.dropChance, (aStack.getItem().getHarvestLevel(aStack, "") + 1) * 0.2F));
+ if (aBlock == Blocks.leaves)
+ {
+ aDrops.clear();
+ if (((aMetaData & 0x3) == 0) && (aPlayer.worldObj.rand.nextInt(9) <= aFortune * 2)) {
+ aDrops.add(new ItemStack(Items.apple, 1, 0));
+ } else {
+ aDrops.add(new ItemStack(Blocks.sapling, 1, aMetaData & 0x3));
+ }
+ }
+ else if (aBlock == Blocks.leaves2)
+ {
+ aDrops.clear();
+ aDrops.add(new ItemStack(Blocks.sapling, 1, (aMetaData & 0x3) + 4));
+ }
+ else if (aBlock == GT_Utility.getBlockFromStack(GT_ModHandler.getIC2Item("rubberLeaves", 1L)))
+ {
+ aDrops.clear();
+ aDrops.add(GT_ModHandler.getIC2Item("rubberSapling", 1L));
+ }
+ }
+ return 0;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("grafter"))) || (aBlock.getMaterial() == Material.leaves);
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.GRAFTER : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been trimmed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_ButcheryKnife.java b/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java index 2e3a4d9ef0..7d70d8caa4 100644 --- a/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java +++ b/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java @@ -1,102 +1,102 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.block.Block;
-/* 8: */ import net.minecraft.enchantment.Enchantment;
-/* 9: */ import net.minecraft.entity.Entity;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.util.ChatComponentText;
-/* 13: */ import net.minecraft.util.EnumChatFormatting;
-/* 14: */ import net.minecraft.util.IChatComponent;
-/* 15: */
-/* 16: */ public class GT_Tool_ButcheryKnife
-/* 17: */ extends GT_Tool
-/* 18: */ {
-/* 19: */ public int getToolDamagePerBlockBreak()
-/* 20: */ {
-/* 21:18 */ return 200;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerDropConversion()
-/* 25: */ {
-/* 26:23 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerContainerCraft()
-/* 30: */ {
-/* 31:28 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerEntityAttack()
-/* 35: */ {
-/* 36:33 */ return 400;
-/* 37: */ }
-/* 38: */
-/* 39: */ public float getBaseDamage()
-/* 40: */ {
-/* 41:38 */ return 1.0F;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 45: */ {
-/* 46:43 */ return aOriginalHurtResistance * 2;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51:48 */ return 0.1F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56:53 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public boolean isWeapon()
-/* 60: */ {
-/* 61:58 */ return true;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean isMiningTool()
-/* 65: */ {
-/* 66:63 */ return false;
-/* 67: */ }
-/* 68: */
-/* 69: */ public Enchantment[] getEnchantments(ItemStack aStack)
-/* 70: */ {
-/* 71:68 */ return LOOTING_ENCHANTMENT;
-/* 72: */ }
-/* 73: */
-/* 74: */ public int[] getEnchantmentLevels(ItemStack aStack)
-/* 75: */ {
-/* 76:73 */ return new int[] { (2 + GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolQuality) / 2 };
-/* 77: */ }
-/* 78: */
-/* 79: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 80: */ {
-/* 81:78 */ return aIsToolHead ? Textures.ItemIcons.BUTCHERYKNIFE : null;
-/* 82: */ }
-/* 83: */
-/* 84: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 85: */ {
-/* 86:83 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 87: */ }
-/* 88: */
-/* 89: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 90: */ {
-/* 91:88 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has butchered " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 95: */ {
-/* 96:93 */ return false;
-/* 97: */ }
-/* 98: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.block.Block;
+import net.minecraft.enchantment.Enchantment;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_ButcheryKnife
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 400;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance * 2;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.1F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMiningTool()
+ {
+ return false;
+ }
+
+ public Enchantment[] getEnchantments(ItemStack aStack)
+ {
+ return LOOTING_ENCHANTMENT;
+ }
+
+ public int[] getEnchantmentLevels(ItemStack aStack)
+ {
+ return new int[] { (2 + GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolQuality) / 2 };
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.BUTCHERYKNIFE : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has butchered " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ return false;
+ }
+}
/* 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/tools/GT_Tool_BuzzSaw.java b/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java index 16ba45c220..8208b2c7c5 100644 --- a/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java +++ b/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java @@ -1,84 +1,84 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
+import java.util.Map;
-/* 8: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.util.ChatComponentText;
-/* 13: */ import net.minecraft.util.EnumChatFormatting;
-/* 14: */ import net.minecraft.util.IChatComponent;
-/* 15: */
-/* 16: */ public class GT_Tool_BuzzSaw
-/* 17: */ extends GT_Tool_Saw
-/* 18: */ {
-/* 19: */ public int getToolDamagePerContainerCraft()
-/* 20: */ {
-/* 21:18 */ return 100;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerEntityAttack()
-/* 25: */ {
-/* 26:23 */ return 300;
-/* 27: */ }
-/* 28: */
-/* 29: */ public float getBaseDamage()
-/* 30: */ {
-/* 31:28 */ return 1.0F;
-/* 32: */ }
-/* 33: */
-/* 34: */ public float getMaxDurabilityMultiplier()
-/* 35: */ {
-/* 36:33 */ return 1.0F;
-/* 37: */ }
-/* 38: */
-/* 39: */ public String getCraftingSound()
-/* 40: */ {
-/* 41:38 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
-/* 42: */ }
-/* 43: */
-/* 44: */ public String getEntityHitSound()
-/* 45: */ {
-/* 46:43 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105));
-/* 47: */ }
-/* 48: */
-/* 49: */ public String getBreakingSound()
-/* 50: */ {
-/* 51:48 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 52: */ }
-/* 53: */
-/* 54: */ public String getMiningSound()
-/* 55: */ {
-/* 56:53 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
-/* 57: */ }
-/* 58: */
-/* 59: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 60: */ {
-/* 61:58 */ return false;
-/* 62: */ }
-/* 63: */
-/* 64: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 65: */ {
-/* 66:63 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadBuzzSaw.mTextureIndex] : Textures.ItemIcons.HANDLE_BUZZSAW;
-/* 67: */ }
-/* 68: */
-/* 69: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 70: */ {
-/* 71:68 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 72: */ }
-/* 73: */
-/* 74: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 75: */ {
-/* 76:73 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got buzzed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 77: */ }
-/* 78: */ }
+public class GT_Tool_BuzzSaw
+ extends GT_Tool_Saw
+{
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 300;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ return false;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadBuzzSaw.mTextureIndex] : Textures.ItemIcons.HANDLE_BUZZSAW;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got buzzed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Chainsaw_HV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java index 21182beee2..54f1794a7e 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java @@ -1,58 +1,58 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.ItemIcons;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import net.minecraft.item.ItemStack;
-/* 6: */
-/* 7: */ public class GT_Tool_Chainsaw_HV
-/* 8: */ extends GT_Tool_Chainsaw_LV
-/* 9: */ {
-/* 10: */ public int getToolDamagePerBlockBreak()
-/* 11: */ {
-/* 12:12 */ return 800;
-/* 13: */ }
-/* 14: */
-/* 15: */ public int getToolDamagePerDropConversion()
-/* 16: */ {
-/* 17:17 */ return 1600;
-/* 18: */ }
-/* 19: */
-/* 20: */ public int getToolDamagePerContainerCraft()
-/* 21: */ {
-/* 22:22 */ return 12800;
-/* 23: */ }
-/* 24: */
-/* 25: */ public int getToolDamagePerEntityAttack()
-/* 26: */ {
-/* 27:27 */ return 3200;
-/* 28: */ }
-/* 29: */
-/* 30: */ public int getBaseQuality()
-/* 31: */ {
-/* 32:32 */ return 1;
-/* 33: */ }
-/* 34: */
-/* 35: */ public float getBaseDamage()
-/* 36: */ {
-/* 37:37 */ return 4.0F;
-/* 38: */ }
-/* 39: */
-/* 40: */ public float getSpeedMultiplier()
-/* 41: */ {
-/* 42:42 */ return 4.0F;
-/* 43: */ }
-/* 44: */
-/* 45: */ public float getMaxDurabilityMultiplier()
-/* 46: */ {
-/* 47:47 */ return 4.0F;
-/* 48: */ }
-/* 49: */
-/* 50: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 51: */ {
-/* 52:52 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
-/* 53: */ }
-/* 54: */ }
+import gregtech.api.interfaces.IIconContainer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Chainsaw_HV
+ extends GT_Tool_Chainsaw_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 1600;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 12800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 3200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 4.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 4.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 4.0F;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
+ }
+}
/* 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/tools/GT_Tool_Chainsaw_LV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java index 06ca429c55..053749fd95 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java @@ -1,117 +1,117 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import java.util.Map;
+import java.util.Map;
-/* 9: */ import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.util.ChatComponentText;
-/* 12: */ import net.minecraft.util.EnumChatFormatting;
-/* 13: */ import net.minecraft.util.IChatComponent;
-/* 14: */
-/* 15: */ public class GT_Tool_Chainsaw_LV
-/* 16: */ extends GT_Tool_Saw
-/* 17: */ {
-/* 18: */ public int getToolDamagePerBlockBreak()
-/* 19: */ {
-/* 20:17 */ return 50;
-/* 21: */ }
-/* 22: */
-/* 23: */ public int getToolDamagePerDropConversion()
-/* 24: */ {
-/* 25:22 */ return 100;
-/* 26: */ }
-/* 27: */
-/* 28: */ public int getToolDamagePerContainerCraft()
-/* 29: */ {
-/* 30:27 */ return 800;
-/* 31: */ }
-/* 32: */
-/* 33: */ public int getToolDamagePerEntityAttack()
-/* 34: */ {
-/* 35:32 */ return 200;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int getBaseQuality()
-/* 39: */ {
-/* 40:37 */ return 0;
-/* 41: */ }
-/* 42: */
-/* 43: */ public float getBaseDamage()
-/* 44: */ {
-/* 45:42 */ return 3.0F;
-/* 46: */ }
-/* 47: */
-/* 48: */ public float getSpeedMultiplier()
-/* 49: */ {
-/* 50:47 */ return 2.0F;
-/* 51: */ }
-/* 52: */
-/* 53: */ public float getMaxDurabilityMultiplier()
-/* 54: */ {
-/* 55:52 */ return 1.0F;
-/* 56: */ }
-/* 57: */
-/* 58: */ public String getCraftingSound()
-/* 59: */ {
-/* 60:57 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
-/* 61: */ }
-/* 62: */
-/* 63: */ public String getEntityHitSound()
-/* 64: */ {
-/* 65:62 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105));
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getBreakingSound()
-/* 69: */ {
-/* 70:67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 71: */ }
-/* 72: */
-/* 73: */ public String getMiningSound()
-/* 74: */ {
-/* 75:72 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean canBlock()
-/* 79: */ {
-/* 80:77 */ return false;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isWeapon()
-/* 84: */ {
-/* 85:82 */ return true;
-/* 86: */ }
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_Chainsaw_LV
+ extends GT_Tool_Saw
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104));
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 117: */ {
-/* 118:117 */ super.onToolCrafted(aStack, aPlayer);
+ {
+ super.onToolCrafted(aStack, aPlayer);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "brrrr");}catch(Exception e){}
-/* 121: */ }
+ }
-/* 87: */
-/* 88: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 89: */ {
-/* 90:87 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
-/* 91: */ }
-/* 92: */
-/* 93: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 94: */ {
-/* 95:92 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 96: */ }
-/* 97: */
-/* 98: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 99: */ {
-/* :0:97 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was massacred by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* :1: */ }
-/* :2: */ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was massacred by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Chainsaw_MV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java index f6b5dc4ac7..646fad0157 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java @@ -1,58 +1,58 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.ItemIcons;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import net.minecraft.item.ItemStack;
-/* 6: */
-/* 7: */ public class GT_Tool_Chainsaw_MV
-/* 8: */ extends GT_Tool_Chainsaw_LV
-/* 9: */ {
-/* 10: */ public int getToolDamagePerBlockBreak()
-/* 11: */ {
-/* 12:12 */ return 200;
-/* 13: */ }
-/* 14: */
-/* 15: */ public int getToolDamagePerDropConversion()
-/* 16: */ {
-/* 17:17 */ return 400;
-/* 18: */ }
-/* 19: */
-/* 20: */ public int getToolDamagePerContainerCraft()
-/* 21: */ {
-/* 22:22 */ return 3200;
-/* 23: */ }
-/* 24: */
-/* 25: */ public int getToolDamagePerEntityAttack()
-/* 26: */ {
-/* 27:27 */ return 800;
-/* 28: */ }
-/* 29: */
-/* 30: */ public int getBaseQuality()
-/* 31: */ {
-/* 32:32 */ return 1;
-/* 33: */ }
-/* 34: */
-/* 35: */ public float getBaseDamage()
-/* 36: */ {
-/* 37:37 */ return 3.5F;
-/* 38: */ }
-/* 39: */
-/* 40: */ public float getSpeedMultiplier()
-/* 41: */ {
-/* 42:42 */ return 3.0F;
-/* 43: */ }
-/* 44: */
-/* 45: */ public float getMaxDurabilityMultiplier()
-/* 46: */ {
-/* 47:47 */ return 2.0F;
-/* 48: */ }
-/* 49: */
-/* 50: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 51: */ {
-/* 52:52 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
-/* 53: */ }
-/* 54: */ }
+import gregtech.api.interfaces.IIconContainer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Chainsaw_MV
+ extends GT_Tool_Chainsaw_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 3200;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 800;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 3.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
+ }
+}
/* 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/tools/GT_Tool_Crowbar.java b/main/java/gregtech/common/tools/GT_Tool_Crowbar.java index a23a8c6592..efbb70ab15 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Crowbar.java +++ b/main/java/gregtech/common/tools/GT_Tool_Crowbar.java @@ -1,148 +1,148 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.interfaces.IToolStats;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import gregtech.common.items.GT_MetaGenerated_Tool_01;
-/* 10: */ import gregtech.common.items.behaviors.Behaviour_Crowbar;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IToolStats;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.GT_MetaGenerated_Tool_01;
+import gregtech.common.items.behaviors.Behaviour_Crowbar;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
-/* 11: */ import java.util.Collection;
-/* 12: */ import java.util.HashMap;
-/* 13: */ import java.util.Iterator;
-/* 14: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 15: */ import net.minecraft.block.Block;
-/* 16: */ import net.minecraft.block.material.Material;
-/* 17: */ import net.minecraft.entity.EntityLivingBase;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraft.util.ChatComponentText;
-/* 20: */ import net.minecraft.util.EnumChatFormatting;
-/* 21: */ import net.minecraft.util.IChatComponent;
-/* 22: */
-/* 23: */ public class GT_Tool_Crowbar
-/* 24: */ extends GT_Tool
-/* 25: */ {
-/* 26: */ public int getToolDamagePerBlockBreak()
-/* 27: */ {
-/* 28: 21 */ return 50;
-/* 29: */ }
-/* 30: */
-/* 31: */ public int getToolDamagePerDropConversion()
-/* 32: */ {
-/* 33: 26 */ return 100;
-/* 34: */ }
-/* 35: */
-/* 36: */ public int getToolDamagePerContainerCraft()
-/* 37: */ {
-/* 38: 31 */ return 100;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getToolDamagePerEntityAttack()
-/* 42: */ {
-/* 43: 36 */ return 200;
-/* 44: */ }
-/* 45: */
-/* 46: */ public int getBaseQuality()
-/* 47: */ {
-/* 48: 41 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public float getBaseDamage()
-/* 52: */ {
-/* 53: 46 */ return 2.0F;
-/* 54: */ }
-/* 55: */
-/* 56: */ public float getSpeedMultiplier()
-/* 57: */ {
-/* 58: 51 */ return 1.0F;
-/* 59: */ }
-/* 60: */
-/* 61: */ public float getMaxDurabilityMultiplier()
-/* 62: */ {
-/* 63: 56 */ return 1.0F;
-/* 64: */ }
-/* 65: */
-/* 66: */ public String getCraftingSound()
-/* 67: */ {
-/* 68: 61 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 69: */ }
-/* 70: */
-/* 71: */ public String getEntityHitSound()
-/* 72: */ {
-/* 73: 66 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 74: */ }
-/* 75: */
-/* 76: */ public String getBreakingSound()
-/* 77: */ {
-/* 78: 71 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 79: */ }
-/* 80: */
-/* 81: */ public String getMiningSound()
-/* 82: */ {
-/* 83: 76 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 84: */ }
-/* 85: */
-/* 86: */ public boolean canBlock()
-/* 87: */ {
-/* 88: 81 */ return true;
-/* 89: */ }
-/* 90: */
-/* 91: */ public boolean isCrowbar()
-/* 92: */ {
-/* 93: 86 */ return true;
-/* 94: */ }
-/* 95: */
-/* 96: */ public boolean isWeapon()
-/* 97: */ {
-/* 98: 91 */ return true;
-/* 99: */ }
-/* 100: */
-/* 101: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 102: */ {
-/* 103: 96 */ if (aBlock.getMaterial() == Material.circuits) {
-/* 104: 96 */ return true;
-/* 105: */ }
-/* 106: 97 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 107: 98 */ if ((tTool == null) || (tTool.equals("")))
-/* 108: */ {
-/* 109: 99 */ for (Iterator i$ = GT_MetaGenerated_Tool_01.INSTANCE.mToolStats.values().iterator(); i$.hasNext(); i$.next())
-/* 110: */ {
-/* 112: 99 */ if (((i$ instanceof GT_Tool_Crowbar)) || (!((IToolStats)i$).isMinableBlock(aBlock, aMetaData))) {return false;}
-/* 113: */ }
-/* 114:100 */ return true;
-/* 115: */ }
-/* 116:102 */ return tTool.equals("crowbar");
-/* 117: */ }
-/* 118: */
-/* 119: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 120: */ {
-/* 121:107 */ return null;
-/* 122: */ }
-/* 123: */
-/* 124: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 125: */ {
-/* 126:112 */ return aIsToolHead ? Textures.ItemIcons.CROWBAR : null;
-/* 127: */ }
-/* 128: */
-/* 129: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 130: */ {
-/* 131:117 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
-/* 132: */ }
-/* 133: */
-/* 134: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 135: */ {
-/* 136:122 */ aItem.addItemBehavior(aID, new Behaviour_Crowbar(1, 1000));
-/* 137: */ }
-/* 138: */
-/* 139: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 140: */ {
-/* 141:127 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was removed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 142: */ }
-/* 143: */ }
+public class GT_Tool_Crowbar
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return true;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ if (aBlock.getMaterial() == Material.circuits) {
+ return true;
+ }
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ if ((tTool == null) || (tTool.equals("")))
+ {
+ for (Iterator i$ = GT_MetaGenerated_Tool_01.INSTANCE.mToolStats.values().iterator(); i$.hasNext(); i$.next())
+ {
+ if (((i$ instanceof GT_Tool_Crowbar)) || (!((IToolStats)i$).isMinableBlock(aBlock, aMetaData))) {return false;}
+ }
+ return true;
+ }
+ return tTool.equals("crowbar");
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.CROWBAR : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Crowbar(1, 1000));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was removed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Drill_HV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java index f03a8616f1..0ad23b8f2e 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java @@ -1,67 +1,67 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.common.GT_Proxy;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.common.GT_Proxy;
import net.minecraft.entity.player.EntityPlayer;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Tool_Drill_HV
-/* 10: */ extends GT_Tool_Drill_LV
-/* 11: */ {
-/* 12: */ public int getToolDamagePerBlockBreak()
-/* 13: */ {
-/* 14:13 */ return GT_Mod.gregtechproxy.mHardRock ? 400 : 800;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int getToolDamagePerDropConversion()
-/* 18: */ {
-/* 19:18 */ return 1600;
-/* 20: */ }
-/* 21: */
-/* 22: */ public int getToolDamagePerContainerCraft()
-/* 23: */ {
-/* 24:23 */ return 12800;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerEntityAttack()
-/* 28: */ {
-/* 29:28 */ return 3200;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getBaseQuality()
-/* 33: */ {
-/* 34:33 */ return 1;
-/* 35: */ }
-/* 36: */
-/* 37: */ public float getBaseDamage()
-/* 38: */ {
-/* 39:38 */ return 3.0F;
-/* 40: */ }
-/* 41: */
-/* 42: */ public float getSpeedMultiplier()
-/* 43: */ {
-/* 44:43 */ return 9.0F;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getMaxDurabilityMultiplier()
-/* 48: */ {
-/* 49:48 */ return 4.0F;
-/* 50: */ }
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Drill_HV
+ extends GT_Tool_Drill_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return GT_Mod.gregtechproxy.mHardRock ? 400 : 800;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 1600;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 12800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 3200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 9.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 4.0F;
+ }
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 117: */ {
-/* 118:117 */ super.onToolCrafted(aStack, aPlayer);
+ {
+ super.onToolCrafted(aStack, aPlayer);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "highpowerdrill");}catch(Exception e){}
-/* 121: */ }
-/* 51: */
-/* 52: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 53: */ {
-/* 54:53 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
-/* 55: */ }
-/* 56: */ }
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
+ }
+}
/* 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/tools/GT_Tool_Drill_LV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java index dc58100dee..5feae608d1 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java @@ -1,135 +1,135 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
-/* 4: */ import gregtech.api.GregTech_API;
-/* 5: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 7: */ import gregtech.api.interfaces.IIconContainer;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import gregtech.common.GT_Proxy;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.GT_Proxy;
+
+import java.util.Map;
-/* 10: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 14: */ import net.minecraft.entity.player.EntityPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.stats.AchievementList;
-/* 17: */ import net.minecraft.util.ChatComponentText;
-/* 18: */ import net.minecraft.util.EnumChatFormatting;
-/* 19: */ import net.minecraft.util.IChatComponent;
-/* 20: */
-/* 21: */ public class GT_Tool_Drill_LV
-/* 22: */ extends GT_Tool
-/* 23: */ {
-/* 24: */ public int getToolDamagePerBlockBreak()
-/* 25: */ {
-/* 26: 22 */ return GT_Mod.gregtechproxy.mHardRock ? 25 : 50;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerDropConversion()
-/* 30: */ {
-/* 31: 27 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerContainerCraft()
-/* 35: */ {
-/* 36: 32 */ return 100;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getToolDamagePerEntityAttack()
-/* 40: */ {
-/* 41: 37 */ return 200;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getBaseQuality()
-/* 45: */ {
-/* 46: 42 */ return 0;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getBaseDamage()
-/* 50: */ {
-/* 51: 47 */ return 2.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getSpeedMultiplier()
-/* 55: */ {
-/* 56: 52 */ return 3.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public float getMaxDurabilityMultiplier()
-/* 60: */ {
-/* 61: 57 */ return 1.0F;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getCraftingSound()
-/* 65: */ {
-/* 66: 62 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getEntityHitSound()
-/* 70: */ {
-/* 71: 67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getBreakingSound()
-/* 75: */ {
-/* 76: 72 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
-/* 77: */ }
-/* 78: */
-/* 79: */ public String getMiningSound()
-/* 80: */ {
-/* 81: 77 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean canBlock()
-/* 85: */ {
-/* 86: 82 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isCrowbar()
-/* 90: */ {
-/* 91: 87 */ return false;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 95: */ {
-/* 96: 92 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 97: 93 */ return ((tTool != null) && ((tTool.equals("pickaxe")) || (tTool.equals("shovel")))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.iron) || (aBlock.getMaterial() == Material.anvil) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay) || (aBlock.getMaterial() == Material.glass);
-/* 98: */ }
-/* 99: */
-/* 100: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 101: */ {
-/* 102: 98 */ return null;
-/* 103: */ }
-/* 104: */
-/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:103 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
-/* 108: */ }
-/* 109: */
-/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 111: */ {
-/* 112:108 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 113: */ }
-/* 114: */
-/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 116: */
-/* 117: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 118: */ {
-/* 119:118 */ super.onToolCrafted(aStack, aPlayer);
-/* 120:119 */ aPlayer.triggerAchievement(AchievementList.buildPickaxe);
-/* 121:120 */ aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe);
+public class GT_Tool_Drill_LV
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return GT_Mod.gregtechproxy.mHardRock ? 25 : 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 3.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106));
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && ((tTool.equals("pickaxe")) || (tTool.equals("shovel")))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.iron) || (aBlock.getMaterial() == Material.anvil) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay) || (aBlock.getMaterial() == Material.glass);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ super.onToolCrafted(aStack, aPlayer);
+ aPlayer.triggerAchievement(AchievementList.buildPickaxe);
+ aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "driltime");}catch(Exception e){}
-/* 122: */ }
-/* 123: */
-/* 124: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 125: */ {
-/* 126:125 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got the Drill! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")");
-/* 127: */ }
-/* 128: */ }
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got the Drill! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")");
+ }
+}
/* 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/tools/GT_Tool_Drill_MV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java index 05821fa9e2..928d4c3984 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java @@ -1,60 +1,60 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.common.GT_Proxy;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Tool_Drill_MV
-/* 10: */ extends GT_Tool_Drill_LV
-/* 11: */ {
-/* 12: */ public int getToolDamagePerBlockBreak()
-/* 13: */ {
-/* 14:13 */ return GT_Mod.gregtechproxy.mHardRock ? 100 : 200;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int getToolDamagePerDropConversion()
-/* 18: */ {
-/* 19:18 */ return 400;
-/* 20: */ }
-/* 21: */
-/* 22: */ public int getToolDamagePerContainerCraft()
-/* 23: */ {
-/* 24:23 */ return 3200;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerEntityAttack()
-/* 28: */ {
-/* 29:28 */ return 800;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getBaseQuality()
-/* 33: */ {
-/* 34:33 */ return 1;
-/* 35: */ }
-/* 36: */
-/* 37: */ public float getBaseDamage()
-/* 38: */ {
-/* 39:38 */ return 2.5F;
-/* 40: */ }
-/* 41: */
-/* 42: */ public float getSpeedMultiplier()
-/* 43: */ {
-/* 44:43 */ return 6.0F;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getMaxDurabilityMultiplier()
-/* 48: */ {
-/* 49:48 */ return 2.0F;
-/* 50: */ }
-/* 51: */
-/* 52: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 53: */ {
-/* 54:53 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
-/* 55: */ }
-/* 56: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.common.GT_Proxy;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Drill_MV
+ extends GT_Tool_Drill_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return GT_Mod.gregtechproxy.mHardRock ? 100 : 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 3200;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 800;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 6.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
+ }
+}
/* 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/tools/GT_Tool_File.java b/main/java/gregtech/common/tools/GT_Tool_File.java index a1b78fe98b..43e39e80bb 100644 --- a/main/java/gregtech/common/tools/GT_Tool_File.java +++ b/main/java/gregtech/common/tools/GT_Tool_File.java @@ -1,127 +1,127 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
+import java.util.Map;
-/* 8: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.util.ChatComponentText;
-/* 13: */ import net.minecraft.util.EnumChatFormatting;
-/* 14: */ import net.minecraft.util.IChatComponent;
-/* 15: */
-/* 16: */ public class GT_Tool_File
-/* 17: */ extends GT_Tool
-/* 18: */ {
-/* 19: */ public int getToolDamagePerBlockBreak()
-/* 20: */ {
-/* 21: 18 */ return 50;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerDropConversion()
-/* 25: */ {
-/* 26: 23 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerContainerCraft()
-/* 30: */ {
-/* 31: 28 */ return 400;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerEntityAttack()
-/* 35: */ {
-/* 36: 33 */ return 200;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getBaseQuality()
-/* 40: */ {
-/* 41: 38 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public float getBaseDamage()
-/* 45: */ {
-/* 46: 43 */ return 1.5F;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51: 48 */ return 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56: 53 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public String getCraftingSound()
-/* 60: */ {
-/* 61: 58 */ return null;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getEntityHitSound()
-/* 65: */ {
-/* 66: 63 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getBreakingSound()
-/* 70: */ {
-/* 71: 68 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getMiningSound()
-/* 75: */ {
-/* 76: 73 */ return null;
-/* 77: */ }
-/* 78: */
-/* 79: */ public boolean canBlock()
-/* 80: */ {
-/* 81: 78 */ return true;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean isCrowbar()
-/* 85: */ {
-/* 86: 83 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isMiningTool()
-/* 90: */ {
-/* 91: 88 */ return false;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 95: */ {
-/* 96: 93 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 97: 94 */ return (tTool != null) && (tTool.equals("file"));
-/* 98: */ }
-/* 99: */
-/* 100: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 101: */ {
-/* 102: 99 */ return null;
-/* 103: */ }
-/* 104: */
-/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:104 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadFile.mTextureIndex] : Textures.ItemIcons.HANDLE_FILE;
-/* 108: */ }
-/* 109: */
-/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 111: */ {
-/* 112:109 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 113: */ }
-/* 114: */
-/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 116: */
-/* 117: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 118: */ {
-/* 119:119 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been filed D for 'Dead' by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 120: */ }
-/* 121: */ }
+public class GT_Tool_File
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMiningTool()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return (tTool != null) && (tTool.equals("file"));
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadFile.mTextureIndex] : Textures.ItemIcons.HANDLE_FILE;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been filed D for 'Dead' by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_HardHammer.java b/main/java/gregtech/common/tools/GT_Tool_HardHammer.java index d910f434d2..71f5c6e763 100644 --- a/main/java/gregtech/common/tools/GT_Tool_HardHammer.java +++ b/main/java/gregtech/common/tools/GT_Tool_HardHammer.java @@ -1,193 +1,193 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.api.util.GT_Recipe;
-/* 8: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.items.behaviors.Behaviour_Prospecting;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.items.behaviors.Behaviour_Prospecting;
-/* 11: */ import java.util.Arrays;
-/* 12: */ import java.util.List;
-/* 13: */ import java.util.Map;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
-/* 14: */ import net.minecraft.block.Block;
-/* 15: */ import net.minecraft.block.material.Material;
-/* 16: */ import net.minecraft.entity.Entity;
-/* 17: */ import net.minecraft.entity.EntityLivingBase;
-/* 18: */ import net.minecraft.entity.monster.EntityIronGolem;
-/* 19: */ import net.minecraft.entity.player.EntityPlayer;
-/* 20: */ import net.minecraft.item.ItemStack;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntityIronGolem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
import net.minecraft.stats.AchievementList;
-/* 21: */ import net.minecraft.util.ChatComponentText;
-/* 22: */ import net.minecraft.util.EnumChatFormatting;
-/* 23: */ import net.minecraft.util.IChatComponent;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
import net.minecraftforge.event.world.BlockEvent;
-/* 24: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 25: */
-/* 26: */ public class GT_Tool_HardHammer
-/* 27: */ extends GT_Tool
-/* 28: */ {
-/* 29: 28 */ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
-/* 30: */
-/* 31: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 32: */ {
-/* 33: 35 */ String tName = aEntity.getClass().getName();
-/* 34: 36 */ tName = tName.substring(tName.lastIndexOf(".") + 1);
-/* 35: 37 */ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int getToolDamagePerBlockBreak()
-/* 39: */ {
-/* 40: 42 */ return 50;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int getToolDamagePerDropConversion()
-/* 44: */ {
-/* 45: 47 */ return 200;
-/* 46: */ }
-/* 47: */
-/* 48: */ public int getToolDamagePerContainerCraft()
-/* 49: */ {
-/* 50: 52 */ return 400;
-/* 51: */ }
-/* 52: */
-/* 53: */ public int getToolDamagePerEntityAttack()
-/* 54: */ {
-/* 55: 57 */ return 200;
-/* 56: */ }
-/* 57: */
-/* 58: */ public int getBaseQuality()
-/* 59: */ {
-/* 60: 62 */ return 0;
-/* 61: */ }
-/* 62: */
-/* 63: */ public float getBaseDamage()
-/* 64: */ {
-/* 65: 67 */ return 3.0F;
-/* 66: */ }
-/* 67: */
-/* 68: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 69: */ {
-/* 70: 72 */ return aOriginalHurtResistance * 2;
-/* 71: */ }
-/* 72: */
-/* 73: */ public float getSpeedMultiplier()
-/* 74: */ {
-/* 75: 77 */ return 0.75F;
-/* 76: */ }
-/* 77: */
-/* 78: */ public float getMaxDurabilityMultiplier()
-/* 79: */ {
-/* 80: 82 */ return 1.0F;
-/* 81: */ }
-/* 82: */
-/* 83: */ public String getCraftingSound()
-/* 84: */ {
-/* 85: 87 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(1));
-/* 86: */ }
-/* 87: */
-/* 88: */ public String getEntityHitSound()
-/* 89: */ {
-/* 90: 92 */ return null;
-/* 91: */ }
-/* 92: */
-/* 93: */ public String getBreakingSound()
-/* 94: */ {
-/* 95: 97 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(2));
-/* 96: */ }
-/* 97: */
-/* 98: */ public String getMiningSound()
-/* 99: */ {
-/* 100:102 */ return null;
-/* 101: */ }
-/* 102: */
-/* 103: */ public boolean canBlock()
-/* 104: */ {
-/* 105:107 */ return true;
-/* 106: */ }
-/* 107: */
-/* 108: */ public boolean isCrowbar()
-/* 109: */ {
-/* 110:112 */ return false;
-/* 111: */ }
-/* 112: */
-/* 113: */ public boolean isWeapon()
-/* 114: */ {
-/* 115:117 */ return true;
-/* 116: */ }
-/* 117: */
-/* 118: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 119: */ {
-/* 120:122 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 121:123 */ return ((tTool != null) && ((tTool.equals("hammer")) || (tTool.equals("pickaxe")))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.glass) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce) || (GT_Recipe.GT_Recipe_Map.sHammerRecipes.containsInput(new ItemStack(aBlock, 1, aMetaData)));
-/* 122: */ }
-/* 123: */
-/* 124: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 125: */ {
-/* 126:128 */ int rConversions = 0;
-/* 127:129 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { new ItemStack(aBlock, 1, aMetaData) });
-/* 128:130 */ if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData)))
-/* 129: */ {
-/* 130:131 */ for (ItemStack tDrop : aDrops)
-/* 131: */ {
-/* 132:132 */ tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { tDrop }) });
-/* 133:133 */ if (tRecipe != null)
-/* 134: */ {
-/* 135:134 */ ItemStack tHammeringOutput = tRecipe.getOutput(0);
-/* 136:135 */ if (tHammeringOutput != null)
-/* 137: */ {
-/* 138:136 */ rConversions += tDrop.stackSize;
-/* 139:137 */ tDrop.stackSize *= tHammeringOutput.stackSize;
-/* 140:138 */ tHammeringOutput.stackSize = tDrop.stackSize;
-/* 141:139 */ GT_Utility.setStack(tDrop, tHammeringOutput);
-/* 142: */ }
-/* 143: */ }
-/* 144: */ }
-/* 145: */ }
-/* 146: */ else
-/* 147: */ {
-/* 148:144 */ aDrops.clear();
-/* 149:145 */ aDrops.add(tRecipe.getOutput(0));
-/* 150:146 */ rConversions++;
-/* 151: */ }
-/* 152:148 */ return rConversions;
-/* 153: */ }
-/* 154: */
-/* 155: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 156: */ {
-/* 157:153 */ return null;
-/* 158: */ }
-/* 159: */
-/* 160: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 161: */ {
-/* 162:158 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 163: */ }
-/* 164: */
-/* 165: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 166: */ {
-/* 167:163 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 168: */ }
-/* 169: */
-/* 170: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 171: */ {
-/* 172:168 */ aItem.addItemBehavior(aID, new Behaviour_Prospecting(1, 1000));
-/* 173: */ }
-/* 174: */
-/* 175: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 176: */ {
-/* 177:173 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was squashed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 178: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_HardHammer
+ extends GT_Tool
+{
+ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ String tName = aEntity.getClass().getName();
+ tName = tName.substring(tName.lastIndexOf(".") + 1);
+ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
+ }
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance * 2;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.75F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(1));
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(2));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && ((tTool.equals("hammer")) || (tTool.equals("pickaxe")))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.glass) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce) || (GT_Recipe.GT_Recipe_Map.sHammerRecipes.containsInput(new ItemStack(aBlock, 1, aMetaData)));
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ int rConversions = 0;
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { new ItemStack(aBlock, 1, aMetaData) });
+ if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData)))
+ {
+ for (ItemStack tDrop : aDrops)
+ {
+ tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { tDrop }) });
+ if (tRecipe != null)
+ {
+ ItemStack tHammeringOutput = tRecipe.getOutput(0);
+ if (tHammeringOutput != null)
+ {
+ rConversions += tDrop.stackSize;
+ tDrop.stackSize *= tHammeringOutput.stackSize;
+ tHammeringOutput.stackSize = tDrop.stackSize;
+ GT_Utility.setStack(tDrop, tHammeringOutput);
+ }
+ }
+ }
+ }
+ else
+ {
+ aDrops.clear();
+ aDrops.add(tRecipe.getOutput(0));
+ rConversions++;
+ }
+ return rConversions;
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Prospecting(1, 1000));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was squashed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 117: */ {
-/* 118:117 */ super.onToolCrafted(aStack, aPlayer);
+ {
+ super.onToolCrafted(aStack, aPlayer);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "tools");}catch(Exception e){}
-/* 121: */ }
-/* 179: */ }
+ }
+}
/* 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/tools/GT_Tool_Hoe.java b/main/java/gregtech/common/tools/GT_Tool_Hoe.java index a1175287e4..22cf5e7430 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Hoe.java +++ b/main/java/gregtech/common/tools/GT_Tool_Hoe.java @@ -1,131 +1,131 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.common.items.behaviors.Behaviour_Hoe;
-/* 8: */ import java.util.Map;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.block.material.Material;
-/* 11: */ import net.minecraft.entity.EntityLivingBase;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.stats.AchievementList;
-/* 15: */ import net.minecraft.util.ChatComponentText;
-/* 16: */ import net.minecraft.util.EnumChatFormatting;
-/* 17: */ import net.minecraft.util.IChatComponent;
-/* 18: */
-/* 19: */ public class GT_Tool_Hoe
-/* 20: */ extends GT_Tool
-/* 21: */ {
-/* 22: */ public int getToolDamagePerBlockBreak()
-/* 23: */ {
-/* 24: 21 */ return 50;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerDropConversion()
-/* 28: */ {
-/* 29: 26 */ return 100;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getToolDamagePerContainerCraft()
-/* 33: */ {
-/* 34: 31 */ return 100;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getToolDamagePerEntityAttack()
-/* 38: */ {
-/* 39: 36 */ return 200;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int getBaseQuality()
-/* 43: */ {
-/* 44: 41 */ return 0;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getBaseDamage()
-/* 48: */ {
-/* 49: 46 */ return 1.75F;
-/* 50: */ }
-/* 51: */
-/* 52: */ public float getSpeedMultiplier()
-/* 53: */ {
-/* 54: 51 */ return 1.0F;
-/* 55: */ }
-/* 56: */
-/* 57: */ public float getMaxDurabilityMultiplier()
-/* 58: */ {
-/* 59: 56 */ return 1.0F;
-/* 60: */ }
-/* 61: */
-/* 62: */ public String getCraftingSound()
-/* 63: */ {
-/* 64: 61 */ return null;
-/* 65: */ }
-/* 66: */
-/* 67: */ public String getEntityHitSound()
-/* 68: */ {
-/* 69: 66 */ return null;
-/* 70: */ }
-/* 71: */
-/* 72: */ public String getBreakingSound()
-/* 73: */ {
-/* 74: 71 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 75: */ }
-/* 76: */
-/* 77: */ public String getMiningSound()
-/* 78: */ {
-/* 79: 76 */ return null;
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean canBlock()
-/* 83: */ {
-/* 84: 81 */ return false;
-/* 85: */ }
-/* 86: */
-/* 87: */ public boolean isCrowbar()
-/* 88: */ {
-/* 89: 86 */ return false;
-/* 90: */ }
-/* 91: */
-/* 92: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 93: */ {
-/* 94: 91 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 95: 92 */ return ((tTool != null) && (tTool.equals("hoe"))) || (aBlock.getMaterial() == Material.gourd);
-/* 96: */ }
-/* 97: */
-/* 98: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 99: */ {
-/* 100: 97 */ return null;
-/* 101: */ }
-/* 102: */
-/* 103: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 104: */ {
-/* 105:102 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHoe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 106: */ }
-/* 107: */
-/* 108: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 109: */ {
-/* 110:107 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 111: */ }
-/* 112: */
-/* 113: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 114: */ {
-/* 115:112 */ aItem.addItemBehavior(aID, new Behaviour_Hoe(100));
-/* 116: */ }
-/* 117: */
-/* 118: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 119: */ {
-/* 120:117 */ super.onToolCrafted(aStack, aPlayer);
-/* 121:118 */ aPlayer.triggerAchievement(AchievementList.buildHoe);
-/* 122: */ }
-/* 123: */
-/* 124: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 125: */ {
-/* 126:123 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been called a stupid Hoe by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 127: */ }
-/* 128: */ }
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Hoe;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_Hoe
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.75F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("hoe"))) || (aBlock.getMaterial() == Material.gourd);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHoe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Hoe(100));
+ }
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ super.onToolCrafted(aStack, aPlayer);
+ aPlayer.triggerAchievement(AchievementList.buildHoe);
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been called a stupid Hoe by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_JackHammer.java b/main/java/gregtech/common/tools/GT_Tool_JackHammer.java index 9393a5a000..4051414daa 100644 --- a/main/java/gregtech/common/tools/GT_Tool_JackHammer.java +++ b/main/java/gregtech/common/tools/GT_Tool_JackHammer.java @@ -1,124 +1,124 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.util.GT_Recipe;
-/* 7: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 8: */ import gregtech.api.util.GT_Utility;
-/* 9: */ import gregtech.common.GT_Proxy;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.GT_Proxy;
-/* 10: */ import java.util.List;
+import java.util.List;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 14: */ import net.minecraft.entity.player.EntityPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.util.ChatComponentText;
-/* 17: */ import net.minecraft.util.EnumChatFormatting;
-/* 18: */ import net.minecraft.util.IChatComponent;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
import net.minecraftforge.event.world.BlockEvent;
-/* 19: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 20: */
-/* 21: */ public class GT_Tool_JackHammer
-/* 22: */ extends GT_Tool_Drill_LV
-/* 23: */ {
-/* 24: */ public int getToolDamagePerBlockBreak()
-/* 25: */ {
-/* 26: 25 */ return GT_Mod.gregtechproxy.mHardRock ? 200 : 400;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerDropConversion()
-/* 30: */ {
-/* 31: 30 */ return 400;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerContainerCraft()
-/* 35: */ {
-/* 36: 35 */ return 3200;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getToolDamagePerEntityAttack()
-/* 40: */ {
-/* 41: 40 */ return 800;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getBaseQuality()
-/* 45: */ {
-/* 46: 45 */ return 1;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getBaseDamage()
-/* 50: */ {
-/* 51: 50 */ return 3.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getSpeedMultiplier()
-/* 55: */ {
-/* 56: 55 */ return 12.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public float getMaxDurabilityMultiplier()
-/* 60: */ {
-/* 61: 60 */ return 2.0F;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 65: */ {
-/* 66: 65 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 67: 66 */ return ((tTool != null) && (tTool.equals("pickaxe"))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.glass) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce);
-/* 68: */ }
-/* 69: */
-/* 70: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 71: */ {
-/* 72: 71 */ int rConversions = 0;
-/* 73: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { new ItemStack(aBlock, 1, aMetaData) });
-/* 74: 73 */ if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData)))
-/* 75: */ {
-/* 76: 74 */ for (ItemStack tDrop : aDrops)
-/* 77: */ {
-/* 78: 75 */ tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { tDrop }) });
-/* 79: 76 */ if (tRecipe != null)
-/* 80: */ {
-/* 81: 77 */ ItemStack tHammeringOutput = tRecipe.getOutput(0);
-/* 82: 78 */ if (tHammeringOutput != null)
-/* 83: */ {
-/* 84: 79 */ rConversions += tDrop.stackSize;
-/* 85: 80 */ tDrop.stackSize *= tHammeringOutput.stackSize;
-/* 86: 81 */ tHammeringOutput.stackSize = tDrop.stackSize;
-/* 87: 82 */ GT_Utility.setStack(tDrop, tHammeringOutput);
-/* 88: */ }
-/* 89: */ }
-/* 90: */ }
-/* 91: */ }
-/* 92: */ else
-/* 93: */ {
-/* 94: 87 */ aDrops.clear();
-/* 95: 88 */ aDrops.add(tRecipe.getOutput(0));
-/* 96: 89 */ rConversions++;
-/* 97: */ }
-/* 98: 91 */ return rConversions;
-/* 99: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_JackHammer
+ extends GT_Tool_Drill_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return GT_Mod.gregtechproxy.mHardRock ? 200 : 400;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 3200;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 800;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 12.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("pickaxe"))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.glass) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce);
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ int rConversions = 0;
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { new ItemStack(aBlock, 1, aMetaData) });
+ if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData)))
+ {
+ for (ItemStack tDrop : aDrops)
+ {
+ tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(null, true, 2147483647L, null, new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { tDrop }) });
+ if (tRecipe != null)
+ {
+ ItemStack tHammeringOutput = tRecipe.getOutput(0);
+ if (tHammeringOutput != null)
+ {
+ rConversions += tDrop.stackSize;
+ tDrop.stackSize *= tHammeringOutput.stackSize;
+ tHammeringOutput.stackSize = tDrop.stackSize;
+ GT_Utility.setStack(tDrop, tHammeringOutput);
+ }
+ }
+ }
+ }
+ else
+ {
+ aDrops.clear();
+ aDrops.add(tRecipe.getOutput(0));
+ rConversions++;
+ }
+ return rConversions;
+ }
public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 117: */ {
-/* 118:117 */ super.onToolCrafted(aStack, aPlayer);
+ {
+ super.onToolCrafted(aStack, aPlayer);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "hammertime");}catch(Exception e){}
-/* 121: */ }
+ }
-/* 100: */
-/* 101: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 102: */ {
-/* 103: 96 */ return aIsToolHead ? Textures.ItemIcons.JACKHAMMER : null;
-/* 104: */ }
-/* 105: */
-/* 106: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 107: */ {
-/* 108:101 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been jackhammered into pieces by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 109: */ }
-/* 110: */ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.JACKHAMMER : null;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been jackhammered into pieces by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Knife.java b/main/java/gregtech/common/tools/GT_Tool_Knife.java index d516774ea1..35d4a7748e 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Knife.java +++ b/main/java/gregtech/common/tools/GT_Tool_Knife.java @@ -1,62 +1,62 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.ItemIcons;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import net.minecraft.entity.EntityLivingBase;
-/* 6: */ import net.minecraft.item.ItemStack;
-/* 7: */ import net.minecraft.util.ChatComponentText;
-/* 8: */ import net.minecraft.util.EnumChatFormatting;
-/* 9: */ import net.minecraft.util.IChatComponent;
-/* 10: */
-/* 11: */ public class GT_Tool_Knife
-/* 12: */ extends GT_Tool_Sword
-/* 13: */ {
-/* 14: */ public int getToolDamagePerBlockBreak()
-/* 15: */ {
-/* 16:14 */ return 100;
-/* 17: */ }
-/* 18: */
-/* 19: */ public int getToolDamagePerDropConversion()
-/* 20: */ {
-/* 21:19 */ return 100;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerContainerCraft()
-/* 25: */ {
-/* 26:24 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerEntityAttack()
-/* 30: */ {
-/* 31:29 */ return 200;
-/* 32: */ }
-/* 33: */
-/* 34: */ public float getBaseDamage()
-/* 35: */ {
-/* 36:34 */ return 2.0F;
-/* 37: */ }
-/* 38: */
-/* 39: */ public float getSpeedMultiplier()
-/* 40: */ {
-/* 41:39 */ return 0.5F;
-/* 42: */ }
-/* 43: */
-/* 44: */ public float getMaxDurabilityMultiplier()
-/* 45: */ {
-/* 46:44 */ return 1.0F;
-/* 47: */ }
-/* 48: */
-/* 49: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 50: */ {
-/* 51:49 */ return aIsToolHead ? Textures.ItemIcons.KNIFE : null;
-/* 52: */ }
-/* 53: */
-/* 54: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 55: */ {
-/* 56:54 */ return new ChatComponentText("<" + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + "> " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " what are you doing?, " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + "?!? STAHP!!!");
-/* 57: */ }
-/* 58: */ }
+import gregtech.api.interfaces.IIconContainer;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_Knife
+ extends GT_Tool_Sword
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.5F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.KNIFE : null;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText("<" + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + "> " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " what are you doing?, " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + "?!? STAHP!!!");
+ }
+}
/* 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/tools/GT_Tool_Mortar.java b/main/java/gregtech/common/tools/GT_Tool_Mortar.java index c00cf73075..21a6d6795a 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Mortar.java +++ b/main/java/gregtech/common/tools/GT_Tool_Mortar.java @@ -1,127 +1,127 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Dyes;
-/* 5: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 7: */ import gregtech.api.interfaces.IIconContainer;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
+import java.util.Map;
-/* 9: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.entity.EntityLivingBase;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.util.ChatComponentText;
-/* 14: */ import net.minecraft.util.EnumChatFormatting;
-/* 15: */ import net.minecraft.util.IChatComponent;
-/* 16: */
-/* 17: */ public class GT_Tool_Mortar
-/* 18: */ extends GT_Tool
-/* 19: */ {
-/* 20: */ public int getToolDamagePerBlockBreak()
-/* 21: */ {
-/* 22: 18 */ return 50;
-/* 23: */ }
-/* 24: */
-/* 25: */ public int getToolDamagePerDropConversion()
-/* 26: */ {
-/* 27: 23 */ return 100;
-/* 28: */ }
-/* 29: */
-/* 30: */ public int getToolDamagePerContainerCraft()
-/* 31: */ {
-/* 32: 28 */ return 400;
-/* 33: */ }
-/* 34: */
-/* 35: */ public int getToolDamagePerEntityAttack()
-/* 36: */ {
-/* 37: 33 */ return 200;
-/* 38: */ }
-/* 39: */
-/* 40: */ public int getBaseQuality()
-/* 41: */ {
-/* 42: 38 */ return 0;
-/* 43: */ }
-/* 44: */
-/* 45: */ public float getBaseDamage()
-/* 46: */ {
-/* 47: 43 */ return 2.0F;
-/* 48: */ }
-/* 49: */
-/* 50: */ public float getSpeedMultiplier()
-/* 51: */ {
-/* 52: 48 */ return 1.0F;
-/* 53: */ }
-/* 54: */
-/* 55: */ public float getMaxDurabilityMultiplier()
-/* 56: */ {
-/* 57: 53 */ return 1.0F;
-/* 58: */ }
-/* 59: */
-/* 60: */ public String getCraftingSound()
-/* 61: */ {
-/* 62: 58 */ return null;
-/* 63: */ }
-/* 64: */
-/* 65: */ public String getEntityHitSound()
-/* 66: */ {
-/* 67: 63 */ return null;
-/* 68: */ }
-/* 69: */
-/* 70: */ public String getBreakingSound()
-/* 71: */ {
-/* 72: 68 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 73: */ }
-/* 74: */
-/* 75: */ public String getMiningSound()
-/* 76: */ {
-/* 77: 73 */ return null;
-/* 78: */ }
-/* 79: */
-/* 80: */ public boolean canBlock()
-/* 81: */ {
-/* 82: 78 */ return false;
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean isCrowbar()
-/* 86: */ {
-/* 87: 83 */ return false;
-/* 88: */ }
-/* 89: */
-/* 90: */ public boolean isMiningTool()
-/* 91: */ {
-/* 92: 88 */ return false;
-/* 93: */ }
-/* 94: */
-/* 95: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 96: */ {
-/* 97: 93 */ return false;
-/* 98: */ }
-/* 99: */
-/* 100: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 101: */ {
-/* 102: 98 */ return null;
-/* 103: */ }
-/* 104: */
-/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:103 */ return aIsToolHead ? Textures.ItemIcons.MORTAR : null;
-/* 108: */ }
-/* 109: */
-/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 111: */ {
-/* 112:108 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : Dyes._NULL.mRGBa;
-/* 113: */ }
-/* 114: */
-/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 116: */
-/* 117: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 118: */ {
-/* 119:118 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was grounded by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 120: */ }
-/* 121: */ }
+public class GT_Tool_Mortar
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMiningTool()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ return false;
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.MORTAR : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : Dyes._NULL.mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was grounded by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Pickaxe.java b/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java index 9d567a638a..7ac2cadd31 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java +++ b/main/java/gregtech/common/tools/GT_Tool_Pickaxe.java @@ -1,131 +1,131 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
-/* 4: */ import gregtech.api.GregTech_API;
-/* 5: */ import gregtech.api.enums.Materials;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import gregtech.common.GT_Proxy;
-/* 9: */ import java.util.Map;
-/* 10: */ import net.minecraft.block.Block;
-/* 11: */ import net.minecraft.block.material.Material;
-/* 12: */ import net.minecraft.entity.EntityLivingBase;
-/* 13: */ import net.minecraft.entity.player.EntityPlayer;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.stats.AchievementList;
-/* 16: */ import net.minecraft.util.ChatComponentText;
-/* 17: */ import net.minecraft.util.EnumChatFormatting;
-/* 18: */ import net.minecraft.util.IChatComponent;
-/* 19: */
-/* 20: */ public class GT_Tool_Pickaxe
-/* 21: */ extends GT_Tool
-/* 22: */ {
-/* 23: */ public int getToolDamagePerBlockBreak()
-/* 24: */ {
-/* 25: 21 */ return GT_Mod.gregtechproxy.mHardRock ? 25 : 50;
-/* 26: */ }
-/* 27: */
-/* 28: */ public int getToolDamagePerDropConversion()
-/* 29: */ {
-/* 30: 26 */ return 100;
-/* 31: */ }
-/* 32: */
-/* 33: */ public int getToolDamagePerContainerCraft()
-/* 34: */ {
-/* 35: 31 */ return 100;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int getToolDamagePerEntityAttack()
-/* 39: */ {
-/* 40: 36 */ return 200;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int getBaseQuality()
-/* 44: */ {
-/* 45: 41 */ return 0;
-/* 46: */ }
-/* 47: */
-/* 48: */ public float getBaseDamage()
-/* 49: */ {
-/* 50: 46 */ return 1.5F;
-/* 51: */ }
-/* 52: */
-/* 53: */ public float getSpeedMultiplier()
-/* 54: */ {
-/* 55: 51 */ return 1.0F;
-/* 56: */ }
-/* 57: */
-/* 58: */ public float getMaxDurabilityMultiplier()
-/* 59: */ {
-/* 60: 56 */ return 1.0F;
-/* 61: */ }
-/* 62: */
-/* 63: */ public String getCraftingSound()
-/* 64: */ {
-/* 65: 61 */ return null;
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getEntityHitSound()
-/* 69: */ {
-/* 70: 66 */ return null;
-/* 71: */ }
-/* 72: */
-/* 73: */ public String getBreakingSound()
-/* 74: */ {
-/* 75: 71 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 76: */ }
-/* 77: */
-/* 78: */ public String getMiningSound()
-/* 79: */ {
-/* 80: 76 */ return null;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean canBlock()
-/* 84: */ {
-/* 85: 81 */ return false;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean isCrowbar()
-/* 89: */ {
-/* 90: 86 */ return false;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 94: */ {
-/* 95: 91 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 96: 92 */ return ((tTool != null) && (tTool.equals("pickaxe"))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.iron) || (aBlock.getMaterial() == Material.anvil) || (aBlock.getMaterial() == Material.glass);
-/* 97: */ }
-/* 98: */
-/* 99: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 100: */ {
-/* 101: 97 */ return null;
-/* 102: */ }
-/* 103: */
-/* 104: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 105: */ {
-/* 106:102 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPickaxe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 107: */ }
-/* 108: */
-/* 109: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 110: */ {
-/* 111:107 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 112: */ }
-/* 113: */
-/* 114: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 115: */
-/* 116: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 117: */ {
-/* 118:117 */ super.onToolCrafted(aStack, aPlayer);
-/* 119:118 */ aPlayer.triggerAchievement(AchievementList.buildPickaxe);
-/* 120:119 */ aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe);
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.GT_Proxy;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_Pickaxe
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return GT_Mod.gregtechproxy.mHardRock ? 25 : 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("pickaxe"))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.iron) || (aBlock.getMaterial() == Material.anvil) || (aBlock.getMaterial() == Material.glass);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPickaxe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ super.onToolCrafted(aStack, aPlayer);
+ aPlayer.triggerAchievement(AchievementList.buildPickaxe);
+ aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "flintpick");}catch(Exception e){}
-/* 121: */ }
-/* 122: */
-/* 123: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 124: */ {
-/* 125:124 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got mined by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 126: */ }
-/* 127: */ }
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got mined by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Plow.java b/main/java/gregtech/common/tools/GT_Tool_Plow.java index 6b243aa697..1a5efd5038 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Plow.java +++ b/main/java/gregtech/common/tools/GT_Tool_Plow.java @@ -1,84 +1,84 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+package gregtech.common.tools;
-/* 6: */ import java.util.List;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.block.Block;
-/* 8: */ import net.minecraft.block.material.Material;
-/* 9: */ import net.minecraft.entity.Entity;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.entity.monster.EntitySnowman;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 14: */ import net.minecraft.item.Item;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.server.management.ItemInWorldManager;
-/* 17: */ import net.minecraft.util.ChatComponentText;
-/* 18: */ import net.minecraft.util.EnumChatFormatting;
-/* 19: */ import net.minecraft.util.IChatComponent;
-/* 20: */ import net.minecraft.world.World;
+import java.util.List;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntitySnowman;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.server.management.ItemInWorldManager;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+import net.minecraft.world.World;
import net.minecraftforge.event.world.BlockEvent;
-/* 21: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 22: */
-/* 23: */ public class GT_Tool_Plow
-/* 24: */ extends GT_Tool
-/* 25: */ {
-/* 26:23 */ private ThreadLocal<Object> sIsHarvestingRightNow = new ThreadLocal();
-/* 27: */
-/* 28: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 29: */ {
-/* 30:27 */ return (aEntity instanceof EntitySnowman) ? aOriginalDamage * 4.0F : aOriginalDamage;
-/* 31: */ }
-/* 32: */
-/* 33: */ public float getBaseDamage()
-/* 34: */ {
-/* 35:32 */ return 1.0F;
-/* 36: */ }
-/* 37: */
-/* 38: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 39: */ {
-/* 40:37 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 41:38 */ return ((tTool != null) && (tTool.equals("plow"))) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.craftedSnow);
-/* 42: */ }
-/* 43: */
-/* 44: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 45: */ {
-/* 46:43 */ int rConversions = 0;
-/* 47:44 */ if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP)))
-/* 48: */ {
-/* 49:45 */ this.sIsHarvestingRightNow.set(this);
-/* 50:46 */ for (int i = -1; i < 2; i++) {
-/* 51:46 */ for (int j = -1; j < 2; j++) {
-/* 52:46 */ for (int k = -1; k < 2; k++) {
-/* 53:46 */ if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem().getDigSpeed(aStack, aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) > 0.0F) && (((EntityPlayerMP)aPlayer).theItemInWorldManager.tryHarvestBlock(aX + i, aY + j, aZ + k))) {
-/* 54:46 */ rConversions++;
-/* 55: */ }
-/* 56: */ }
-/* 57: */ }
-/* 58: */ }
-/* 59:47 */ this.sIsHarvestingRightNow.set(null);
-/* 60: */ }
-/* 61:49 */ return rConversions;
-/* 62: */ }
-/* 63: */
-/* 64: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 65: */ {
-/* 66:54 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPlow.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 67: */ }
-/* 68: */
-/* 69: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 70: */ {
-/* 71:59 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 72: */ }
-/* 73: */
-/* 74: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 75: */ {
-/* 76:64 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " plew through the yard of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 77: */ }
-/* 78: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_Plow
+ extends GT_Tool
+{
+ private ThreadLocal<Object> sIsHarvestingRightNow = new ThreadLocal();
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ return (aEntity instanceof EntitySnowman) ? aOriginalDamage * 4.0F : aOriginalDamage;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("plow"))) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.craftedSnow);
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ int rConversions = 0;
+ if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP)))
+ {
+ this.sIsHarvestingRightNow.set(this);
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int k = -1; k < 2; k++) {
+ if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem().getDigSpeed(aStack, aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) > 0.0F) && (((EntityPlayerMP)aPlayer).theItemInWorldManager.tryHarvestBlock(aX + i, aY + j, aZ + k))) {
+ rConversions++;
+ }
+ }
+ }
+ }
+ this.sIsHarvestingRightNow.set(null);
+ }
+ return rConversions;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadPlow.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " plew through the yard of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Plunger.java b/main/java/gregtech/common/tools/GT_Tool_Plunger.java index 3fbc112527..00a4dcebb4 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Plunger.java +++ b/main/java/gregtech/common/tools/GT_Tool_Plunger.java @@ -1,93 +1,93 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.items.behaviors.Behaviour_Plunger_Fluid;
-/* 11: */ import gregtech.common.items.behaviors.Behaviour_Plunger_Item;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.items.behaviors.Behaviour_Plunger_Fluid;
+import gregtech.common.items.behaviors.Behaviour_Plunger_Item;
+
+import java.util.Map;
-/* 12: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 13: */ import net.minecraft.block.Block;
-/* 14: */ import net.minecraft.entity.EntityLivingBase;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraft.util.ChatComponentText;
-/* 17: */ import net.minecraft.util.EnumChatFormatting;
-/* 18: */ import net.minecraft.util.IChatComponent;
-/* 19: */
-/* 20: */ public class GT_Tool_Plunger
-/* 21: */ extends GT_Tool
-/* 22: */ {
-/* 23: */ public float getBaseDamage()
-/* 24: */ {
-/* 25:22 */ return 1.25F;
-/* 26: */ }
-/* 27: */
-/* 28: */ public float getMaxDurabilityMultiplier()
-/* 29: */ {
-/* 30:27 */ return 0.25F;
-/* 31: */ }
-/* 32: */
-/* 33: */ public String getCraftingSound()
-/* 34: */ {
-/* 35:32 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 36: */ }
-/* 37: */
-/* 38: */ public String getEntityHitSound()
-/* 39: */ {
-/* 40:37 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 41: */ }
-/* 42: */
-/* 43: */ public String getBreakingSound()
-/* 44: */ {
-/* 45:42 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 46: */ }
-/* 47: */
-/* 48: */ public String getMiningSound()
-/* 49: */ {
-/* 50:47 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 51: */ }
-/* 52: */
-/* 53: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 54: */ {
-/* 55:52 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 56:53 */ return (tTool != null) && (tTool.equals("plunger"));
-/* 57: */ }
-/* 58: */
-/* 59: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 60: */ {
-/* 61:58 */ return aIsToolHead ? Textures.ItemIcons.PLUNGER : null;
-/* 62: */ }
-/* 63: */
-/* 64: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 65: */ {
-/* 66:63 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 67: */ }
-/* 68: */
-/* 69: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 70: */ {
-/* 71:68 */ aItem.addItemBehavior(aID, new Behaviour_Plunger_Item(getToolDamagePerDropConversion()));
-/* 72:69 */ aItem.addItemBehavior(aID, new Behaviour_Plunger_Fluid(getToolDamagePerDropConversion()));
-/* 73: */ try
-/* 74: */ {
-/* 75:71 */ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Plunger_Essentia", 0, null, false, new Object[] { Integer.valueOf(getToolDamagePerDropConversion()) });
-/* 76:72 */ if ((tObject instanceof IItemBehaviour)) {
-/* 77:72 */ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
-/* 78: */ }
-/* 79: */ }
-/* 80: */ catch (Throwable e) {}
-/* 81: */ }
-/* 82: */
-/* 83: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 84: */ {
-/* 85:78 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got stuck trying to escape through a Pipe while fighting " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 86: */ }
-/* 87: */ }
+public class GT_Tool_Plunger
+ extends GT_Tool
+{
+ public float getBaseDamage()
+ {
+ return 1.25F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 0.25F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return (tTool != null) && (tTool.equals("plunger"));
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.PLUNGER : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Plunger_Item(getToolDamagePerDropConversion()));
+ aItem.addItemBehavior(aID, new Behaviour_Plunger_Fluid(getToolDamagePerDropConversion()));
+ try
+ {
+ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Plunger_Essentia", 0, null, false, new Object[] { Integer.valueOf(getToolDamagePerDropConversion()) });
+ if ((tObject instanceof IItemBehaviour)) {
+ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
+ }
+ }
+ catch (Throwable e) {}
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got stuck trying to escape through a Pipe while fighting " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_RollingPin.java b/main/java/gregtech/common/tools/GT_Tool_RollingPin.java index f7c2888c0a..e7ec881975 100644 --- a/main/java/gregtech/common/tools/GT_Tool_RollingPin.java +++ b/main/java/gregtech/common/tools/GT_Tool_RollingPin.java @@ -1,68 +1,68 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Dyes;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.entity.EntityLivingBase;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.util.ChatComponentText;
-/* 12: */ import net.minecraft.util.EnumChatFormatting;
-/* 13: */ import net.minecraft.util.IChatComponent;
-/* 14: */
-/* 15: */ public class GT_Tool_RollingPin
-/* 16: */ extends GT_Tool
-/* 17: */ {
-/* 18: */ public int getToolDamagePerBlockBreak()
-/* 19: */ {
-/* 20:17 */ return 50;
-/* 21: */ }
-/* 22: */
-/* 23: */ public int getToolDamagePerDropConversion()
-/* 24: */ {
-/* 25:22 */ return 100;
-/* 26: */ }
-/* 27: */
-/* 28: */ public int getToolDamagePerContainerCraft()
-/* 29: */ {
-/* 30:27 */ return 100;
-/* 31: */ }
-/* 32: */
-/* 33: */ public int getToolDamagePerEntityAttack()
-/* 34: */ {
-/* 35:32 */ return 200;
-/* 36: */ }
-/* 37: */
-/* 38: */ public float getBaseDamage()
-/* 39: */ {
-/* 40:37 */ return 2.0F;
-/* 41: */ }
-/* 42: */
-/* 43: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 44: */ {
-/* 45:42 */ return false;
-/* 46: */ }
-/* 47: */
-/* 48: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 49: */ {
-/* 50:47 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : Dyes._NULL.mRGBa;
-/* 51: */ }
-/* 52: */
-/* 53: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 54: */
-/* 55: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 56: */ {
-/* 57:57 */ return aIsToolHead ? Textures.ItemIcons.ROLLING_PIN : null;
-/* 58: */ }
-/* 59: */
-/* 60: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 61: */ {
-/* 62:62 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got flattened by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 63: */ }
-/* 64: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_RollingPin
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ return false;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : Dyes._NULL.mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.ROLLING_PIN : null;
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got flattened by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Saw.java b/main/java/gregtech/common/tools/GT_Tool_Saw.java index 2ddff9cb37..876b82e938 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Saw.java +++ b/main/java/gregtech/common/tools/GT_Tool_Saw.java @@ -1,145 +1,145 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import java.util.ArrayList;
-/* 9: */ import java.util.List;
-/* 10: */ import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 14: */ import net.minecraft.entity.player.EntityPlayer;
-/* 15: */ import net.minecraft.init.Blocks;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraft.util.ChatComponentText;
-/* 18: */ import net.minecraft.util.EnumChatFormatting;
-/* 19: */ import net.minecraft.util.IChatComponent;
-/* 20: */ import net.minecraft.world.World;
-/* 21: */ import net.minecraftforge.common.IShearable;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+import net.minecraft.world.World;
+import net.minecraftforge.common.IShearable;
import net.minecraftforge.event.world.BlockEvent;
-/* 22: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 23: */
-/* 24: */ public class GT_Tool_Saw
-/* 25: */ extends GT_Tool
-/* 26: */ {
-/* 27: */ public int getToolDamagePerBlockBreak()
-/* 28: */ {
-/* 29: 27 */ return 50;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getToolDamagePerDropConversion()
-/* 33: */ {
-/* 34: 32 */ return 100;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getToolDamagePerContainerCraft()
-/* 38: */ {
-/* 39: 37 */ return 200;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int getToolDamagePerEntityAttack()
-/* 43: */ {
-/* 44: 42 */ return 200;
-/* 45: */ }
-/* 46: */
-/* 47: */ public int getBaseQuality()
-/* 48: */ {
-/* 49: 47 */ return 0;
-/* 50: */ }
-/* 51: */
-/* 52: */ public float getBaseDamage()
-/* 53: */ {
-/* 54: 52 */ return 1.75F;
-/* 55: */ }
-/* 56: */
-/* 57: */ public float getSpeedMultiplier()
-/* 58: */ {
-/* 59: 57 */ return 1.0F;
-/* 60: */ }
-/* 61: */
-/* 62: */ public float getMaxDurabilityMultiplier()
-/* 63: */ {
-/* 64: 62 */ return 1.0F;
-/* 65: */ }
-/* 66: */
-/* 67: */ public String getCraftingSound()
-/* 68: */ {
-/* 69: 67 */ return null;
-/* 70: */ }
-/* 71: */
-/* 72: */ public String getEntityHitSound()
-/* 73: */ {
-/* 74: 72 */ return null;
-/* 75: */ }
-/* 76: */
-/* 77: */ public String getBreakingSound()
-/* 78: */ {
-/* 79: 77 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 80: */ }
-/* 81: */
-/* 82: */ public String getMiningSound()
-/* 83: */ {
-/* 84: 82 */ return null;
-/* 85: */ }
-/* 86: */
-/* 87: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 88: */ {
-/* 89: 87 */ if ((aBlock.getMaterial() == Material.leaves) && ((aBlock instanceof IShearable)))
-/* 90: */ {
-/* 91: 88 */ aPlayer.worldObj.setBlock(aX, aY, aZ, aBlock, aMetaData, 0);
-/* 92: 89 */ if (((IShearable)aBlock).isShearable(aStack, aPlayer.worldObj, aX, aY, aZ))
-/* 93: */ {
-/* 94: 90 */ ArrayList<ItemStack> tDrops = ((IShearable)aBlock).onSheared(aStack, aPlayer.worldObj, aX, aY, aZ, aFortune);
-/* 95: 91 */ aDrops.clear();
-/* 96: 92 */ aDrops.addAll(tDrops);
-/* 97: 93 */ aEvent.dropChance = 1.0F;
-/* 98: */ }
-/* 99: 95 */ aPlayer.worldObj.setBlock(aX, aY, aZ, Blocks.air, 0, 0);
-/* 100: */ }
-/* 101: 96 */ else if (((aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce)) && (aDrops.isEmpty()))
-/* 102: */ {
-/* 103: 97 */ aDrops.add(new ItemStack(aBlock, 1, aMetaData));
-/* 104: 98 */ aPlayer.worldObj.setBlockToAir(aX, aY, aZ);
-/* 105: 99 */ aEvent.dropChance = 1.0F;
-/* 106:100 */ return 1;
-/* 107: */ }
-/* 108:102 */ return 0;
-/* 109: */ }
-/* 110: */
-/* 111: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 112: */ {
-/* 113:107 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 114:108 */ return ((tTool != null) && ((tTool.equals("axe")) || (tTool.equals("saw")))) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.wood) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce);
-/* 115: */ }
-/* 116: */
-/* 117: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 118: */ {
-/* 119:113 */ return null;
-/* 120: */ }
-/* 121: */
-/* 122: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 123: */ {
-/* 124:118 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSaw.mTextureIndex] : Textures.ItemIcons.HANDLE_SAW;
-/* 125: */ }
-/* 126: */
-/* 127: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 128: */ {
-/* 129:123 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 130: */ }
-/* 131: */
-/* 132: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 133: */
-/* 134: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 135: */ {
-/* 136:133 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was getting cut down by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 137: */ }
-/* 138: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_Saw
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.75F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ if ((aBlock.getMaterial() == Material.leaves) && ((aBlock instanceof IShearable)))
+ {
+ aPlayer.worldObj.setBlock(aX, aY, aZ, aBlock, aMetaData, 0);
+ if (((IShearable)aBlock).isShearable(aStack, aPlayer.worldObj, aX, aY, aZ))
+ {
+ ArrayList<ItemStack> tDrops = ((IShearable)aBlock).onSheared(aStack, aPlayer.worldObj, aX, aY, aZ, aFortune);
+ aDrops.clear();
+ aDrops.addAll(tDrops);
+ aEvent.dropChance = 1.0F;
+ }
+ aPlayer.worldObj.setBlock(aX, aY, aZ, Blocks.air, 0, 0);
+ }
+ else if (((aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce)) && (aDrops.isEmpty()))
+ {
+ aDrops.add(new ItemStack(aBlock, 1, aMetaData));
+ aPlayer.worldObj.setBlockToAir(aX, aY, aZ);
+ aEvent.dropChance = 1.0F;
+ return 1;
+ }
+ return 0;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && ((tTool.equals("axe")) || (tTool.equals("saw")))) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.wood) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.ice) || (aBlock.getMaterial() == Material.packedIce);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSaw.mTextureIndex] : Textures.ItemIcons.HANDLE_SAW;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was getting cut down by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Scoop.java b/main/java/gregtech/common/tools/GT_Tool_Scoop.java index c815bde9fd..c7eb3e55e3 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Scoop.java +++ b/main/java/gregtech/common/tools/GT_Tool_Scoop.java @@ -1,137 +1,137 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.interfaces.IItemBehaviour;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 10: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.util.ChatComponentText;
-/* 16: */ import net.minecraft.util.EnumChatFormatting;
-/* 17: */ import net.minecraft.util.IChatComponent;
-/* 18: */
-/* 19: */ public class GT_Tool_Scoop
-/* 20: */ extends GT_Tool
-/* 21: */ {
-/* 22: */ public static Material sBeeHiveMaterial;
-/* 23: */
-/* 24: */ public int getToolDamagePerBlockBreak()
-/* 25: */ {
-/* 26: 23 */ return 200;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerDropConversion()
-/* 30: */ {
-/* 31: 28 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerContainerCraft()
-/* 35: */ {
-/* 36: 33 */ return 800;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getToolDamagePerEntityAttack()
-/* 40: */ {
-/* 41: 38 */ return 200;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getBaseQuality()
-/* 45: */ {
-/* 46: 43 */ return 0;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getBaseDamage()
-/* 50: */ {
-/* 51: 48 */ return 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getSpeedMultiplier()
-/* 55: */ {
-/* 56: 53 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public float getMaxDurabilityMultiplier()
-/* 60: */ {
-/* 61: 58 */ return 1.0F;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getCraftingSound()
-/* 65: */ {
-/* 66: 63 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getEntityHitSound()
-/* 70: */ {
-/* 71: 68 */ return null;
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getBreakingSound()
-/* 75: */ {
-/* 76: 73 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 77: */ }
-/* 78: */
-/* 79: */ public String getMiningSound()
-/* 80: */ {
-/* 81: 78 */ return null;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean canBlock()
-/* 85: */ {
-/* 86: 83 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isCrowbar()
-/* 90: */ {
-/* 91: 88 */ return false;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 95: */ {
-/* 96: 93 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 97: 94 */ return ((tTool != null) && (tTool.equals("scoop"))) || (aBlock.getMaterial() == sBeeHiveMaterial);
-/* 98: */ }
-/* 99: */
-/* 100: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 101: */ {
-/* 102: 99 */ return null;
-/* 103: */ }
-/* 104: */
-/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:104 */ return aIsToolHead ? Textures.ItemIcons.SCOOP : null;
-/* 108: */ }
-/* 109: */
-/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 111: */ {
-/* 112:109 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 113: */ }
-/* 114: */
-/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 116: */ {
-/* 117: */ try
-/* 118: */ {
-/* 119:115 */ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Scoop", 0, null, false, new Object[] { Integer.valueOf(200) });
-/* 120:116 */ if ((tObject instanceof IItemBehaviour)) {
-/* 121:116 */ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
-/* 122: */ }
-/* 123: */ }
-/* 124: */ catch (Throwable e) {}
-/* 125: */ }
-/* 126: */
-/* 127: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 128: */ {
-/* 129:122 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got scooped up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 130: */ }
-/* 131: */ }
+public class GT_Tool_Scoop
+ extends GT_Tool
+{
+ public static Material sBeeHiveMaterial;
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("scoop"))) || (aBlock.getMaterial() == sBeeHiveMaterial);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.SCOOP : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ try
+ {
+ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Scoop", 0, null, false, new Object[] { Integer.valueOf(200) });
+ if ((tObject instanceof IItemBehaviour)) {
+ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
+ }
+ }
+ catch (Throwable e) {}
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got scooped up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Screwdriver.java b/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java index 3749100746..8dbe58129e 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java +++ b/main/java/gregtech/common/tools/GT_Tool_Screwdriver.java @@ -1,147 +1,147 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import gregtech.common.items.behaviors.Behaviour_Screwdriver;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Screwdriver;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
-/* 9: */ import java.util.Arrays;
-/* 10: */ import java.util.List;
-/* 11: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntityCaveSpider;
+import net.minecraft.entity.monster.EntitySpider;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 12: */ import net.minecraft.block.Block;
-/* 13: */ import net.minecraft.block.material.Material;
-/* 14: */ import net.minecraft.entity.Entity;
-/* 15: */ import net.minecraft.entity.EntityLivingBase;
-/* 16: */ import net.minecraft.entity.monster.EntityCaveSpider;
-/* 17: */ import net.minecraft.entity.monster.EntitySpider;
-/* 18: */ import net.minecraft.entity.player.EntityPlayer;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.util.ChatComponentText;
-/* 21: */ import net.minecraft.util.EnumChatFormatting;
-/* 22: */ import net.minecraft.util.IChatComponent;
-/* 23: */
-/* 24: */ public class GT_Tool_Screwdriver
-/* 25: */ extends GT_Tool
-/* 26: */ {
-/* 27: 26 */ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityCaveSpider.class.getName(), EntitySpider.class.getName(), "EntityTFHedgeSpider", "EntityTFKingSpider", "EntityTFSwarmSpider", "EntityTFTowerBroodling" });
-/* 28: */
-/* 29: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 30: */ {
-/* 31: 37 */ String tName = aEntity.getClass().getName();
-/* 32: 38 */ tName = tName.substring(tName.lastIndexOf(".") + 1);
-/* 33: 39 */ return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage;
-/* 34: */ }
-/* 35: */
-/* 36: */ public int getToolDamagePerBlockBreak()
-/* 37: */ {
-/* 38: 44 */ return 200;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getToolDamagePerDropConversion()
-/* 42: */ {
-/* 43: 49 */ return 100;
-/* 44: */ }
-/* 45: */
-/* 46: */ public int getToolDamagePerContainerCraft()
-/* 47: */ {
-/* 48: 54 */ return 400;
-/* 49: */ }
-/* 50: */
-/* 51: */ public int getToolDamagePerEntityAttack()
-/* 52: */ {
-/* 53: 59 */ return 200;
-/* 54: */ }
-/* 55: */
-/* 56: */ public int getBaseQuality()
-/* 57: */ {
-/* 58: 64 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public float getBaseDamage()
-/* 62: */ {
-/* 63: 69 */ return 1.5F;
-/* 64: */ }
-/* 65: */
-/* 66: */ public float getSpeedMultiplier()
-/* 67: */ {
-/* 68: 74 */ return 1.0F;
-/* 69: */ }
-/* 70: */
-/* 71: */ public float getMaxDurabilityMultiplier()
-/* 72: */ {
-/* 73: 79 */ return 1.0F;
-/* 74: */ }
-/* 75: */
-/* 76: */ public String getCraftingSound()
-/* 77: */ {
-/* 78: 84 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
-/* 79: */ }
-/* 80: */
-/* 81: */ public String getEntityHitSound()
-/* 82: */ {
-/* 83: 89 */ return null;
-/* 84: */ }
-/* 85: */
-/* 86: */ public String getBreakingSound()
-/* 87: */ {
-/* 88: 94 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 89: */ }
-/* 90: */
-/* 91: */ public String getMiningSound()
-/* 92: */ {
-/* 93: 99 */ return null;
-/* 94: */ }
-/* 95: */
-/* 96: */ public boolean canBlock()
-/* 97: */ {
-/* 98:104 */ return true;
-/* 99: */ }
-/* 100: */
-/* 101: */ public boolean isCrowbar()
-/* 102: */ {
-/* 103:109 */ return false;
-/* 104: */ }
-/* 105: */
-/* 106: */ public boolean isMiningTool()
-/* 107: */ {
-/* 108:114 */ return false;
-/* 109: */ }
-/* 110: */
-/* 111: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 112: */ {
-/* 113:119 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 114:120 */ return ((tTool != null) && (tTool.equals("screwdriver"))) || (aBlock.getMaterial() == Material.circuits);
-/* 115: */ }
-/* 116: */
-/* 117: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 118: */ {
-/* 119:125 */ return null;
-/* 120: */ }
-/* 121: */
-/* 122: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 123: */ {
-/* 124:130 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] : Textures.ItemIcons.HANDLE_SCREWDRIVER;
-/* 125: */ }
-/* 126: */
-/* 127: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 128: */ {
-/* 129:135 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 130: */ }
-/* 131: */
-/* 132: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 133: */ {
-/* 134:140 */ aItem.addItemBehavior(aID, new Behaviour_Screwdriver(1, 200));
-/* 135: */ }
-/* 136: */
-/* 137: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 138: */ {
-/* 139:145 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " is screwed! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")");
-/* 140: */ }
-/* 141: */ }
+public class GT_Tool_Screwdriver
+ extends GT_Tool
+{
+ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityCaveSpider.class.getName(), EntitySpider.class.getName(), "EntityTFHedgeSpider", "EntityTFKingSpider", "EntityTFSwarmSpider", "EntityTFTowerBroodling" });
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ String tName = aEntity.getClass().getName();
+ tName = tName.substring(tName.lastIndexOf(".") + 1);
+ return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage;
+ }
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMiningTool()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("screwdriver"))) || (aBlock.getMaterial() == Material.circuits);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] : Textures.ItemIcons.HANDLE_SCREWDRIVER;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Screwdriver(1, 200));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " is screwed! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")");
+ }
+}
/* 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/tools/GT_Tool_Screwdriver_LV.java b/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java index 978c49890c..f13b74192b 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java @@ -1,35 +1,35 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Tool_Screwdriver_LV
-/* 10: */ extends GT_Tool_Screwdriver
-/* 11: */ {
-/* 12: */ public float getMaxDurabilityMultiplier()
-/* 13: */ {
-/* 14:12 */ return 1.0F;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int getToolDamagePerContainerCraft()
-/* 18: */ {
-/* 19:17 */ return 200;
-/* 20: */ }
-/* 21: */
-/* 22: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 23: */ {
-/* 24:22 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] : Textures.ItemIcons.HANDLE_ELECTRIC_SCREWDRIVER;
-/* 25: */ }
-/* 26: */
-/* 27: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 28: */ {
-/* 29:27 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 30: */ }
-/* 31: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Screwdriver_LV
+ extends GT_Tool_Screwdriver
+{
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 200;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadScrewdriver.mTextureIndex] : Textures.ItemIcons.HANDLE_ELECTRIC_SCREWDRIVER;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+}
/* 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/tools/GT_Tool_Sense.java b/main/java/gregtech/common/tools/GT_Tool_Sense.java index 291bbbb7f5..af609cef8c 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Sense.java +++ b/main/java/gregtech/common/tools/GT_Tool_Sense.java @@ -1,83 +1,83 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.interfaces.IIconContainer;
-/* 5: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 6: */ import gregtech.common.items.behaviors.Behaviour_Sense;
+package gregtech.common.tools;
-/* 7: */ import java.util.List;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Sense;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.block.material.Material;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.entity.player.EntityPlayer;
-/* 12: */ import net.minecraft.entity.player.EntityPlayerMP;
-/* 13: */ import net.minecraft.item.Item;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.server.management.ItemInWorldManager;
-/* 16: */ import net.minecraft.util.ChatComponentText;
-/* 17: */ import net.minecraft.util.EnumChatFormatting;
-/* 18: */ import net.minecraft.util.IChatComponent;
-/* 19: */ import net.minecraft.world.World;
+import java.util.List;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.EntityPlayerMP;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.server.management.ItemInWorldManager;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+import net.minecraft.world.World;
import net.minecraftforge.event.world.BlockEvent;
-/* 20: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
-/* 21: */
-/* 22: */ public class GT_Tool_Sense
-/* 23: */ extends GT_Tool
-/* 24: */ {
-/* 25:22 */ private ThreadLocal<Object> sIsHarvestingRightNow = new ThreadLocal();
-/* 26: */
-/* 27: */ public float getBaseDamage()
-/* 28: */ {
-/* 29:26 */ return 3.0F;
-/* 30: */ }
-/* 31: */
-/* 32: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 33: */ {
-/* 34:31 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 35:32 */ return ((tTool != null) && ((tTool.equals("sense")) || (tTool.equals("scythe")))) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.leaves);
-/* 36: */ }
-/* 37: */
-/* 38: */ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
-/* 39: */ {
-/* 40:37 */ int rConversions = 0;
-/* 41:38 */ if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP)))
-/* 42: */ {
-/* 43:39 */ this.sIsHarvestingRightNow.set(this);
-/* 44:40 */ for (int i = -1; i < 2; i++) {
-/* 45:40 */ for (int j = -1; j < 2; j++) {
-/* 46:40 */ for (int k = -1; k < 2; k++) {
-/* 47:40 */ if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem().getDigSpeed(aStack, aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) > 0.0F) && (((EntityPlayerMP)aPlayer).theItemInWorldManager.tryHarvestBlock(aX + i, aY + j, aZ + k))) {
-/* 48:40 */ rConversions++;
-/* 49: */ }
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53:41 */ this.sIsHarvestingRightNow.set(null);
-/* 54: */ }
-/* 55:43 */ return rConversions;
-/* 56: */ }
-/* 57: */
-/* 58: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 59: */ {
-/* 60:48 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSense.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 61: */ }
-/* 62: */
-/* 63: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 64: */ {
-/* 65:53 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 66: */ }
-/* 67: */
-/* 68: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 69: */ {
-/* 70:58 */ aItem.addItemBehavior(aID, new Behaviour_Sense(getToolDamagePerBlockBreak()));
-/* 71: */ }
-/* 72: */
-/* 73: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 74: */ {
-/* 75:63 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has taken the Soul of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 76: */ }
-/* 77: */ }
+import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
+
+public class GT_Tool_Sense
+ extends GT_Tool
+{
+ private ThreadLocal<Object> sIsHarvestingRightNow = new ThreadLocal();
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && ((tTool.equals("sense")) || (tTool.equals("scythe")))) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.leaves);
+ }
+
+ public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent)
+ {
+ int rConversions = 0;
+ if ((this.sIsHarvestingRightNow.get() == null) && ((aPlayer instanceof EntityPlayerMP)))
+ {
+ this.sIsHarvestingRightNow.set(this);
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int k = -1; k < 2; k++) {
+ if (((i != 0) || (j != 0) || (k != 0)) && (aStack.getItem().getDigSpeed(aStack, aPlayer.worldObj.getBlock(aX + i, aY + j, aZ + k), aPlayer.worldObj.getBlockMetadata(aX + i, aY + j, aZ + k)) > 0.0F) && (((EntityPlayerMP)aPlayer).theItemInWorldManager.tryHarvestBlock(aX + i, aY + j, aZ + k))) {
+ rConversions++;
+ }
+ }
+ }
+ }
+ this.sIsHarvestingRightNow.set(null);
+ }
+ return rConversions;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSense.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Sense(getToolDamagePerBlockBreak()));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has taken the Soul of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Shovel.java b/main/java/gregtech/common/tools/GT_Tool_Shovel.java index 4da54e6582..88ea7fc12b 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Shovel.java +++ b/main/java/gregtech/common/tools/GT_Tool_Shovel.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import java.util.Map;
-/* 8: */ import net.minecraft.block.Block;
-/* 9: */ import net.minecraft.block.material.Material;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.util.ChatComponentText;
-/* 13: */ import net.minecraft.util.EnumChatFormatting;
-/* 14: */ import net.minecraft.util.IChatComponent;
-/* 15: */
-/* 16: */ public class GT_Tool_Shovel
-/* 17: */ extends GT_Tool
-/* 18: */ {
-/* 19: */ public int getToolDamagePerBlockBreak()
-/* 20: */ {
-/* 21: 18 */ return 50;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerDropConversion()
-/* 25: */ {
-/* 26: 23 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerContainerCraft()
-/* 30: */ {
-/* 31: 28 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerEntityAttack()
-/* 35: */ {
-/* 36: 33 */ return 200;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getBaseQuality()
-/* 40: */ {
-/* 41: 38 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public float getBaseDamage()
-/* 45: */ {
-/* 46: 43 */ return 1.5F;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51: 48 */ return 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56: 53 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public String getCraftingSound()
-/* 60: */ {
-/* 61: 58 */ return null;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getEntityHitSound()
-/* 65: */ {
-/* 66: 63 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getBreakingSound()
-/* 70: */ {
-/* 71: 68 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getMiningSound()
-/* 75: */ {
-/* 76: 73 */ return null;
-/* 77: */ }
-/* 78: */
-/* 79: */ public boolean canBlock()
-/* 80: */ {
-/* 81: 78 */ return false;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean isCrowbar()
-/* 85: */ {
-/* 86: 83 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 90: */ {
-/* 91: 88 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 92: 89 */ return ((tTool != null) && (tTool.equals("shovel"))) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay);
-/* 93: */ }
-/* 94: */
-/* 95: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 96: */ {
-/* 97: 94 */ return null;
-/* 98: */ }
-/* 99: */
-/* 100: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 101: */ {
-/* 102: 99 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadShovel.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 103: */ }
-/* 104: */
-/* 105: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:104 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 108: */ }
-/* 109: */
-/* 110: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 111: */
-/* 112: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 113: */ {
-/* 114:114 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got dug up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 115: */ }
-/* 116: */ }
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_Shovel
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("shovel"))) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadShovel.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got dug up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_SoftHammer.java b/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java index 9be30de5c7..9de0b8f493 100644 --- a/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java +++ b/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java @@ -1,138 +1,138 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.common.items.behaviors.Behaviour_SoftHammer;
-/* 8: */ import java.util.Map;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.entity.Entity;
-/* 11: */ import net.minecraft.entity.EntityLivingBase;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.util.ChatComponentText;
-/* 14: */ import net.minecraft.util.EnumChatFormatting;
-/* 15: */ import net.minecraft.util.IChatComponent;
-/* 16: */
-/* 17: */ public class GT_Tool_SoftHammer
-/* 18: */ extends GT_Tool
-/* 19: */ {
-/* 20: */ public int getToolDamagePerBlockBreak()
-/* 21: */ {
-/* 22: 19 */ return 50;
-/* 23: */ }
-/* 24: */
-/* 25: */ public int getToolDamagePerDropConversion()
-/* 26: */ {
-/* 27: 24 */ return 100;
-/* 28: */ }
-/* 29: */
-/* 30: */ public int getToolDamagePerContainerCraft()
-/* 31: */ {
-/* 32: 29 */ return 800;
-/* 33: */ }
-/* 34: */
-/* 35: */ public int getToolDamagePerEntityAttack()
-/* 36: */ {
-/* 37: 34 */ return 200;
-/* 38: */ }
-/* 39: */
-/* 40: */ public int getBaseQuality()
-/* 41: */ {
-/* 42: 39 */ return 0;
-/* 43: */ }
-/* 44: */
-/* 45: */ public float getBaseDamage()
-/* 46: */ {
-/* 47: 44 */ return 3.0F;
-/* 48: */ }
-/* 49: */
-/* 50: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 51: */ {
-/* 52: 49 */ return aOriginalHurtResistance * 2;
-/* 53: */ }
-/* 54: */
-/* 55: */ public float getSpeedMultiplier()
-/* 56: */ {
-/* 57: 54 */ return 0.1F;
-/* 58: */ }
-/* 59: */
-/* 60: */ public float getMaxDurabilityMultiplier()
-/* 61: */ {
-/* 62: 59 */ return 8.0F;
-/* 63: */ }
-/* 64: */
-/* 65: */ public String getCraftingSound()
-/* 66: */ {
-/* 67: 64 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 68: */ }
-/* 69: */
-/* 70: */ public String getEntityHitSound()
-/* 71: */ {
-/* 72: 69 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 73: */ }
-/* 74: */
-/* 75: */ public String getBreakingSound()
-/* 76: */ {
-/* 77: 74 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 78: */ }
-/* 79: */
-/* 80: */ public String getMiningSound()
-/* 81: */ {
-/* 82: 79 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
-/* 83: */ }
-/* 84: */
-/* 85: */ public boolean canBlock()
-/* 86: */ {
-/* 87: 84 */ return true;
-/* 88: */ }
-/* 89: */
-/* 90: */ public boolean isCrowbar()
-/* 91: */ {
-/* 92: 89 */ return false;
-/* 93: */ }
-/* 94: */
-/* 95: */ public boolean isMiningTool()
-/* 96: */ {
-/* 97: 94 */ return false;
-/* 98: */ }
-/* 99: */
-/* 100: */ public boolean isWeapon()
-/* 101: */ {
-/* 102: 99 */ return true;
-/* 103: */ }
-/* 104: */
-/* 105: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 106: */ {
-/* 107:104 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 108:105 */ return (tTool != null) && (tTool.equals("softhammer"));
-/* 109: */ }
-/* 110: */
-/* 111: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 112: */ {
-/* 113:110 */ return null;
-/* 114: */ }
-/* 115: */
-/* 116: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 117: */ {
-/* 118:115 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 119: */ }
-/* 120: */
-/* 121: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 122: */ {
-/* 123:120 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 124: */ }
-/* 125: */
-/* 126: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 127: */ {
-/* 128:125 */ aItem.addItemBehavior(aID, new Behaviour_SoftHammer(100));
-/* 129: */ }
-/* 130: */
-/* 131: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 132: */ {
-/* 133:130 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was hammered to death by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 134: */ }
-/* 135: */ }
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_SoftHammer;
+import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
+
+public class GT_Tool_SoftHammer
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance * 2;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.1F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 8.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public String getEntityHitSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(101));
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMiningTool()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return (tTool != null) && (tTool.equals("softhammer"));
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadHammer.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_SoftHammer(100));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was hammered to death by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Soldering_Iron.java b/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java index ac348c4f96..fa496cdce4 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java +++ b/main/java/gregtech/common/tools/GT_Tool_Soldering_Iron.java @@ -21,118 +21,118 @@ import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IChatComponent; public class GT_Tool_Soldering_Iron extends GT_Tool{ - /* 27: 26 */ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityCaveSpider.class.getName(), EntitySpider.class.getName(), "EntityTFHedgeSpider", "EntityTFKingSpider", "EntityTFSwarmSpider", "EntityTFTowerBroodling" }); - /* 28: */ - /* 29: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) - /* 30: */ { - /* 31: 37 */ String tName = aEntity.getClass().getName(); - /* 32: 38 */ tName = tName.substring(tName.lastIndexOf(".") + 1); - /* 33: 39 */ return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage; - /* 34: */ } - /* 35: */ - /* 36: */ public int getToolDamagePerBlockBreak() - /* 37: */ { - /* 38: 44 */ return 1000; - /* 39: */ } - /* 40: */ - /* 41: */ public int getToolDamagePerDropConversion() - /* 42: */ { - /* 43: 49 */ return 500; - /* 44: */ } - /* 45: */ - /* 46: */ public int getToolDamagePerContainerCraft() - /* 47: */ { - /* 48: 54 */ return 1000; - /* 49: */ } - /* 50: */ - /* 51: */ public int getToolDamagePerEntityAttack() - /* 52: */ { - /* 53: 59 */ return 500; - /* 54: */ } - /* 55: */ - /* 56: */ public int getBaseQuality() - /* 57: */ { - /* 58: 64 */ return 0; - /* 59: */ } - /* 60: */ - /* 61: */ public float getBaseDamage() - /* 62: */ { - /* 63: 69 */ return 1.5F; - /* 64: */ } - /* 65: */ - /* 66: */ public float getSpeedMultiplier() - /* 67: */ { - /* 68: 74 */ return 1.0F; - /* 69: */ } - /* 70: */ - /* 71: */ public float getMaxDurabilityMultiplier() - /* 72: */ { - /* 73: 79 */ return 1.0F; - /* 74: */ } - /* 75: */ - /* 76: */ public String getCraftingSound() - /* 77: */ { - /* 78: 84 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100)); - /* 79: */ } - /* 80: */ - /* 81: */ public String getEntityHitSound() - /* 82: */ { - /* 83: 89 */ return null; - /* 84: */ } - /* 85: */ - /* 86: */ public String getBreakingSound() - /* 87: */ { - /* 88: 94 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); - /* 89: */ } - /* 90: */ - /* 91: */ public String getMiningSound() - /* 92: */ { - /* 93: 99 */ return null; - /* 94: */ } - /* 95: */ - /* 96: */ public boolean canBlock() - /* 97: */ { - /* 98:104 */ return true; - /* 99: */ } - /* 100: */ - /* 101: */ public boolean isCrowbar() - /* 102: */ { - /* 103:109 */ return false; - /* 104: */ } - /* 105: */ - /* 106: */ public boolean isMiningTool() - /* 107: */ { - /* 108:114 */ return false; - /* 109: */ } - /* 110: */ - /* 111: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) - /* 112: */ { - /* 113:119 */ String tTool = aBlock.getHarvestTool(aMetaData); - /* 114:120 */ return ((tTool != null) && (tTool.equals("soldering_iron"))) || (aBlock.getMaterial() == Material.circuits); - /* 115: */ } - /* 116: */ - /* 117: */ public ItemStack getBrokenItem(ItemStack aStack) - /* 118: */ { - /* 119:125 */ return null; - /* 120: */ } - /* 121: */ - /* 122: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) - /* 123: */ { - /* 124:130 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[49] : Textures.ItemIcons.HANDLE_SOLDERING; - /* 125: */ } - /* 126: */ - /* 127: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) - /* 128: */ { - /* 129:135 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; - /* 130: */ } - /* 131: */ - /* 132: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) - /* 133: */ { - /* 134:140 */ aItem.addItemBehavior(aID, new Behaviour_Screwdriver(1, 200)); - /* 135: */ } - /* 136: */ - /* 137: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) - /* 138: */ { - /* 139:145 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got soldert! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")"); - /* 140: */ } - /* 141: */ } + public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityCaveSpider.class.getName(), EntitySpider.class.getName(), "EntityTFHedgeSpider", "EntityTFKingSpider", "EntityTFSwarmSpider", "EntityTFTowerBroodling" }); + + public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) + { + String tName = aEntity.getClass().getName(); + tName = tName.substring(tName.lastIndexOf(".") + 1); + return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage; + } + + public int getToolDamagePerBlockBreak() + { + return 1000; + } + + public int getToolDamagePerDropConversion() + { + return 500; + } + + public int getToolDamagePerContainerCraft() + { + return 1000; + } + + public int getToolDamagePerEntityAttack() + { + return 500; + } + + public int getBaseQuality() + { + return 0; + } + + public float getBaseDamage() + { + return 1.5F; + } + + public float getSpeedMultiplier() + { + return 1.0F; + } + + public float getMaxDurabilityMultiplier() + { + return 1.0F; + } + + public String getCraftingSound() + { + return (String)GregTech_API.sSoundList.get(Integer.valueOf(100)); + } + + public String getEntityHitSound() + { + return null; + } + + public String getBreakingSound() + { + return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); + } + + public String getMiningSound() + { + return null; + } + + public boolean canBlock() + { + return true; + } + + public boolean isCrowbar() + { + return false; + } + + public boolean isMiningTool() + { + return false; + } + + public boolean isMinableBlock(Block aBlock, byte aMetaData) + { + String tTool = aBlock.getHarvestTool(aMetaData); + return ((tTool != null) && (tTool.equals("soldering_iron"))) || (aBlock.getMaterial() == Material.circuits); + } + + public ItemStack getBrokenItem(ItemStack aStack) + { + return null; + } + + public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) + { + return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[49] : Textures.ItemIcons.HANDLE_SOLDERING; + } + + public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) + { + return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; + } + + public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) + { + aItem.addItemBehavior(aID, new Behaviour_Screwdriver(1, 200)); + } + + public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) + { + return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got soldert! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")"); + } + } diff --git a/main/java/gregtech/common/tools/GT_Tool_Sword.java b/main/java/gregtech/common/tools/GT_Tool_Sword.java index 6fffea87e0..004ed909a6 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Sword.java +++ b/main/java/gregtech/common/tools/GT_Tool_Sword.java @@ -1,125 +1,125 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
+import java.util.Map;
-/* 8: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.block.material.Material;
-/* 11: */ import net.minecraft.entity.player.EntityPlayer;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */ import net.minecraft.stats.AchievementList;
-/* 14: */
-/* 15: */ public class GT_Tool_Sword
-/* 16: */ extends GT_Tool
-/* 17: */ {
-/* 18: */ public int getToolDamagePerBlockBreak()
-/* 19: */ {
-/* 20: 17 */ return 200;
-/* 21: */ }
-/* 22: */
-/* 23: */ public int getToolDamagePerDropConversion()
-/* 24: */ {
-/* 25: 22 */ return 100;
-/* 26: */ }
-/* 27: */
-/* 28: */ public int getToolDamagePerContainerCraft()
-/* 29: */ {
-/* 30: 27 */ return 100;
-/* 31: */ }
-/* 32: */
-/* 33: */ public int getToolDamagePerEntityAttack()
-/* 34: */ {
-/* 35: 32 */ return 100;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int getBaseQuality()
-/* 39: */ {
-/* 40: 37 */ return 0;
-/* 41: */ }
-/* 42: */
-/* 43: */ public float getBaseDamage()
-/* 44: */ {
-/* 45: 42 */ return 4.0F;
-/* 46: */ }
-/* 47: */
-/* 48: */ public float getSpeedMultiplier()
-/* 49: */ {
-/* 50: 47 */ return 1.0F;
-/* 51: */ }
-/* 52: */
-/* 53: */ public float getMaxDurabilityMultiplier()
-/* 54: */ {
-/* 55: 52 */ return 1.0F;
-/* 56: */ }
-/* 57: */
-/* 58: */ public String getCraftingSound()
-/* 59: */ {
-/* 60: 57 */ return null;
-/* 61: */ }
-/* 62: */
-/* 63: */ public String getEntityHitSound()
-/* 64: */ {
-/* 65: 62 */ return null;
-/* 66: */ }
-/* 67: */
-/* 68: */ public String getBreakingSound()
-/* 69: */ {
-/* 70: 67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 71: */ }
-/* 72: */
-/* 73: */ public String getMiningSound()
-/* 74: */ {
-/* 75: 72 */ return null;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean canBlock()
-/* 79: */ {
-/* 80: 77 */ return true;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isCrowbar()
-/* 84: */ {
-/* 85: 82 */ return false;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean isWeapon()
-/* 89: */ {
-/* 90: 87 */ return true;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 94: */ {
-/* 95: 92 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 96: 93 */ return ((tTool != null) && (tTool.equals("sword"))) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.gourd) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.web) || (aBlock.getMaterial() == Material.cloth) || (aBlock.getMaterial() == Material.carpet) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.cake) || (aBlock.getMaterial() == Material.tnt) || (aBlock.getMaterial() == Material.sponge);
-/* 97: */ }
-/* 98: */
-/* 99: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 100: */ {
-/* 101: 98 */ return null;
-/* 102: */ }
-/* 103: */
-/* 104: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 105: */ {
-/* 106:103 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSword.mTextureIndex] : Textures.ItemIcons.HANDLE_SWORD;
-/* 107: */ }
-/* 108: */
-/* 109: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 110: */ {
-/* 111:108 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 112: */ }
-/* 113: */
-/* 114: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 115: */ {
-/* 116:113 */ super.onToolCrafted(aStack, aPlayer);
-/* 117:114 */ aPlayer.triggerAchievement(AchievementList.buildSword);
-/* 118: */ }
-/* 119: */ }
+public class GT_Tool_Sword
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 100;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 4.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("sword"))) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.gourd) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.web) || (aBlock.getMaterial() == Material.cloth) || (aBlock.getMaterial() == Material.carpet) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.cake) || (aBlock.getMaterial() == Material.tnt) || (aBlock.getMaterial() == Material.sponge);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadSword.mTextureIndex] : Textures.ItemIcons.HANDLE_SWORD;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ super.onToolCrafted(aStack, aPlayer);
+ aPlayer.triggerAchievement(AchievementList.buildSword);
+ }
+}
/* 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/tools/GT_Tool_UniversalSpade.java b/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java index 7670bf93b6..47d89cd05a 100644 --- a/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java +++ b/main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java @@ -1,140 +1,140 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tools;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import gregtech.common.items.behaviors.Behaviour_Crowbar;
+import gregtech.api.enums.Materials;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Crowbar;
+
+import java.util.Map;
-/* 8: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.stats.AchievementList;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.block.material.Material;
-/* 11: */ import net.minecraft.entity.EntityLivingBase;
-/* 12: */ import net.minecraft.entity.player.EntityPlayer;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.stats.AchievementList;
-/* 15: */ import net.minecraft.util.ChatComponentText;
-/* 16: */ import net.minecraft.util.EnumChatFormatting;
-/* 17: */ import net.minecraft.util.IChatComponent;
-/* 18: */
-/* 19: */ public class GT_Tool_UniversalSpade
-/* 20: */ extends GT_Tool
-/* 21: */ {
-/* 22: */ public int getToolDamagePerBlockBreak()
-/* 23: */ {
-/* 24: 21 */ return 50;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerDropConversion()
-/* 28: */ {
-/* 29: 26 */ return 100;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getToolDamagePerContainerCraft()
-/* 33: */ {
-/* 34: 31 */ return 400;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getToolDamagePerEntityAttack()
-/* 38: */ {
-/* 39: 36 */ return 100;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int getBaseQuality()
-/* 43: */ {
-/* 44: 41 */ return 0;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getBaseDamage()
-/* 48: */ {
-/* 49: 46 */ return 3.0F;
-/* 50: */ }
-/* 51: */
-/* 52: */ public float getSpeedMultiplier()
-/* 53: */ {
-/* 54: 51 */ return 0.75F;
-/* 55: */ }
-/* 56: */
-/* 57: */ public float getMaxDurabilityMultiplier()
-/* 58: */ {
-/* 59: 56 */ return 1.0F;
-/* 60: */ }
-/* 61: */
-/* 62: */ public String getCraftingSound()
-/* 63: */ {
-/* 64: 61 */ return null;
-/* 65: */ }
-/* 66: */
-/* 67: */ public String getEntityHitSound()
-/* 68: */ {
-/* 69: 66 */ return null;
-/* 70: */ }
-/* 71: */
-/* 72: */ public String getBreakingSound()
-/* 73: */ {
-/* 74: 71 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 75: */ }
-/* 76: */
-/* 77: */ public String getMiningSound()
-/* 78: */ {
-/* 79: 76 */ return null;
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean canBlock()
-/* 83: */ {
-/* 84: 81 */ return true;
-/* 85: */ }
-/* 86: */
-/* 87: */ public boolean isCrowbar()
-/* 88: */ {
-/* 89: 86 */ return true;
-/* 90: */ }
-/* 91: */
-/* 92: */ public boolean isWeapon()
-/* 93: */ {
-/* 94: 91 */ return true;
-/* 95: */ }
-/* 96: */
-/* 97: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 98: */ {
-/* 99: 96 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 100: 97 */ return ((tTool != null) && ((tTool.equals("shovel")) || (tTool.equals("axe")) || (tTool.equals("saw")) || (tTool.equals("sword")) || (tTool.equals("crowbar")))) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.wood) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.circuits) || (aBlock.getMaterial() == Material.gourd) || (aBlock.getMaterial() == Material.web) || (aBlock.getMaterial() == Material.cloth) || (aBlock.getMaterial() == Material.carpet) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.cake) || (aBlock.getMaterial() == Material.tnt) || (aBlock.getMaterial() == Material.sponge);
-/* 101: */ }
-/* 102: */
-/* 103: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 104: */ {
-/* 105:102 */ return null;
-/* 106: */ }
-/* 107: */
-/* 108: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 109: */ {
-/* 110:107 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadUniversalSpade.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
-/* 111: */ }
-/* 112: */
-/* 113: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 114: */ {
-/* 115:112 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 116: */ }
-/* 117: */
-/* 118: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 119: */ {
-/* 120:117 */ aItem.addItemBehavior(aID, new Behaviour_Crowbar(2, 2000));
-/* 121: */ }
-/* 122: */
-/* 123: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
-/* 124: */ {
-/* 125:122 */ super.onToolCrafted(aStack, aPlayer);
-/* 126:123 */ aPlayer.triggerAchievement(AchievementList.buildSword);
+public class GT_Tool_UniversalSpade
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 100;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 0.75F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return true;
+ }
+
+ public boolean isCrowbar()
+ {
+ return true;
+ }
+
+ public boolean isWeapon()
+ {
+ return true;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && ((tTool.equals("shovel")) || (tTool.equals("axe")) || (tTool.equals("saw")) || (tTool.equals("sword")) || (tTool.equals("crowbar")))) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay) || (aBlock.getMaterial() == Material.leaves) || (aBlock.getMaterial() == Material.vine) || (aBlock.getMaterial() == Material.wood) || (aBlock.getMaterial() == Material.cactus) || (aBlock.getMaterial() == Material.circuits) || (aBlock.getMaterial() == Material.gourd) || (aBlock.getMaterial() == Material.web) || (aBlock.getMaterial() == Material.cloth) || (aBlock.getMaterial() == Material.carpet) || (aBlock.getMaterial() == Material.plants) || (aBlock.getMaterial() == Material.cake) || (aBlock.getMaterial() == Material.tnt) || (aBlock.getMaterial() == Material.sponge);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadUniversalSpade.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.stick.mTextureIndex];
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Crowbar(2, 2000));
+ }
+
+ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer)
+ {
+ super.onToolCrafted(aStack, aPlayer);
+ aPlayer.triggerAchievement(AchievementList.buildSword);
try{GT_Mod.instance.achievements.issueAchievement(aPlayer, "unitool");}catch(Exception e){}
-/* 127: */ }
-/* 128: */
-/* 129: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 130: */ {
-/* 131:128 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been digged by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 132: */ }
-/* 133: */ }
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been digged by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_WireCutter.java b/main/java/gregtech/common/tools/GT_Tool_WireCutter.java index 51836fd220..4e1054869b 100644 --- a/main/java/gregtech/common/tools/GT_Tool_WireCutter.java +++ b/main/java/gregtech/common/tools/GT_Tool_WireCutter.java @@ -1,122 +1,122 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+
+import java.util.Map;
-/* 8: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 9: */ import net.minecraft.block.Block;
-/* 10: */ import net.minecraft.entity.EntityLivingBase;
-/* 11: */ import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.util.ChatComponentText;
-/* 13: */ import net.minecraft.util.EnumChatFormatting;
-/* 14: */ import net.minecraft.util.IChatComponent;
-/* 15: */
-/* 16: */ public class GT_Tool_WireCutter
-/* 17: */ extends GT_Tool
-/* 18: */ {
-/* 19: */ public int getToolDamagePerBlockBreak()
-/* 20: */ {
-/* 21: 17 */ return 100;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerDropConversion()
-/* 25: */ {
-/* 26: 22 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerContainerCraft()
-/* 30: */ {
-/* 31: 27 */ return 400;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerEntityAttack()
-/* 35: */ {
-/* 36: 32 */ return 200;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getBaseQuality()
-/* 40: */ {
-/* 41: 37 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public float getBaseDamage()
-/* 45: */ {
-/* 46: 42 */ return 1.25F;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51: 47 */ return 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56: 52 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public String getCraftingSound()
-/* 60: */ {
-/* 61: 57 */ return null;
-/* 62: */ }
-/* 63: */
-/* 64: */ public String getEntityHitSound()
-/* 65: */ {
-/* 66: 62 */ return null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public String getBreakingSound()
-/* 70: */ {
-/* 71: 67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 72: */ }
-/* 73: */
-/* 74: */ public String getMiningSound()
-/* 75: */ {
-/* 76: 72 */ return null;
-/* 77: */ }
-/* 78: */
-/* 79: */ public boolean canBlock()
-/* 80: */ {
-/* 81: 77 */ return false;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean isCrowbar()
-/* 85: */ {
-/* 86: 82 */ return false;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 90: */ {
-/* 91: 87 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 92: 88 */ return (tTool != null) && (tTool.equals("cutter"));
-/* 93: */ }
-/* 94: */
-/* 95: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 96: */ {
-/* 97: 93 */ return null;
-/* 98: */ }
-/* 99: */
-/* 100: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 101: */ {
-/* 102: 98 */ return aIsToolHead ? Textures.ItemIcons.WIRE_CUTTER : null;
-/* 103: */ }
-/* 104: */
-/* 105: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 106: */ {
-/* 107:103 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 108: */ }
-/* 109: */
-/* 110: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
-/* 111: */
-/* 112: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 113: */ {
-/* 114:113 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has cut the Cable for the Life Support Machine of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 115: */ }
-/* 116: */ }
+public class GT_Tool_WireCutter
+ extends GT_Tool
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.25F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return (tTool != null) && (tTool.equals("cutter"));
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.WIRE_CUTTER : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {}
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has cut the Cable for the Life Support Machine of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Wrench.java b/main/java/gregtech/common/tools/GT_Tool_Wrench.java index 031f8593cd..8a79c96750 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Wrench.java +++ b/main/java/gregtech/common/tools/GT_Tool_Wrench.java @@ -1,147 +1,147 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import gregtech.common.items.behaviors.Behaviour_Wrench;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Wrench;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
-/* 9: */ import java.util.Arrays;
-/* 10: */ import java.util.List;
-/* 11: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntityIronGolem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 12: */ import net.minecraft.block.Block;
-/* 13: */ import net.minecraft.block.material.Material;
-/* 14: */ import net.minecraft.entity.Entity;
-/* 15: */ import net.minecraft.entity.EntityLivingBase;
-/* 16: */ import net.minecraft.entity.monster.EntityIronGolem;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.init.Blocks;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.util.ChatComponentText;
-/* 21: */ import net.minecraft.util.EnumChatFormatting;
-/* 22: */ import net.minecraft.util.IChatComponent;
-/* 23: */
-/* 24: */ public class GT_Tool_Wrench
-/* 25: */ extends GT_Tool
-/* 26: */ {
-/* 27: 25 */ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
-/* 28: */
-/* 29: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 30: */ {
-/* 31: 32 */ String tName = aEntity.getClass().getName();
-/* 32: 33 */ tName = tName.substring(tName.lastIndexOf(".") + 1);
-/* 33: 34 */ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
-/* 34: */ }
-/* 35: */
-/* 36: */ public int getToolDamagePerBlockBreak()
-/* 37: */ {
-/* 38: 39 */ return 50;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getToolDamagePerDropConversion()
-/* 42: */ {
-/* 43: 44 */ return 100;
-/* 44: */ }
-/* 45: */
-/* 46: */ public int getToolDamagePerContainerCraft()
-/* 47: */ {
-/* 48: 49 */ return 800;
-/* 49: */ }
-/* 50: */
-/* 51: */ public int getToolDamagePerEntityAttack()
-/* 52: */ {
-/* 53: 54 */ return 200;
-/* 54: */ }
-/* 55: */
-/* 56: */ public int getBaseQuality()
-/* 57: */ {
-/* 58: 59 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public float getBaseDamage()
-/* 62: */ {
-/* 63: 64 */ return 3.0F;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 67: */ {
-/* 68: 69 */ return aOriginalHurtResistance * 2;
-/* 69: */ }
-/* 70: */
-/* 71: */ public float getSpeedMultiplier()
-/* 72: */ {
-/* 73: 74 */ return 1.0F;
-/* 74: */ }
-/* 75: */
-/* 76: */ public float getMaxDurabilityMultiplier()
-/* 77: */ {
-/* 78: 79 */ return 1.0F;
-/* 79: */ }
-/* 80: */
-/* 81: */ public String getCraftingSound()
-/* 82: */ {
-/* 83: 84 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
-/* 84: */ }
-/* 85: */
-/* 86: */ public String getEntityHitSound()
-/* 87: */ {
-/* 88: 89 */ return null;
-/* 89: */ }
-/* 90: */
-/* 91: */ public String getBreakingSound()
-/* 92: */ {
-/* 93: 94 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 94: */ }
-/* 95: */
-/* 96: */ public String getMiningSound()
-/* 97: */ {
-/* 98: 99 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
-/* 99: */ }
-/* 100: */
-/* 101: */ public boolean canBlock()
-/* 102: */ {
-/* 103:104 */ return false;
-/* 104: */ }
-/* 105: */
-/* 106: */ public boolean isCrowbar()
-/* 107: */ {
-/* 108:109 */ return false;
-/* 109: */ }
-/* 110: */
-/* 111: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 112: */ {
-/* 113:114 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 114:115 */ return ((tTool != null) && (tTool.equals("wrench"))) || (aBlock.getMaterial() == Material.piston) || (aBlock == Blocks.hopper) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper);
-/* 115: */ }
-/* 116: */
-/* 117: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 118: */ {
-/* 119:120 */ return null;
-/* 120: */ }
-/* 121: */
-/* 122: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 123: */ {
-/* 124:125 */ return aIsToolHead ? Textures.ItemIcons.WRENCH : null;
-/* 125: */ }
-/* 126: */
-/* 127: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 128: */ {
-/* 129:130 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
-/* 130: */ }
-/* 131: */
-/* 132: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 133: */ {
-/* 134:135 */ aItem.addItemBehavior(aID, new Behaviour_Wrench(100));
-/* 135: */ }
-/* 136: */
-/* 137: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 138: */ {
-/* 139:140 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " threw a Monkey Wrench into the Plans of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 140: */ }
-/* 141: */ }
+public class GT_Tool_Wrench
+ extends GT_Tool
+{
+ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ String tName = aEntity.getClass().getName();
+ tName = tName.substring(tName.lastIndexOf(".") + 1);
+ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
+ }
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance * 2;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("wrench"))) || (aBlock.getMaterial() == Material.piston) || (aBlock == Blocks.hopper) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.WRENCH : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Wrench(100));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " threw a Monkey Wrench into the Plans of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* 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/tools/GT_Tool_Wrench_HV.java b/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java index bbe2543a99..1d682520d1 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java @@ -1,70 +1,70 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Tool_Wrench_HV
-/* 10: */ extends GT_Tool_Wrench_LV
-/* 11: */ {
-/* 12: */ public int getToolDamagePerBlockBreak()
-/* 13: */ {
-/* 14:12 */ return 800;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int getToolDamagePerDropConversion()
-/* 18: */ {
-/* 19:17 */ return 1600;
-/* 20: */ }
-/* 21: */
-/* 22: */ public int getToolDamagePerContainerCraft()
-/* 23: */ {
-/* 24:22 */ return 12800;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerEntityAttack()
-/* 28: */ {
-/* 29:27 */ return 3200;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getBaseQuality()
-/* 33: */ {
-/* 34:32 */ return 1;
-/* 35: */ }
-/* 36: */
-/* 37: */ public float getBaseDamage()
-/* 38: */ {
-/* 39:37 */ return 2.0F;
-/* 40: */ }
-/* 41: */
-/* 42: */ public float getSpeedMultiplier()
-/* 43: */ {
-/* 44:42 */ return 4.0F;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getMaxDurabilityMultiplier()
-/* 48: */ {
-/* 49:47 */ return 4.0F;
-/* 50: */ }
-/* 51: */
-/* 52: */ public boolean canBlock()
-/* 53: */ {
-/* 54:52 */ return false;
-/* 55: */ }
-/* 56: */
-/* 57: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 58: */ {
-/* 59:57 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
-/* 60: */ }
-/* 61: */
-/* 62: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 63: */ {
-/* 64:62 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 65: */ }
-/* 66: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Wrench_HV
+ extends GT_Tool_Wrench_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 1600;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 12800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 3200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 2.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 4.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 4.0F;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+}
/* 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/tools/GT_Tool_Wrench_LV.java b/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java index 0309d8c193..6790f0c4c4 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java @@ -1,77 +1,77 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.entity.Entity;
-/* 8: */ import net.minecraft.entity.player.EntityPlayer;
-/* 9: */ import net.minecraft.item.ItemStack;
-/* 10: */
-/* 11: */ public class GT_Tool_Wrench_LV
-/* 12: */ extends GT_Tool_Wrench
-/* 13: */ {
-/* 14: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 15: */ {
-/* 16:14 */ return aOriginalDamage;
-/* 17: */ }
-/* 18: */
-/* 19: */ public int getToolDamagePerBlockBreak()
-/* 20: */ {
-/* 21:19 */ return 50;
-/* 22: */ }
-/* 23: */
-/* 24: */ public int getToolDamagePerDropConversion()
-/* 25: */ {
-/* 26:24 */ return 100;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerContainerCraft()
-/* 30: */ {
-/* 31:29 */ return 800;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerEntityAttack()
-/* 35: */ {
-/* 36:34 */ return 200;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getBaseQuality()
-/* 40: */ {
-/* 41:39 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public float getBaseDamage()
-/* 45: */ {
-/* 46:44 */ return 1.0F;
-/* 47: */ }
-/* 48: */
-/* 49: */ public float getSpeedMultiplier()
-/* 50: */ {
-/* 51:49 */ return 2.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getMaxDurabilityMultiplier()
-/* 55: */ {
-/* 56:54 */ return 1.0F;
-/* 57: */ }
-/* 58: */
-/* 59: */ public boolean canBlock()
-/* 60: */ {
-/* 61:59 */ return false;
-/* 62: */ }
-/* 63: */
-/* 64: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 65: */ {
-/* 66:64 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
-/* 67: */ }
-/* 68: */
-/* 69: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 70: */ {
-/* 71:69 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 72: */ }
-/* 73: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Wrench_LV
+ extends GT_Tool_Wrench
+{
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ return aOriginalDamage;
+ }
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+}
/* 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/tools/GT_Tool_Wrench_MV.java b/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java index 91a93a050a..914099f152 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java +++ b/main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java @@ -1,70 +1,70 @@ -/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 5: */ import gregtech.api.interfaces.IIconContainer;
-/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 7: */ import net.minecraft.item.ItemStack;
-/* 8: */
-/* 9: */ public class GT_Tool_Wrench_MV
-/* 10: */ extends GT_Tool_Wrench_LV
-/* 11: */ {
-/* 12: */ public int getToolDamagePerBlockBreak()
-/* 13: */ {
-/* 14:12 */ return 200;
-/* 15: */ }
-/* 16: */
-/* 17: */ public int getToolDamagePerDropConversion()
-/* 18: */ {
-/* 19:17 */ return 400;
-/* 20: */ }
-/* 21: */
-/* 22: */ public int getToolDamagePerContainerCraft()
-/* 23: */ {
-/* 24:22 */ return 3200;
-/* 25: */ }
-/* 26: */
-/* 27: */ public int getToolDamagePerEntityAttack()
-/* 28: */ {
-/* 29:27 */ return 800;
-/* 30: */ }
-/* 31: */
-/* 32: */ public int getBaseQuality()
-/* 33: */ {
-/* 34:32 */ return 1;
-/* 35: */ }
-/* 36: */
-/* 37: */ public float getBaseDamage()
-/* 38: */ {
-/* 39:37 */ return 1.5F;
-/* 40: */ }
-/* 41: */
-/* 42: */ public float getSpeedMultiplier()
-/* 43: */ {
-/* 44:42 */ return 3.0F;
-/* 45: */ }
-/* 46: */
-/* 47: */ public float getMaxDurabilityMultiplier()
-/* 48: */ {
-/* 49:47 */ return 2.0F;
-/* 50: */ }
-/* 51: */
-/* 52: */ public boolean canBlock()
-/* 53: */ {
-/* 54:52 */ return false;
-/* 55: */ }
-/* 56: */
-/* 57: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 58: */ {
-/* 59:57 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
-/* 60: */ }
-/* 61: */
-/* 62: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 63: */ {
-/* 64:62 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
-/* 65: */ }
-/* 66: */ }
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import net.minecraft.item.ItemStack;
+
+public class GT_Tool_Wrench_MV
+ extends GT_Tool_Wrench_LV
+{
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 400;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 3200;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 800;
+ }
+
+ public int getBaseQuality()
+ {
+ return 1;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.5F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 3.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 2.0F;
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadWrench.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|