From 7224ac4299098c70efae9dbd04c50a97e3f5f583 Mon Sep 17 00:00:00 2001 From: Blood Asp Date: Thu, 23 Apr 2015 18:14:22 +0200 Subject: Initial Commit --- .../gregtech/common/blocks/GT_Block_Casings1.java | 96 ++++ .../gregtech/common/blocks/GT_Block_Casings2.java | 108 ++++ .../gregtech/common/blocks/GT_Block_Casings3.java | 99 ++++ .../gregtech/common/blocks/GT_Block_Casings4.java | 78 +++ .../common/blocks/GT_Block_Casings_Abstract.java | 146 ++++++ .../gregtech/common/blocks/GT_Block_Concretes.java | 110 ++++ .../gregtech/common/blocks/GT_Block_Granites.java | 86 +++ .../gregtech/common/blocks/GT_Block_Machines.java | 580 +++++++++++++++++++++ .../java/gregtech/common/blocks/GT_Block_Ores.java | 287 ++++++++++ .../common/blocks/GT_Block_Stones_Abstract.java | 181 +++++++ .../gregtech/common/blocks/GT_Item_Casings1.java | 35 ++ .../gregtech/common/blocks/GT_Item_Casings2.java | 31 ++ .../gregtech/common/blocks/GT_Item_Casings3.java | 18 + .../gregtech/common/blocks/GT_Item_Casings4.java | 18 + .../common/blocks/GT_Item_Casings_Abstract.java | 51 ++ .../gregtech/common/blocks/GT_Item_Concretes.java | 30 ++ .../gregtech/common/blocks/GT_Item_Granites.java | 18 + .../gregtech/common/blocks/GT_Item_Machines.java | 172 ++++++ main/java/gregtech/common/blocks/GT_Item_Ores.java | 60 +++ .../common/blocks/GT_Item_Stones_Abstract.java | 47 ++ .../common/blocks/GT_Material_Casings.java | 27 + .../common/blocks/GT_Material_Machines.java | 27 + .../gregtech/common/blocks/GT_Packet_Ores.java | 74 +++ .../gregtech/common/blocks/GT_TileEntity_Ores.java | 253 +++++++++ 24 files changed, 2632 insertions(+) create mode 100644 main/java/gregtech/common/blocks/GT_Block_Casings1.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Casings2.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Casings3.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Casings4.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Concretes.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Granites.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Machines.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Ores.java create mode 100644 main/java/gregtech/common/blocks/GT_Block_Stones_Abstract.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Casings1.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Casings2.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Casings3.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Casings4.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Casings_Abstract.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Concretes.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Granites.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Machines.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Ores.java create mode 100644 main/java/gregtech/common/blocks/GT_Item_Stones_Abstract.java create mode 100644 main/java/gregtech/common/blocks/GT_Material_Casings.java create mode 100644 main/java/gregtech/common/blocks/GT_Material_Machines.java create mode 100644 main/java/gregtech/common/blocks/GT_Packet_Ores.java create mode 100644 main/java/gregtech/common/blocks/GT_TileEntity_Ores.java (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 new file mode 100644 index 0000000000..eea1784635 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Casings1.java @@ -0,0 +1,96 @@ +/* 1: */ package gregtech.common.blocks; +/* 2: */ +/* 3: */ 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Casings1 + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Casings2.java b/main/java/gregtech/common/blocks/GT_Block_Casings2.java new file mode 100644 index 0000000000..88adea04b2 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Casings2.java @@ -0,0 +1,108 @@ +/* 1: */ package gregtech.common.blocks; +/* 2: */ +/* 3: */ 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Casings2 + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Casings3.java b/main/java/gregtech/common/blocks/GT_Block_Casings3.java new file mode 100644 index 0000000000..8e1a9b0342 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Casings3.java @@ -0,0 +1,99 @@ +/* 1: */ package gregtech.common.blocks; +/* 2: */ +/* 3: */ 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Casings3 + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Casings4.java b/main/java/gregtech/common/blocks/GT_Block_Casings4.java new file mode 100644 index 0000000000..f533eb2cc2 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Casings4.java @@ -0,0 +1,78 @@ +/* 1: */ package gregtech.common.blocks; +/* 2: */ +/* 3: */ 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_Casings4 +/* 11: */ extends GT_Block_Casings_Abstract +/* 12: */ { +/* 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: */ +/* 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)); + ItemList.Casing_Fusion.set(new ItemStack(this,1,6)); + ItemList.Casing_Fusion2.set(new ItemStack(this,1,8)); + ItemList.Casing_Fusion_Coil.set(new ItemStack(this,1,7)); +/* 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_ROBUST_TUNGSTENSTEEL.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: */ } +/* 80: */ } \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java b/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java new file mode 100644 index 0000000000..e34cd45d50 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java @@ -0,0 +1,146 @@ +/* 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Casings_Abstract + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Concretes.java b/main/java/gregtech/common/blocks/GT_Block_Concretes.java new file mode 100644 index 0000000000..54c762f49a --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Concretes.java @@ -0,0 +1,110 @@ +/* 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Concretes + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Granites.java b/main/java/gregtech/common/blocks/GT_Block_Granites.java new file mode 100644 index 0000000000..a952e3631a --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Granites.java @@ -0,0 +1,86 @@ +/* 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: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.blocks.GT_Block_Granites + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/blocks/GT_Block_Machines.java b/main/java/gregtech/common/blocks/GT_Block_Machines.java new file mode 100644 index 0000000000..d4bf198851 --- /dev/null +++ b/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -0,0 +1,580 @@ +/* 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; +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; + +/* 19: */ import java.io.PrintStream; +/* 20: */ import java.util.ArrayList; +/* 21: */ import java.util.List; +/* 22: */ import java.util.Random; + +/* 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 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) && (!((IGregTechTileEnt