From 7224ac4299098c70efae9dbd04c50a97e3f5f583 Mon Sep 17 00:00:00 2001 From: Blood Asp Date: Thu, 23 Apr 2015 18:14:22 +0200 Subject: Initial Commit --- main/java/gregtech/common/tools/GT_Tool.java | 176 +++++++++++++++++++ main/java/gregtech/common/tools/GT_Tool_Axe.java | 152 +++++++++++++++++ .../common/tools/GT_Tool_BranchCutter.java | 106 ++++++++++++ .../common/tools/GT_Tool_ButcheryKnife.java | 105 ++++++++++++ .../gregtech/common/tools/GT_Tool_BuzzSaw.java | 87 ++++++++++ .../gregtech/common/tools/GT_Tool_Chainsaw_HV.java | 61 +++++++ .../gregtech/common/tools/GT_Tool_Chainsaw_LV.java | 111 ++++++++++++ .../gregtech/common/tools/GT_Tool_Chainsaw_MV.java | 61 +++++++ .../gregtech/common/tools/GT_Tool_Crowbar.java | 152 +++++++++++++++++ .../gregtech/common/tools/GT_Tool_Drill_HV.java | 63 +++++++ .../gregtech/common/tools/GT_Tool_Drill_LV.java | 137 +++++++++++++++ .../gregtech/common/tools/GT_Tool_Drill_MV.java | 63 +++++++ main/java/gregtech/common/tools/GT_Tool_File.java | 130 ++++++++++++++ .../gregtech/common/tools/GT_Tool_HardHammer.java | 188 +++++++++++++++++++++ main/java/gregtech/common/tools/GT_Tool_Hoe.java | 134 +++++++++++++++ .../gregtech/common/tools/GT_Tool_JackHammer.java | 120 +++++++++++++ main/java/gregtech/common/tools/GT_Tool_Knife.java | 65 +++++++ .../java/gregtech/common/tools/GT_Tool_Mortar.java | 130 ++++++++++++++ .../gregtech/common/tools/GT_Tool_Pickaxe.java | 133 +++++++++++++++ main/java/gregtech/common/tools/GT_Tool_Plow.java | 87 ++++++++++ .../gregtech/common/tools/GT_Tool_Plunger.java | 96 +++++++++++ .../gregtech/common/tools/GT_Tool_RollingPin.java | 71 ++++++++ main/java/gregtech/common/tools/GT_Tool_Saw.java | 148 ++++++++++++++++ main/java/gregtech/common/tools/GT_Tool_Scoop.java | 140 +++++++++++++++ .../gregtech/common/tools/GT_Tool_Screwdriver.java | 150 ++++++++++++++++ .../common/tools/GT_Tool_Screwdriver_LV.java | 38 +++++ main/java/gregtech/common/tools/GT_Tool_Sense.java | 86 ++++++++++ .../java/gregtech/common/tools/GT_Tool_Shovel.java | 122 +++++++++++++ .../gregtech/common/tools/GT_Tool_SoftHammer.java | 141 ++++++++++++++++ main/java/gregtech/common/tools/GT_Tool_Sword.java | 128 ++++++++++++++ .../common/tools/GT_Tool_UniversalSpade.java | 139 +++++++++++++++ .../gregtech/common/tools/GT_Tool_WireCutter.java | 125 ++++++++++++++ .../java/gregtech/common/tools/GT_Tool_Wrench.java | 150 ++++++++++++++++ .../gregtech/common/tools/GT_Tool_Wrench_HV.java | 73 ++++++++ .../gregtech/common/tools/GT_Tool_Wrench_LV.java | 80 +++++++++ .../gregtech/common/tools/GT_Tool_Wrench_MV.java | 73 ++++++++ 36 files changed, 4021 insertions(+) create mode 100644 main/java/gregtech/common/tools/GT_Tool.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Axe.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_BranchCutter.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Crowbar.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Drill_HV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Drill_LV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Drill_MV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_File.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_HardHammer.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Hoe.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_JackHammer.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Knife.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Mortar.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Pickaxe.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Plow.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Plunger.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_RollingPin.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Saw.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Scoop.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Screwdriver.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Screwdriver_LV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Sense.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Shovel.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_SoftHammer.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Sword.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_UniversalSpade.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_WireCutter.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Wrench.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Wrench_HV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Wrench_LV.java create mode 100644 main/java/gregtech/common/tools/GT_Tool_Wrench_MV.java (limited to 'main/java/gregtech/common/tools') diff --git a/main/java/gregtech/common/tools/GT_Tool.java b/main/java/gregtech/common/tools/GT_Tool.java new file mode 100644 index 0000000000..7af4bc3837 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool.java @@ -0,0 +1,176 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.damagesources.GT_DamageSources; +/* 5: */ import gregtech.api.interfaces.IToolStats; +/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool; + +/* 7: */ import java.util.List; +/* 8: */ import java.util.Map; + +/* 9: */ import net.minecraft.block.Block; +/* 10: */ import net.minecraft.enchantment.Enchantment; +/* 11: */ import net.minecraft.entity.Entity; +/* 12: */ import net.minecraft.entity.EntityLivingBase; +/* 13: */ import net.minecraft.entity.player.EntityPlayer; +/* 14: */ import net.minecraft.item.ItemStack; +/* 15: */ import net.minecraft.stats.AchievementList; +/* 16: */ import net.minecraft.util.DamageSource; +/* 17: */ import net.minecraft.util.EntityDamageSource; +/* 18: */ import net.minecraft.util.IChatComponent; +import net.minecraftforge.event.world.BlockEvent; +/* 19: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; +/* 20: */ +/* 21: */ public abstract class GT_Tool +/* 22: */ implements IToolStats +/* 23: */ { +/* 24: 23 */ public static final Enchantment[] FORTUNE_ENCHANTMENT = { Enchantment.fortune }; +/* 25: 24 */ public static final Enchantment[] LOOTING_ENCHANTMENT = { Enchantment.looting }; +/* 26: 25 */ public static final Enchantment[] ZERO_ENCHANTMENTS = new Enchantment[0]; +/* 27: 26 */ public static final int[] ZERO_ENCHANTMENT_LEVELS = new int[0]; +/* 28: */ +/* 29: */ public int getToolDamagePerBlockBreak() +/* 30: */ { +/* 31: 30 */ return 100; +/* 32: */ } +/* 33: */ +/* 34: */ public int getToolDamagePerDropConversion() +/* 35: */ { +/* 36: 35 */ return 100; +/* 37: */ } +/* 38: */ +/* 39: */ public int getToolDamagePerContainerCraft() +/* 40: */ { +/* 41: 40 */ return 800; +/* 42: */ } +/* 43: */ +/* 44: */ public int getToolDamagePerEntityAttack() +/* 45: */ { +/* 46: 45 */ return 200; +/* 47: */ } +/* 48: */ +/* 49: */ public float getSpeedMultiplier() +/* 50: */ { +/* 51: 50 */ return 1.0F; +/* 52: */ } +/* 53: */ +/* 54: */ public float getMaxDurabilityMultiplier() +/* 55: */ { +/* 56: 55 */ return 1.0F; +/* 57: */ } +/* 58: */ +/* 59: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity) +/* 60: */ { +/* 61: 60 */ return aOriginalHurtResistance; +/* 62: */ } +/* 63: */ +/* 64: */ public String getMiningSound() +/* 65: */ { +/* 66: 65 */ return null; +/* 67: */ } +/* 68: */ +/* 69: */ public String getCraftingSound() +/* 70: */ { +/* 71: 70 */ return null; +/* 72: */ } +/* 73: */ +/* 74: */ public String getEntityHitSound() +/* 75: */ { +/* 76: 75 */ return null; +/* 77: */ } +/* 78: */ +/* 79: */ public String getBreakingSound() +/* 80: */ { +/* 81: 80 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 82: */ } +/* 83: */ +/* 84: */ public int getBaseQuality() +/* 85: */ { +/* 86: 85 */ return 0; +/* 87: */ } +/* 88: */ +/* 89: */ public boolean canBlock() +/* 90: */ { +/* 91: 90 */ return false; +/* 92: */ } +/* 93: */ +/* 94: */ public boolean isCrowbar() +/* 95: */ { +/* 96: 95 */ return false; +/* 97: */ } +/* 98: */ +/* 99: */ public boolean isGrafter() +/* 100: */ { +/* 101:100 */ return false; +/* 102: */ } +/* 103: */ +/* 104: */ public boolean isWeapon() +/* 105: */ { +/* 106:105 */ return false; +/* 107: */ } +/* 108: */ +/* 109: */ public boolean isRangedWeapon() +/* 110: */ { +/* 111:110 */ return false; +/* 112: */ } +/* 113: */ +/* 114: */ public boolean isMiningTool() +/* 115: */ { +/* 116:115 */ return true; +/* 117: */ } +/* 118: */ +/* 119: */ public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity) +/* 120: */ { +/* 121:120 */ return GT_DamageSources.getCombatDamage((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer, (aEntity instanceof EntityLivingBase) ? getDeathMessage(aPlayer, (EntityLivingBase)aEntity) : null); +/* 122: */ } +/* 123: */ +/* 124: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 125: */ { +/* 126:124 */ return new EntityDamageSource((aPlayer instanceof EntityPlayer) ? "player" : "mob", aPlayer).func_151519_b(aEntity); +/* 127: */ } +/* 128: */ +/* 129: */ public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) +/* 130: */ { +/* 131:129 */ return 0; +/* 132: */ } +/* 133: */ +/* 134: */ public ItemStack getBrokenItem(ItemStack aStack) +/* 135: */ { +/* 136:134 */ return null; +/* 137: */ } +/* 138: */ +/* 139: */ public Enchantment[] getEnchantments(ItemStack aStack) +/* 140: */ { +/* 141:139 */ return ZERO_ENCHANTMENTS; +/* 142: */ } +/* 143: */ +/* 144: */ public int[] getEnchantmentLevels(ItemStack aStack) +/* 145: */ { +/* 146:144 */ return ZERO_ENCHANTMENT_LEVELS; +/* 147: */ } +/* 148: */ +/* 149: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer) +/* 150: */ { +/* 151:149 */ aPlayer.triggerAchievement(AchievementList.openInventory); +/* 152:150 */ aPlayer.triggerAchievement(AchievementList.mineWood); +/* 153:151 */ aPlayer.triggerAchievement(AchievementList.buildWorkBench); +/* 154: */ } +/* 155: */ +/* 156: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {} +/* 157: */ +/* 158: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) +/* 159: */ { +/* 160:161 */ return aOriginalDamage; +/* 161: */ } +/* 162: */ +/* 163: */ public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) +/* 164: */ { +/* 165:166 */ return aOriginalDamage; +/* 166: */ } +/* 167: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Axe.java b/main/java/gregtech/common/tools/GT_Tool_Axe.java new file mode 100644 index 0000000000..5f07ded782 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Axe.java @@ -0,0 +1,152 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +/* 5: */ import gregtech.api.enums.OrePrefixes; +/* 6: */ import gregtech.api.interfaces.IIconContainer; +/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool; + +/* 8: */ import java.util.List; +/* 9: */ import java.util.Map; + +/* 10: */ import net.minecraft.block.Block; +/* 11: */ import net.minecraft.block.material.Material; +/* 12: */ import net.minecraft.entity.EntityLivingBase; +/* 13: */ import net.minecraft.entity.player.EntityPlayer; +/* 14: */ import net.minecraft.item.ItemStack; +/* 15: */ import net.minecraft.util.ChatComponentText; +/* 16: */ import net.minecraft.util.EnumChatFormatting; +/* 17: */ import net.minecraft.util.IChatComponent; +/* 18: */ import net.minecraft.world.World; +import net.minecraftforge.event.world.BlockEvent; +/* 19: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; +/* 20: */ +/* 21: */ public class GT_Tool_Axe +/* 22: */ extends GT_Tool +/* 23: */ { +/* 24: */ public int getToolDamagePerBlockBreak() +/* 25: */ { +/* 26: 23 */ return 50; +/* 27: */ } +/* 28: */ +/* 29: */ public int getToolDamagePerDropConversion() +/* 30: */ { +/* 31: 28 */ return 100; +/* 32: */ } +/* 33: */ +/* 34: */ public int getToolDamagePerContainerCraft() +/* 35: */ { +/* 36: 33 */ return 100; +/* 37: */ } +/* 38: */ +/* 39: */ public int getToolDamagePerEntityAttack() +/* 40: */ { +/* 41: 38 */ return 200; +/* 42: */ } +/* 43: */ +/* 44: */ public int getBaseQuality() +/* 45: */ { +/* 46: 43 */ return 0; +/* 47: */ } +/* 48: */ +/* 49: */ public float getBaseDamage() +/* 50: */ { +/* 51: 48 */ return 3.0F; +/* 52: */ } +/* 53: */ +/* 54: */ public float getSpeedMultiplier() +/* 55: */ { +/* 56: 53 */ return 2.0F; +/* 57: */ } +/* 58: */ +/* 59: */ public float getMaxDurabilityMultiplier() +/* 60: */ { +/* 61: 58 */ return 1.0F; +/* 62: */ } +/* 63: */ +/* 64: */ public String getCraftingSound() +/* 65: */ { +/* 66: 63 */ return null; +/* 67: */ } +/* 68: */ +/* 69: */ public String getEntityHitSound() +/* 70: */ { +/* 71: 68 */ return null; +/* 72: */ } +/* 73: */ +/* 74: */ public String getBreakingSound() +/* 75: */ { +/* 76: 73 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 77: */ } +/* 78: */ +/* 79: */ public String getMiningSound() +/* 80: */ { +/* 81: 78 */ return null; +/* 82: */ } +/* 83: */ +/* 84: */ public boolean canBlock() +/* 85: */ { +/* 86: 83 */ return false; +/* 87: */ } +/* 88: */ +/* 89: */ public boolean isCrowbar() +/* 90: */ { +/* 91: 88 */ return false; +/* 92: */ } +/* 93: */ +/* 94: */ public boolean isWeapon() +/* 95: */ { +/* 96: 93 */ return true; +/* 97: */ } +/* 98: */ +/* 99: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 100: */ { +/* 101: 98 */ String tTool = aBlock.getHarvestTool(aMetaData); +/* 102: 99 */ return ((tTool != null) && (tTool.equals("axe"))) || (aBlock.getMaterial() == Material.wood); +/* 103: */ } +/* 104: */ +/* 105: */ public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) +/* 106: */ { +/* 107:104 */ int rAmount = 0; +/* 108:105 */ if ((GregTech_API.sTimber) && (!aPlayer.isSneaking()) && (OrePrefixes.log.contains(new ItemStack(aBlock, 1, aMetaData)))) +/* 109: */ { +/* 110:106 */ int tY = aY + 1; +/* 111:106 */ for (int tH = aPlayer.worldObj.getHeight(); tY < tH; tY++) +/* 112: */ { +/* 113:107 */ if ((aPlayer.worldObj.getBlock(aX, tY, aZ) != aBlock) || (!aPlayer.worldObj.func_147480_a(aX, tY, aZ, true))) { +/* 114: */ break; +/* 115: */ } +/* 116:107 */ rAmount++; +/* 117: */ } +/* 118: */ } +/* 119:110 */ return rAmount; +/* 120: */ } +/* 121: */ +/* 122: */ public ItemStack getBrokenItem(ItemStack aStack) +/* 123: */ { +/* 124:115 */ return null; +/* 125: */ } +/* 126: */ +/* 127: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 128: */ { +/* 129:120 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.toolHeadAxe.mTextureIndex] : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mIconSet.mTextures[OrePrefixes.stick.mTextureIndex]; +/* 130: */ } +/* 131: */ +/* 132: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 133: */ { +/* 134:125 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 135: */ } +/* 136: */ +/* 137: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {} +/* 138: */ +/* 139: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 140: */ { +/* 141:135 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been chopped by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 142: */ } +/* 143: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Axe + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java b/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java new file mode 100644 index 0000000000..2a26e934f6 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_BranchCutter.java @@ -0,0 +1,106 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 4: */ import gregtech.api.enums.Textures.ItemIcons; +/* 5: */ import gregtech.api.interfaces.IIconContainer; +/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool; +/* 7: */ import gregtech.api.util.GT_ModHandler; +/* 8: */ import gregtech.api.util.GT_Utility; + +/* 9: */ import java.util.List; +/* 10: */ import java.util.Random; + +/* 11: */ import net.minecraft.block.Block; +/* 12: */ import net.minecraft.block.material.Material; +/* 13: */ import net.minecraft.entity.EntityLivingBase; +/* 14: */ import net.minecraft.entity.player.EntityPlayer; +/* 15: */ import net.minecraft.init.Blocks; +/* 16: */ import net.minecraft.init.Items; +/* 17: */ import net.minecraft.item.Item; +/* 18: */ import net.minecraft.item.ItemStack; +/* 19: */ import net.minecraft.util.ChatComponentText; +/* 20: */ import net.minecraft.util.EnumChatFormatting; +/* 21: */ import net.minecraft.util.IChatComponent; +/* 22: */ import net.minecraft.world.World; +import net.minecraftforge.event.world.BlockEvent; +/* 23: */ import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; +/* 24: */ +/* 25: */ public class GT_Tool_BranchCutter +/* 26: */ extends GT_Tool +/* 27: */ { +/* 28: */ public float getBaseDamage() +/* 29: */ { +/* 30:26 */ return 2.5F; +/* 31: */ } +/* 32: */ +/* 33: */ public float getSpeedMultiplier() +/* 34: */ { +/* 35:31 */ return 0.25F; +/* 36: */ } +/* 37: */ +/* 38: */ public float getMaxDurabilityMultiplier() +/* 39: */ { +/* 40:36 */ return 0.25F; +/* 41: */ } +/* 42: */ +/* 43: */ public boolean isGrafter() +/* 44: */ { +/* 45:41 */ return true; +/* 46: */ } +/* 47: */ +/* 48: */ public int convertBlockDrops(List aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) +/* 49: */ { +/* 50:46 */ if (aBlock.getMaterial() == Material.leaves) +/* 51: */ { +/* 52:47 */ aEvent.dropChance = Math.min(1.0F, Math.max(aEvent.dropChance, (aStack.getItem().getHarvestLevel(aStack, "") + 1) * 0.2F)); +/* 53:48 */ if (aBlock == Blocks.leaves) +/* 54: */ { +/* 55:49 */ aDrops.clear(); +/* 56:50 */ if (((aMetaData & 0x3) == 0) && (aPlayer.worldObj.rand.nextInt(9) <= aFortune * 2)) { +/* 57:50 */ aDrops.add(new ItemStack(Items.apple, 1, 0)); +/* 58: */ } else { +/* 59:50 */ aDrops.add(new ItemStack(Blocks.sapling, 1, aMetaData & 0x3)); +/* 60: */ } +/* 61: */ } +/* 62:51 */ else if (aBlock == Blocks.leaves2) +/* 63: */ { +/* 64:52 */ aDrops.clear(); +/* 65:53 */ aDrops.add(new ItemStack(Blocks.sapling, 1, (aMetaData & 0x3) + 4)); +/* 66: */ } +/* 67:54 */ else if (aBlock == GT_Utility.getBlockFromStack(GT_ModHandler.getIC2Item("rubberLeaves", 1L))) +/* 68: */ { +/* 69:55 */ aDrops.clear(); +/* 70:56 */ aDrops.add(GT_ModHandler.getIC2Item("rubberSapling", 1L)); +/* 71: */ } +/* 72: */ } +/* 73:59 */ return 0; +/* 74: */ } +/* 75: */ +/* 76: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 77: */ { +/* 78:64 */ String tTool = aBlock.getHarvestTool(aMetaData); +/* 79:65 */ return ((tTool != null) && (tTool.equals("grafter"))) || (aBlock.getMaterial() == Material.leaves); +/* 80: */ } +/* 81: */ +/* 82: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 83: */ { +/* 84:70 */ return aIsToolHead ? Textures.ItemIcons.GRAFTER : null; +/* 85: */ } +/* 86: */ +/* 87: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 88: */ { +/* 89:75 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 90: */ } +/* 91: */ +/* 92: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 93: */ { +/* 94:80 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been trimmed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 95: */ } +/* 96: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_BranchCutter + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java b/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java new file mode 100644 index 0000000000..2e3a4d9ef0 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_ButcheryKnife.java @@ -0,0 +1,105 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 4: */ import gregtech.api.enums.Textures.ItemIcons; +/* 5: */ import gregtech.api.interfaces.IIconContainer; +/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool; +/* 7: */ import net.minecraft.block.Block; +/* 8: */ import net.minecraft.enchantment.Enchantment; +/* 9: */ import net.minecraft.entity.Entity; +/* 10: */ import net.minecraft.entity.EntityLivingBase; +/* 11: */ import net.minecraft.item.ItemStack; +/* 12: */ import net.minecraft.util.ChatComponentText; +/* 13: */ import net.minecraft.util.EnumChatFormatting; +/* 14: */ import net.minecraft.util.IChatComponent; +/* 15: */ +/* 16: */ public class GT_Tool_ButcheryKnife +/* 17: */ extends GT_Tool +/* 18: */ { +/* 19: */ public int getToolDamagePerBlockBreak() +/* 20: */ { +/* 21:18 */ return 200; +/* 22: */ } +/* 23: */ +/* 24: */ public int getToolDamagePerDropConversion() +/* 25: */ { +/* 26:23 */ return 100; +/* 27: */ } +/* 28: */ +/* 29: */ public int getToolDamagePerContainerCraft() +/* 30: */ { +/* 31:28 */ return 100; +/* 32: */ } +/* 33: */ +/* 34: */ public int getToolDamagePerEntityAttack() +/* 35: */ { +/* 36:33 */ return 400; +/* 37: */ } +/* 38: */ +/* 39: */ public float getBaseDamage() +/* 40: */ { +/* 41:38 */ return 1.0F; +/* 42: */ } +/* 43: */ +/* 44: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity) +/* 45: */ { +/* 46:43 */ return aOriginalHurtResistance * 2; +/* 47: */ } +/* 48: */ +/* 49: */ public float getSpeedMultiplier() +/* 50: */ { +/* 51:48 */ return 0.1F; +/* 52: */ } +/* 53: */ +/* 54: */ public float getMaxDurabilityMultiplier() +/* 55: */ { +/* 56:53 */ return 1.0F; +/* 57: */ } +/* 58: */ +/* 59: */ public boolean isWeapon() +/* 60: */ { +/* 61:58 */ return true; +/* 62: */ } +/* 63: */ +/* 64: */ public boolean isMiningTool() +/* 65: */ { +/* 66:63 */ return false; +/* 67: */ } +/* 68: */ +/* 69: */ public Enchantment[] getEnchantments(ItemStack aStack) +/* 70: */ { +/* 71:68 */ return LOOTING_ENCHANTMENT; +/* 72: */ } +/* 73: */ +/* 74: */ public int[] getEnchantmentLevels(ItemStack aStack) +/* 75: */ { +/* 76:73 */ return new int[] { (2 + GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mToolQuality) / 2 }; +/* 77: */ } +/* 78: */ +/* 79: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 80: */ { +/* 81:78 */ return aIsToolHead ? Textures.ItemIcons.BUTCHERYKNIFE : null; +/* 82: */ } +/* 83: */ +/* 84: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 85: */ { +/* 86:83 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 87: */ } +/* 88: */ +/* 89: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 90: */ { +/* 91:88 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has butchered " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 92: */ } +/* 93: */ +/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 95: */ { +/* 96:93 */ return false; +/* 97: */ } +/* 98: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_ButcheryKnife + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java b/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java new file mode 100644 index 0000000000..16ba45c220 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_BuzzSaw.java @@ -0,0 +1,87 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 5: */ import gregtech.api.enums.Textures.ItemIcons; +/* 6: */ import gregtech.api.interfaces.IIconContainer; +/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool; + +/* 8: */ import java.util.Map; + +/* 9: */ import net.minecraft.block.Block; +/* 10: */ import net.minecraft.entity.EntityLivingBase; +/* 11: */ import net.minecraft.item.ItemStack; +/* 12: */ import net.minecraft.util.ChatComponentText; +/* 13: */ import net.minecraft.util.EnumChatFormatting; +/* 14: */ import net.minecraft.util.IChatComponent; +/* 15: */ +/* 16: */ public class GT_Tool_BuzzSaw +/* 17: */ extends GT_Tool_Saw +/* 18: */ { +/* 19: */ public int getToolDamagePerContainerCraft() +/* 20: */ { +/* 21:18 */ return 100; +/* 22: */ } +/* 23: */ +/* 24: */ public int getToolDamagePerEntityAttack() +/* 25: */ { +/* 26:23 */ return 300; +/* 27: */ } +/* 28: */ +/* 29: */ public float getBaseDamage() +/* 30: */ { +/* 31:28 */ return 1.0F; +/* 32: */ } +/* 33: */ +/* 34: */ public float getMaxDurabilityMultiplier() +/* 35: */ { +/* 36:33 */ return 1.0F; +/* 37: */ } +/* 38: */ +/* 39: */ public String getCraftingSound() +/* 40: */ { +/* 41:38 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104)); +/* 42: */ } +/* 43: */ +/* 44: */ public String getEntityHitSound() +/* 45: */ { +/* 46:43 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105)); +/* 47: */ } +/* 48: */ +/* 49: */ public String getBreakingSound() +/* 50: */ { +/* 51:48 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 52: */ } +/* 53: */ +/* 54: */ public String getMiningSound() +/* 55: */ { +/* 56:53 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104)); +/* 57: */ } +/* 58: */ +/* 59: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 60: */ { +/* 61:58 */ return false; +/* 62: */ } +/* 63: */ +/* 64: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 65: */ { +/* 66:63 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadBuzzSaw.mTextureIndex] : Textures.ItemIcons.HANDLE_BUZZSAW; +/* 67: */ } +/* 68: */ +/* 69: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 70: */ { +/* 71:68 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 72: */ } +/* 73: */ +/* 74: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 75: */ { +/* 76:73 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got buzzed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 77: */ } +/* 78: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_BuzzSaw + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java new file mode 100644 index 0000000000..21182beee2 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_HV.java @@ -0,0 +1,61 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.enums.Textures; +import gregtech.api.enums.Textures.ItemIcons; +/* 4: */ import gregtech.api.interfaces.IIconContainer; +/* 5: */ import net.minecraft.item.ItemStack; +/* 6: */ +/* 7: */ public class GT_Tool_Chainsaw_HV +/* 8: */ extends GT_Tool_Chainsaw_LV +/* 9: */ { +/* 10: */ public int getToolDamagePerBlockBreak() +/* 11: */ { +/* 12:12 */ return 800; +/* 13: */ } +/* 14: */ +/* 15: */ public int getToolDamagePerDropConversion() +/* 16: */ { +/* 17:17 */ return 1600; +/* 18: */ } +/* 19: */ +/* 20: */ public int getToolDamagePerContainerCraft() +/* 21: */ { +/* 22:22 */ return 12800; +/* 23: */ } +/* 24: */ +/* 25: */ public int getToolDamagePerEntityAttack() +/* 26: */ { +/* 27:27 */ return 3200; +/* 28: */ } +/* 29: */ +/* 30: */ public int getBaseQuality() +/* 31: */ { +/* 32:32 */ return 1; +/* 33: */ } +/* 34: */ +/* 35: */ public float getBaseDamage() +/* 36: */ { +/* 37:37 */ return 4.0F; +/* 38: */ } +/* 39: */ +/* 40: */ public float getSpeedMultiplier() +/* 41: */ { +/* 42:42 */ return 4.0F; +/* 43: */ } +/* 44: */ +/* 45: */ public float getMaxDurabilityMultiplier() +/* 46: */ { +/* 47:47 */ return 4.0F; +/* 48: */ } +/* 49: */ +/* 50: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 51: */ { +/* 52:52 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV; +/* 53: */ } +/* 54: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Chainsaw_HV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java new file mode 100644 index 0000000000..391177bd66 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_LV.java @@ -0,0 +1,111 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 5: */ import gregtech.api.enums.Textures.ItemIcons; +/* 6: */ import gregtech.api.interfaces.IIconContainer; +/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool; + +/* 8: */ import java.util.Map; + +/* 9: */ import net.minecraft.entity.EntityLivingBase; +/* 10: */ import net.minecraft.item.ItemStack; +/* 11: */ import net.minecraft.util.ChatComponentText; +/* 12: */ import net.minecraft.util.EnumChatFormatting; +/* 13: */ import net.minecraft.util.IChatComponent; +/* 14: */ +/* 15: */ public class GT_Tool_Chainsaw_LV +/* 16: */ extends GT_Tool_Saw +/* 17: */ { +/* 18: */ public int getToolDamagePerBlockBreak() +/* 19: */ { +/* 20:17 */ return 50; +/* 21: */ } +/* 22: */ +/* 23: */ public int getToolDamagePerDropConversion() +/* 24: */ { +/* 25:22 */ return 100; +/* 26: */ } +/* 27: */ +/* 28: */ public int getToolDamagePerContainerCraft() +/* 29: */ { +/* 30:27 */ return 800; +/* 31: */ } +/* 32: */ +/* 33: */ public int getToolDamagePerEntityAttack() +/* 34: */ { +/* 35:32 */ return 200; +/* 36: */ } +/* 37: */ +/* 38: */ public int getBaseQuality() +/* 39: */ { +/* 40:37 */ return 0; +/* 41: */ } +/* 42: */ +/* 43: */ public float getBaseDamage() +/* 44: */ { +/* 45:42 */ return 3.0F; +/* 46: */ } +/* 47: */ +/* 48: */ public float getSpeedMultiplier() +/* 49: */ { +/* 50:47 */ return 2.0F; +/* 51: */ } +/* 52: */ +/* 53: */ public float getMaxDurabilityMultiplier() +/* 54: */ { +/* 55:52 */ return 1.0F; +/* 56: */ } +/* 57: */ +/* 58: */ public String getCraftingSound() +/* 59: */ { +/* 60:57 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104)); +/* 61: */ } +/* 62: */ +/* 63: */ public String getEntityHitSound() +/* 64: */ { +/* 65:62 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(105)); +/* 66: */ } +/* 67: */ +/* 68: */ public String getBreakingSound() +/* 69: */ { +/* 70:67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 71: */ } +/* 72: */ +/* 73: */ public String getMiningSound() +/* 74: */ { +/* 75:72 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(104)); +/* 76: */ } +/* 77: */ +/* 78: */ public boolean canBlock() +/* 79: */ { +/* 80:77 */ return false; +/* 81: */ } +/* 82: */ +/* 83: */ public boolean isWeapon() +/* 84: */ { +/* 85:82 */ return true; +/* 86: */ } +/* 87: */ +/* 88: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 89: */ { +/* 90:87 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV; +/* 91: */ } +/* 92: */ +/* 93: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 94: */ { +/* 95:92 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 96: */ } +/* 97: */ +/* 98: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 99: */ { +/* :0:97 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was massacred by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* :1: */ } +/* :2: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Chainsaw_LV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java new file mode 100644 index 0000000000..f6b5dc4ac7 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Chainsaw_MV.java @@ -0,0 +1,61 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.enums.Textures; +import gregtech.api.enums.Textures.ItemIcons; +/* 4: */ import gregtech.api.interfaces.IIconContainer; +/* 5: */ import net.minecraft.item.ItemStack; +/* 6: */ +/* 7: */ public class GT_Tool_Chainsaw_MV +/* 8: */ extends GT_Tool_Chainsaw_LV +/* 9: */ { +/* 10: */ public int getToolDamagePerBlockBreak() +/* 11: */ { +/* 12:12 */ return 200; +/* 13: */ } +/* 14: */ +/* 15: */ public int getToolDamagePerDropConversion() +/* 16: */ { +/* 17:17 */ return 400; +/* 18: */ } +/* 19: */ +/* 20: */ public int getToolDamagePerContainerCraft() +/* 21: */ { +/* 22:22 */ return 3200; +/* 23: */ } +/* 24: */ +/* 25: */ public int getToolDamagePerEntityAttack() +/* 26: */ { +/* 27:27 */ return 800; +/* 28: */ } +/* 29: */ +/* 30: */ public int getBaseQuality() +/* 31: */ { +/* 32:32 */ return 1; +/* 33: */ } +/* 34: */ +/* 35: */ public float getBaseDamage() +/* 36: */ { +/* 37:37 */ return 3.5F; +/* 38: */ } +/* 39: */ +/* 40: */ public float getSpeedMultiplier() +/* 41: */ { +/* 42:42 */ return 3.0F; +/* 43: */ } +/* 44: */ +/* 45: */ public float getMaxDurabilityMultiplier() +/* 46: */ { +/* 47:47 */ return 2.0F; +/* 48: */ } +/* 49: */ +/* 50: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 51: */ { +/* 52:52 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadChainsaw.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV; +/* 53: */ } +/* 54: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Chainsaw_MV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Crowbar.java b/main/java/gregtech/common/tools/GT_Tool_Crowbar.java new file mode 100644 index 0000000000..ce2b45b4d9 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Crowbar.java @@ -0,0 +1,152 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 5: */ import gregtech.api.enums.Textures.ItemIcons; +/* 6: */ import gregtech.api.interfaces.IIconContainer; +/* 7: */ import gregtech.api.interfaces.IToolStats; +/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool; +/* 9: */ import gregtech.common.items.GT_MetaGenerated_Tool_01; +/* 10: */ import gregtech.common.items.behaviors.Behaviour_Crowbar; + +/* 11: */ import java.util.Collection; +/* 12: */ import java.util.HashMap; +/* 13: */ import java.util.Iterator; +/* 14: */ import java.util.Map; + +/* 15: */ import net.minecraft.block.Block; +/* 16: */ import net.minecraft.block.material.Material; +/* 17: */ import net.minecraft.entity.EntityLivingBase; +/* 18: */ import net.minecraft.item.ItemStack; +/* 19: */ import net.minecraft.util.ChatComponentText; +/* 20: */ import net.minecraft.util.EnumChatFormatting; +/* 21: */ import net.minecraft.util.IChatComponent; +/* 22: */ +/* 23: */ public class GT_Tool_Crowbar +/* 24: */ extends GT_Tool +/* 25: */ { +/* 26: */ public int getToolDamagePerBlockBreak() +/* 27: */ { +/* 28: 21 */ return 50; +/* 29: */ } +/* 30: */ +/* 31: */ public int getToolDamagePerDropConversion() +/* 32: */ { +/* 33: 26 */ return 100; +/* 34: */ } +/* 35: */ +/* 36: */ public int getToolDamagePerContainerCraft() +/* 37: */ { +/* 38: 31 */ return 100; +/* 39: */ } +/* 40: */ +/* 41: */ public int getToolDamagePerEntityAttack() +/* 42: */ { +/* 43: 36 */ return 200; +/* 44: */ } +/* 45: */ +/* 46: */ public int getBaseQuality() +/* 47: */ { +/* 48: 41 */ return 0; +/* 49: */ } +/* 50: */ +/* 51: */ public float getBaseDamage() +/* 52: */ { +/* 53: 46 */ return 2.0F; +/* 54: */ } +/* 55: */ +/* 56: */ public float getSpeedMultiplier() +/* 57: */ { +/* 58: 51 */ return 1.0F; +/* 59: */ } +/* 60: */ +/* 61: */ public float getMaxDurabilityMultiplier() +/* 62: */ { +/* 63: 56 */ return 1.0F; +/* 64: */ } +/* 65: */ +/* 66: */ public String getCraftingSound() +/* 67: */ { +/* 68: 61 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 69: */ } +/* 70: */ +/* 71: */ public String getEntityHitSound() +/* 72: */ { +/* 73: 66 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 74: */ } +/* 75: */ +/* 76: */ public String getBreakingSound() +/* 77: */ { +/* 78: 71 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 79: */ } +/* 80: */ +/* 81: */ public String getMiningSound() +/* 82: */ { +/* 83: 76 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 84: */ } +/* 85: */ +/* 86: */ public boolean canBlock() +/* 87: */ { +/* 88: 81 */ return true; +/* 89: */ } +/* 90: */ +/* 91: */ public boolean isCrowbar() +/* 92: */ { +/* 93: 86 */ return true; +/* 94: */ } +/* 95: */ +/* 96: */ public boolean isWeapon() +/* 97: */ { +/* 98: 91 */ return true; +/* 99: */ } +/* 100: */ +/* 101: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 102: */ { +/* 103: 96 */ if (aBlock.getMaterial() == Material.circuits) { +/* 104: 96 */ return true; +/* 105: */ } +/* 106: 97 */ String tTool = aBlock.getHarvestTool(aMetaData); +/* 107: 98 */ if ((tTool == null) || (tTool.equals(""))) +/* 108: */ { +/* 109: 99 */ for (Iterator i$ = GT_MetaGenerated_Tool_01.INSTANCE.mToolStats.values().iterator(); i$.hasNext(); i$.next()) +/* 110: */ { +/* 111: 99 */ IToolStats tStat = (IToolStats)i$; +/* 112: 99 */ if (((tStat instanceof GT_Tool_Crowbar)) || (!tStat.isMinableBlock(aBlock, aMetaData))) {} +/* 113: */ } +/* 114:100 */ return true; +/* 115: */ } +/* 116:102 */ return tTool.equals("crowbar"); +/* 117: */ } +/* 118: */ +/* 119: */ public ItemStack getBrokenItem(ItemStack aStack) +/* 120: */ { +/* 121:107 */ return null; +/* 122: */ } +/* 123: */ +/* 124: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 125: */ { +/* 126:112 */ return aIsToolHead ? Textures.ItemIcons.CROWBAR : null; +/* 127: */ } +/* 128: */ +/* 129: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 130: */ { +/* 131:117 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null; +/* 132: */ } +/* 133: */ +/* 134: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) +/* 135: */ { +/* 136:122 */ aItem.addItemBehavior(aID, new Behaviour_Crowbar(1, 1000)); +/* 137: */ } +/* 138: */ +/* 139: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 140: */ { +/* 141:127 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " was removed by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 142: */ } +/* 143: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Crowbar + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java new file mode 100644 index 0000000000..a71722a17d --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_HV.java @@ -0,0 +1,63 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.GT_Mod; +import gregtech.api.enums.Textures; +/* 4: */ import gregtech.api.enums.Textures.ItemIcons; +/* 5: */ import gregtech.api.interfaces.IIconContainer; +/* 6: */ import gregtech.common.GT_Proxy; +/* 7: */ import net.minecraft.item.ItemStack; +/* 8: */ +/* 9: */ public class GT_Tool_Drill_HV +/* 10: */ extends GT_Tool_Drill_LV +/* 11: */ { +/* 12: */ public int getToolDamagePerBlockBreak() +/* 13: */ { +/* 14:13 */ return GT_Mod.gregtechproxy.mHardRock ? 400 : 800; +/* 15: */ } +/* 16: */ +/* 17: */ public int getToolDamagePerDropConversion() +/* 18: */ { +/* 19:18 */ return 1600; +/* 20: */ } +/* 21: */ +/* 22: */ public int getToolDamagePerContainerCraft() +/* 23: */ { +/* 24:23 */ return 12800; +/* 25: */ } +/* 26: */ +/* 27: */ public int getToolDamagePerEntityAttack() +/* 28: */ { +/* 29:28 */ return 3200; +/* 30: */ } +/* 31: */ +/* 32: */ public int getBaseQuality() +/* 33: */ { +/* 34:33 */ return 1; +/* 35: */ } +/* 36: */ +/* 37: */ public float getBaseDamage() +/* 38: */ { +/* 39:38 */ return 3.0F; +/* 40: */ } +/* 41: */ +/* 42: */ public float getSpeedMultiplier() +/* 43: */ { +/* 44:43 */ return 9.0F; +/* 45: */ } +/* 46: */ +/* 47: */ public float getMaxDurabilityMultiplier() +/* 48: */ { +/* 49:48 */ return 4.0F; +/* 50: */ } +/* 51: */ +/* 52: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 53: */ { +/* 54:53 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_HV; +/* 55: */ } +/* 56: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Drill_HV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java new file mode 100644 index 0000000000..941b3c037b --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_LV.java @@ -0,0 +1,137 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.GT_Mod; +/* 4: */ import gregtech.api.GregTech_API; +/* 5: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 6: */ import gregtech.api.enums.Textures.ItemIcons; +/* 7: */ import gregtech.api.interfaces.IIconContainer; +/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool; +/* 9: */ import gregtech.common.GT_Proxy; + +/* 10: */ import java.util.Map; + +/* 11: */ import net.minecraft.block.Block; +/* 12: */ import net.minecraft.block.material.Material; +/* 13: */ import net.minecraft.entity.EntityLivingBase; +/* 14: */ import net.minecraft.entity.player.EntityPlayer; +/* 15: */ import net.minecraft.item.ItemStack; +/* 16: */ import net.minecraft.stats.AchievementList; +/* 17: */ import net.minecraft.util.ChatComponentText; +/* 18: */ import net.minecraft.util.EnumChatFormatting; +/* 19: */ import net.minecraft.util.IChatComponent; +/* 20: */ +/* 21: */ public class GT_Tool_Drill_LV +/* 22: */ extends GT_Tool +/* 23: */ { +/* 24: */ public int getToolDamagePerBlockBreak() +/* 25: */ { +/* 26: 22 */ return GT_Mod.gregtechproxy.mHardRock ? 25 : 50; +/* 27: */ } +/* 28: */ +/* 29: */ public int getToolDamagePerDropConversion() +/* 30: */ { +/* 31: 27 */ return 100; +/* 32: */ } +/* 33: */ +/* 34: */ public int getToolDamagePerContainerCraft() +/* 35: */ { +/* 36: 32 */ return 100; +/* 37: */ } +/* 38: */ +/* 39: */ public int getToolDamagePerEntityAttack() +/* 40: */ { +/* 41: 37 */ return 200; +/* 42: */ } +/* 43: */ +/* 44: */ public int getBaseQuality() +/* 45: */ { +/* 46: 42 */ return 0; +/* 47: */ } +/* 48: */ +/* 49: */ public float getBaseDamage() +/* 50: */ { +/* 51: 47 */ return 2.0F; +/* 52: */ } +/* 53: */ +/* 54: */ public float getSpeedMultiplier() +/* 55: */ { +/* 56: 52 */ return 3.0F; +/* 57: */ } +/* 58: */ +/* 59: */ public float getMaxDurabilityMultiplier() +/* 60: */ { +/* 61: 57 */ return 1.0F; +/* 62: */ } +/* 63: */ +/* 64: */ public String getCraftingSound() +/* 65: */ { +/* 66: 62 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106)); +/* 67: */ } +/* 68: */ +/* 69: */ public String getEntityHitSound() +/* 70: */ { +/* 71: 67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106)); +/* 72: */ } +/* 73: */ +/* 74: */ public String getBreakingSound() +/* 75: */ { +/* 76: 72 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106)); +/* 77: */ } +/* 78: */ +/* 79: */ public String getMiningSound() +/* 80: */ { +/* 81: 77 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(106)); +/* 82: */ } +/* 83: */ +/* 84: */ public boolean canBlock() +/* 85: */ { +/* 86: 82 */ return false; +/* 87: */ } +/* 88: */ +/* 89: */ public boolean isCrowbar() +/* 90: */ { +/* 91: 87 */ return false; +/* 92: */ } +/* 93: */ +/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 95: */ { +/* 96: 92 */ String tTool = aBlock.getHarvestTool(aMetaData); +/* 97: 93 */ return ((tTool != null) && ((tTool.equals("pickaxe")) || (tTool.equals("shovel")))) || (aBlock.getMaterial() == Material.rock) || (aBlock.getMaterial() == Material.iron) || (aBlock.getMaterial() == Material.anvil) || (aBlock.getMaterial() == Material.sand) || (aBlock.getMaterial() == Material.grass) || (aBlock.getMaterial() == Material.ground) || (aBlock.getMaterial() == Material.snow) || (aBlock.getMaterial() == Material.clay) || (aBlock.getMaterial() == Material.glass); +/* 98: */ } +/* 99: */ +/* 100: */ public ItemStack getBrokenItem(ItemStack aStack) +/* 101: */ { +/* 102: 98 */ return null; +/* 103: */ } +/* 104: */ +/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 106: */ { +/* 107:103 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_LV; +/* 108: */ } +/* 109: */ +/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 111: */ { +/* 112:108 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 113: */ } +/* 114: */ +/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {} +/* 116: */ +/* 117: */ public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer) +/* 118: */ { +/* 119:118 */ super.onToolCrafted(aStack, aPlayer); +/* 120:119 */ aPlayer.triggerAchievement(AchievementList.buildPickaxe); +/* 121:120 */ aPlayer.triggerAchievement(AchievementList.buildBetterPickaxe); +/* 122: */ } +/* 123: */ +/* 124: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 125: */ { +/* 126:125 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got the Drill! (by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + ")"); +/* 127: */ } +/* 128: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Drill_LV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java b/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java new file mode 100644 index 0000000000..05821fa9e2 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_Drill_MV.java @@ -0,0 +1,63 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.GT_Mod; +import gregtech.api.enums.Textures; +/* 4: */ import gregtech.api.enums.Textures.ItemIcons; +/* 5: */ import gregtech.api.interfaces.IIconContainer; +/* 6: */ import gregtech.common.GT_Proxy; +/* 7: */ import net.minecraft.item.ItemStack; +/* 8: */ +/* 9: */ public class GT_Tool_Drill_MV +/* 10: */ extends GT_Tool_Drill_LV +/* 11: */ { +/* 12: */ public int getToolDamagePerBlockBreak() +/* 13: */ { +/* 14:13 */ return GT_Mod.gregtechproxy.mHardRock ? 100 : 200; +/* 15: */ } +/* 16: */ +/* 17: */ public int getToolDamagePerDropConversion() +/* 18: */ { +/* 19:18 */ return 400; +/* 20: */ } +/* 21: */ +/* 22: */ public int getToolDamagePerContainerCraft() +/* 23: */ { +/* 24:23 */ return 3200; +/* 25: */ } +/* 26: */ +/* 27: */ public int getToolDamagePerEntityAttack() +/* 28: */ { +/* 29:28 */ return 800; +/* 30: */ } +/* 31: */ +/* 32: */ public int getBaseQuality() +/* 33: */ { +/* 34:33 */ return 1; +/* 35: */ } +/* 36: */ +/* 37: */ public float getBaseDamage() +/* 38: */ { +/* 39:38 */ return 2.5F; +/* 40: */ } +/* 41: */ +/* 42: */ public float getSpeedMultiplier() +/* 43: */ { +/* 44:43 */ return 6.0F; +/* 45: */ } +/* 46: */ +/* 47: */ public float getMaxDurabilityMultiplier() +/* 48: */ { +/* 49:48 */ return 2.0F; +/* 50: */ } +/* 51: */ +/* 52: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 53: */ { +/* 54:53 */ return aIsToolHead ? gregtech.api.items.GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadDrill.mTextureIndex] : Textures.ItemIcons.POWER_UNIT_MV; +/* 55: */ } +/* 56: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_Drill_MV + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_File.java b/main/java/gregtech/common/tools/GT_Tool_File.java new file mode 100644 index 0000000000..a1b78fe98b --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_File.java @@ -0,0 +1,130 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +import gregtech.api.enums.Textures; +/* 5: */ import gregtech.api.enums.Textures.ItemIcons; +/* 6: */ import gregtech.api.interfaces.IIconContainer; +/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool; + +/* 8: */ import java.util.Map; + +/* 9: */ import net.minecraft.block.Block; +/* 10: */ import net.minecraft.entity.EntityLivingBase; +/* 11: */ import net.minecraft.item.ItemStack; +/* 12: */ import net.minecraft.util.ChatComponentText; +/* 13: */ import net.minecraft.util.EnumChatFormatting; +/* 14: */ import net.minecraft.util.IChatComponent; +/* 15: */ +/* 16: */ public class GT_Tool_File +/* 17: */ extends GT_Tool +/* 18: */ { +/* 19: */ public int getToolDamagePerBlockBreak() +/* 20: */ { +/* 21: 18 */ return 50; +/* 22: */ } +/* 23: */ +/* 24: */ public int getToolDamagePerDropConversion() +/* 25: */ { +/* 26: 23 */ return 100; +/* 27: */ } +/* 28: */ +/* 29: */ public int getToolDamagePerContainerCraft() +/* 30: */ { +/* 31: 28 */ return 400; +/* 32: */ } +/* 33: */ +/* 34: */ public int getToolDamagePerEntityAttack() +/* 35: */ { +/* 36: 33 */ return 200; +/* 37: */ } +/* 38: */ +/* 39: */ public int getBaseQuality() +/* 40: */ { +/* 41: 38 */ return 0; +/* 42: */ } +/* 43: */ +/* 44: */ public float getBaseDamage() +/* 45: */ { +/* 46: 43 */ return 1.5F; +/* 47: */ } +/* 48: */ +/* 49: */ public float getSpeedMultiplier() +/* 50: */ { +/* 51: 48 */ return 1.0F; +/* 52: */ } +/* 53: */ +/* 54: */ public float getMaxDurabilityMultiplier() +/* 55: */ { +/* 56: 53 */ return 1.0F; +/* 57: */ } +/* 58: */ +/* 59: */ public String getCraftingSound() +/* 60: */ { +/* 61: 58 */ return null; +/* 62: */ } +/* 63: */ +/* 64: */ public String getEntityHitSound() +/* 65: */ { +/* 66: 63 */ return null; +/* 67: */ } +/* 68: */ +/* 69: */ public String getBreakingSound() +/* 70: */ { +/* 71: 68 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); +/* 72: */ } +/* 73: */ +/* 74: */ public String getMiningSound() +/* 75: */ { +/* 76: 73 */ return null; +/* 77: */ } +/* 78: */ +/* 79: */ public boolean canBlock() +/* 80: */ { +/* 81: 78 */ return true; +/* 82: */ } +/* 83: */ +/* 84: */ public boolean isCrowbar() +/* 85: */ { +/* 86: 83 */ return false; +/* 87: */ } +/* 88: */ +/* 89: */ public boolean isMiningTool() +/* 90: */ { +/* 91: 88 */ return false; +/* 92: */ } +/* 93: */ +/* 94: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) +/* 95: */ { +/* 96: 93 */ String tTool = aBlock.getHarvestTool(aMetaData); +/* 97: 94 */ return (tTool != null) && (tTool.equals("file")); +/* 98: */ } +/* 99: */ +/* 100: */ public ItemStack getBrokenItem(ItemStack aStack) +/* 101: */ { +/* 102: 99 */ return null; +/* 103: */ } +/* 104: */ +/* 105: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) +/* 106: */ { +/* 107:104 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mIconSet.mTextures[gregtech.api.enums.OrePrefixes.toolHeadFile.mTextureIndex] : Textures.ItemIcons.HANDLE_FILE; +/* 108: */ } +/* 109: */ +/* 110: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) +/* 111: */ { +/* 112:109 */ return !aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; +/* 113: */ } +/* 114: */ +/* 115: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {} +/* 116: */ +/* 117: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) +/* 118: */ { +/* 119:119 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " has been filed D for 'Dead' by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE); +/* 120: */ } +/* 121: */ } + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + * Qualified Name: gregtech.common.tools.GT_Tool_File + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/common/tools/GT_Tool_HardHammer.java b/main/java/gregtech/common/tools/GT_Tool_HardHammer.java new file mode 100644 index 0000000000..67cb45ff24 --- /dev/null +++ b/main/java/gregtech/common/tools/GT_Tool_HardHammer.java @@ -0,0 +1,188 @@ +/* 1: */ package gregtech.common.tools; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +/* 4: */ import gregtech.api.enums.Materials; +/* 5: */ import gregtech.api.interfaces.IIconContainer; +/* 6: */ import gregtech.api.items.GT_MetaGenerated_Tool; +/* 7: */