From a1504799f44ba2debdfef06317f24e7f9c1129d6 Mon Sep 17 00:00:00 2001 From: aerospark Date: Tue, 23 Jun 2015 15:29:05 -0700 Subject: strip linenumbers --- .../gregtech/common/blocks/GT_Block_Casings1.java | 178 +-- .../gregtech/common/blocks/GT_Block_Casings2.java | 202 ++-- .../gregtech/common/blocks/GT_Block_Casings3.java | 184 ++-- .../gregtech/common/blocks/GT_Block_Casings4.java | 148 +-- .../common/blocks/GT_Block_Casings_Abstract.java | 280 ++--- .../gregtech/common/blocks/GT_Block_Concretes.java | 208 ++-- .../gregtech/common/blocks/GT_Block_Granites.java | 160 +-- .../gregtech/common/blocks/GT_Block_Machines.java | 1142 ++++++++++---------- .../java/gregtech/common/blocks/GT_Block_Ores.java | 522 ++++----- .../common/blocks/GT_Block_Stones_Abstract.java | 350 +++--- .../gregtech/common/blocks/GT_Item_Casings1.java | 58 +- .../gregtech/common/blocks/GT_Item_Casings2.java | 50 +- .../gregtech/common/blocks/GT_Item_Casings3.java | 24 +- .../gregtech/common/blocks/GT_Item_Casings4.java | 24 +- .../common/blocks/GT_Item_Casings_Abstract.java | 90 +- .../gregtech/common/blocks/GT_Item_Concretes.java | 48 +- .../gregtech/common/blocks/GT_Item_Granites.java | 24 +- .../gregtech/common/blocks/GT_Item_Machines.java | 332 +++--- main/java/gregtech/common/blocks/GT_Item_Ores.java | 108 +- .../common/blocks/GT_Item_Stones_Abstract.java | 82 +- .../common/blocks/GT_Material_Casings.java | 42 +- .../common/blocks/GT_Material_Machines.java | 42 +- .../gregtech/common/blocks/GT_Packet_Ores.java | 136 +-- .../gregtech/common/blocks/GT_TileEntity_Ores.java | 488 ++++----- 24 files changed, 2461 insertions(+), 2461 deletions(-) (limited to 'main/java/gregtech/common/blocks') 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 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 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.int