/* 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_WireCutter /* 17: */ extends GT_Tool /* 18: */ { /* 19: */ public int getToolDamagePerBlockBreak() /* 20: */ { /* 21: 17 */ return 100; /* 22: */ } /* 23: */ /* 24: */ public int getToolDamagePerDropConversion() /* 25: */ { /* 26: 22 */ return 100; /* 27: */ } /* 28: */ /* 29: */ public int getToolDamagePerContainerCraft() /* 30: */ { /* 31: 27 */ return 400; /* 32: */ } /* 33: */ /* 34: */ public int getToolDamagePerEntityAttack() /* 35: */ { /* 36: 32 */ return 200; /* 37: */ } /* 38: */ /* 39: */ public int getBaseQuality() /* 40: */ { /* 41: 37 */ return 0; /* 42: */ } /* 43: */ /* 44: */ public float getBaseDamage() /* 45: */ { /* 46: 42 */ return 1.25F; /* 47: */ } /* 48: */ /* 49: */ public float getSpeedMultiplier() /* 50: */ { /* 51: 47 */ return 1.0F; /* 52: */ } /* 53: */ /* 54: */ public float getMaxDurabilityMultiplier() /* 55: */ { /* 56: 52 */ return 1.0F; /* 57: */ } /* 58: */ /* 59: */ public String getCraftingSound() /* 60: */ { /* 61: 57 */ return null; /* 62: */ } /* 63: */ /* 64: */ public String getEntityHitSound() /* 65: */ { /* 66: 62 */ return null; /* 67: */ } /* 68: */ /* 69: */ public String getBreakingSound() /* 70: */ { /* 71: 67 */ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0)); /* 72: */ } /* 73: */ /* 74: */ public String getMiningSound() /* 75: */ { /* 76: 72 */ return null; /* 77: */ } /* 78: */ /* 79: */ public boolean canBlock() /* 80: */ { /* 81: 77 */ return false; /* 82: */ } /* 83: */ /* 84: */ public boolean isCrowbar() /* 85: */ { /* 86: 82 */ return false; /* 87: */ } /* 88: */ /* 89: */ public boolean isMinableBlock(Block aBlock, byte aMetaData) /* 90: */ { /* 91: 87 */ String tTool = aBlock.getHarvestTool(aMetaData); /* 92: 88 */ return (tTool != null) && (tTool.equals("cutter")); /* 93: */ } /* 94: */ /* 95: */ public ItemStack getBrokenItem(ItemStack aStack) /* 96: */ { /* 97: 93 */ return null; /* 98: */ } /* 99: */ /* 100: */ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) /* 101: */ { /* 102: 98 */ return aIsToolHead ? Textures.ItemIcons.WIRE_CUTTER : null; /* 103: */ } /* 104: */ /* 105: */ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack) /* 106: */ { /* 107:103 */ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa; /* 108: */ } /* 109: */ /* 110: */ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID) {} /* 111: */ /* 112: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity) /* 113: */ { /* 114:113 */ return new ChatComponentText(EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE + " has cut the Cable for the Life Support Machine of " + EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE); /* 115: */ } /* 116: */ } /* 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_WireCutter * JD-Core Version: 0.7.0.1 */