aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/tools/GT_Tool_Wrench.java
diff options
context:
space:
mode:
authoraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
committeraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
commita1504799f44ba2debdfef06317f24e7f9c1129d6 (patch)
tree53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tools/GT_Tool_Wrench.java
parentb803f59de5a66fcb4ef53e117b912fbbc2841392 (diff)
downloadGT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/tools/GT_Tool_Wrench.java')
-rw-r--r--main/java/gregtech/common/tools/GT_Tool_Wrench.java282
1 files changed, 141 insertions, 141 deletions
diff --git a/main/java/gregtech/common/tools/GT_Tool_Wrench.java b/main/java/gregtech/common/tools/GT_Tool_Wrench.java
index 031f8593cd..8a79c96750 100644
--- a/main/java/gregtech/common/tools/GT_Tool_Wrench.java
+++ b/main/java/gregtech/common/tools/GT_Tool_Wrench.java
@@ -1,147 +1,147 @@
-/* 1: */ package gregtech.common.tools;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
+package gregtech.common.tools;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.ItemIcons;
-/* 6: */ import gregtech.api.interfaces.IIconContainer;
-/* 7: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 8: */ import gregtech.common.items.behaviors.Behaviour_Wrench;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.common.items.behaviors.Behaviour_Wrench;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
-/* 9: */ import java.util.Arrays;
-/* 10: */ import java.util.List;
-/* 11: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.monster.EntityIronGolem;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 12: */ import net.minecraft.block.Block;
-/* 13: */ import net.minecraft.block.material.Material;
-/* 14: */ import net.minecraft.entity.Entity;
-/* 15: */ import net.minecraft.entity.EntityLivingBase;
-/* 16: */ import net.minecraft.entity.monster.EntityIronGolem;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.init.Blocks;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraft.util.ChatComponentText;
-/* 21: */ import net.minecraft.util.EnumChatFormatting;
-/* 22: */ import net.minecraft.util.IChatComponent;
-/* 23: */
-/* 24: */ public class GT_Tool_Wrench
-/* 25: */ extends GT_Tool
-/* 26: */ {
-/* 27: 25 */ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
-/* 28: */
-/* 29: */ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
-/* 30: */ {
-/* 31: 32 */ String tName = aEntity.getClass().getName();
-/* 32: 33 */ tName = tName.substring(tName.lastIndexOf(".") + 1);
-/* 33: 34 */ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
-/* 34: */ }
-/* 35: */
-/* 36: */ public int getToolDamagePerBlockBreak()
-/* 37: */ {
-/* 38: 39 */ return 50;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getToolDamagePerDropConversion()
-/* 42: */ {
-/* 43: 44 */ return 100;
-/* 44: */ }
-/* 45: */
-/* 46: */ public int getToolDamagePerContainerCraft()
-/* 47: */ {
-/* 48: 49 */ return 800;
-/* 49: */ }
-/* 50: */
-/* 51: */ public int getToolDamagePerEntityAttack()
-/* 52: */ {
-/* 53: 54 */ return 200;
-/* 54: */ }
-/* 55: */
-/* 56: */ public int getBaseQuality()
-/* 57: */ {
-/* 58: 59 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public float getBaseDamage()
-/* 62: */ {
-/* 63: 64 */ return 3.0F;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
-/* 67: */ {
-/* 68: 69 */ return aOriginalHurtResistance * 2;
-/* 69: */ }
-/* 70: */
-/* 71: */ public float getSpeedMultiplier()
-/* 72: */ {
-/* 73: 74 */ return 1.0F;
-/* 74: */ }
-/* 75: */
-/* 76: */ public float getMaxDurabilityMultiplier()
-/* 77: */ {
-/* 78: 79 */ return 1.0F;
-/* 79: */ }
-/* 80: */
-/* 81: */ public String getCraftingSound()
-/* 82: */ {
-/* 83: 84 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
-/* 84: */ }
-/* 85: */
-/* 86: */ public String getEntityHitSound()
-/* 87: */ {
-/* 88: 89 */ return null;
-/* 89: */ }
-/* 90: */
-/* 91: */ public String getBreakingSound()
-/* 92: */ {
-/* 93: 94 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
-/* 94: */ }
-/* 95: */
-/* 96: */ public String getMiningSound()
-/* 97: */ {
-/* 98: 99 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
-/* 99: */ }
-/* 100: */
-/* 101: */ public boolean canBlock()
-/* 102: */ {
-/* 103:104 */ return false;
-/* 104: */ }
-/* 105: */
-/* 106: */ public boolean isCrowbar()
-/* 107: */ {
-/* 108:109 */ return false;
-/* 109: */ }
-/* 110: */
-/* 111: */ public boolean isMinableBlock(Block aBlock, byte aMetaData)
-/* 112: */ {
-/* 113:114 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 114:115 */ return ((tTool != null) && (tTool.equals("wrench"))) || (aBlock.getMaterial() == Material.piston) || (aBlock == Blocks.hopper) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper);
-/* 115: */ }
-/* 116: */
-/* 117: */ public ItemStack getBrokenItem(ItemStack aStack)
-/* 118: */ {
-/* 119:120 */ return null;
-/* 120: */ }
-/* 121: */
-/* 122: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
-/* 123: */ {
-/* 124:125 */ return aIsToolHead ? Textures.ItemIcons.WRENCH : null;
-/* 125: */ }
-/* 126: */
-/* 127: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
-/* 128: */ {
-/* 129:130 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
-/* 130: */ }
-/* 131: */
-/* 132: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
-/* 133: */ {
-/* 134:135 */ aItem.addItemBehavior(aID, new Behaviour_Wrench(100));
-/* 135: */ }
-/* 136: */
-/* 137: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 138: */ {
-/* 139:140 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " threw a Monkey Wrench into the Plans of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 140: */ }
-/* 141: */ }
+public class GT_Tool_Wrench
+ extends GT_Tool
+{
+ public static final List<String> mEffectiveList = Arrays.asList(new String[] { EntityIronGolem.class.getName(), "EntityTowerGuardian" });
+
+ public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer)
+ {
+ String tName = aEntity.getClass().getName();
+ tName = tName.substring(tName.lastIndexOf(".") + 1);
+ return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
+ }
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 50;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 3.0F;
+ }
+
+ public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity)
+ {
+ return aOriginalHurtResistance * 2;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(100));
+ }
+
+ public boolean canBlock()
+ {
+ return false;
+ }
+
+ public boolean isCrowbar()
+ {
+ return false;
+ }
+
+ public boolean isMinableBlock(Block aBlock, byte aMetaData)
+ {
+ String tTool = aBlock.getHarvestTool(aMetaData);
+ return ((tTool != null) && (tTool.equals("wrench"))) || (aBlock.getMaterial() == Material.piston) || (aBlock == Blocks.hopper) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.WRENCH : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : null;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ aItem.addItemBehavior(aID, new Behaviour_Wrench(100));
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " threw a Monkey Wrench into the Plans of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar