diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
commit | 6591e802e925a1f57d62b8d506936d6d5e9fde3c (patch) | |
tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tools/GT_Tool_Scoop.java | |
parent | 55c596b008807a7cb4b58422efd07636425be1e2 (diff) | |
parent | a1504799f44ba2debdfef06317f24e7f9c1129d6 (diff) | |
download | GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.gz GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.bz2 GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.zip |
Merge pull request #71 from aerospark/devel
Linenumber strip
Well, let's try this, but i'm not going trough all classes to make sure there is nothing broken.
Diffstat (limited to 'main/java/gregtech/common/tools/GT_Tool_Scoop.java')
-rw-r--r-- | main/java/gregtech/common/tools/GT_Tool_Scoop.java | 262 |
1 files changed, 131 insertions, 131 deletions
diff --git a/main/java/gregtech/common/tools/GT_Tool_Scoop.java b/main/java/gregtech/common/tools/GT_Tool_Scoop.java index c815bde9fd..c7eb3e55e3 100644 --- a/main/java/gregtech/common/tools/GT_Tool_Scoop.java +++ b/main/java/gregtech/common/tools/GT_Tool_Scoop.java @@ -1,137 +1,137 @@ -/* 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.interfaces.IItemBehaviour;
-/* 8: */ import gregtech.api.items.GT_MetaGenerated_Tool;
-/* 9: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.ItemIcons;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.IItemBehaviour;
+import gregtech.api.items.GT_MetaGenerated_Tool;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 10: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.ChatComponentText;
+import net.minecraft.util.EnumChatFormatting;
+import net.minecraft.util.IChatComponent;
-/* 11: */ import net.minecraft.block.Block;
-/* 12: */ import net.minecraft.block.material.Material;
-/* 13: */ import net.minecraft.entity.EntityLivingBase;
-/* 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: */
-/* 19: */ public class GT_Tool_Scoop
-/* 20: */ extends GT_Tool
-/* 21: */ {
-/* 22: */ public static Material sBeeHiveMaterial;
-/* 23: */
-/* 24: */ public int getToolDamagePerBlockBreak()
-/* 25: */ {
-/* 26: 23 */ return 200;
-/* 27: */ }
-/* 28: */
-/* 29: */ public int getToolDamagePerDropConversion()
-/* 30: */ {
-/* 31: 28 */ return 100;
-/* 32: */ }
-/* 33: */
-/* 34: */ public int getToolDamagePerContainerCraft()
-/* 35: */ {
-/* 36: 33 */ return 800;
-/* 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 1.0F;
-/* 52: */ }
-/* 53: */
-/* 54: */ public float getSpeedMultiplier()
-/* 55: */ {
-/* 56: 53 */ return 1.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 isMinableBlock(Block aBlock, byte aMetaData)
-/* 95: */ {
-/* 96: 93 */ String tTool = aBlock.getHarvestTool(aMetaData);
-/* 97: 94 */ return ((tTool != null) && (tTool.equals("scoop"))) || (aBlock.getMaterial() == sBeeHiveMaterial);
-/* 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 ? Textures.ItemIcons.SCOOP : null;
-/* 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: */ try
-/* 118: */ {
-/* 119:115 */ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Scoop", 0, null, false, new Object[] { Integer.valueOf(200) });
-/* 120:116 */ if ((tObject instanceof IItemBehaviour)) {
-/* 121:116 */ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
-/* 122: */ }
-/* 123: */ }
-/* 124: */ catch (Throwable e) {}
-/* 125: */ }
-/* 126: */
-/* 127: */ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
-/* 128: */ {
-/* 129:122 */ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got scooped up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
-/* 130: */ }
-/* 131: */ }
+public class GT_Tool_Scoop
+ extends GT_Tool
+{
+ public static Material sBeeHiveMaterial;
+
+ public int getToolDamagePerBlockBreak()
+ {
+ return 200;
+ }
+
+ public int getToolDamagePerDropConversion()
+ {
+ return 100;
+ }
+
+ public int getToolDamagePerContainerCraft()
+ {
+ return 800;
+ }
+
+ public int getToolDamagePerEntityAttack()
+ {
+ return 200;
+ }
+
+ public int getBaseQuality()
+ {
+ return 0;
+ }
+
+ public float getBaseDamage()
+ {
+ return 1.0F;
+ }
+
+ public float getSpeedMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public float getMaxDurabilityMultiplier()
+ {
+ return 1.0F;
+ }
+
+ public String getCraftingSound()
+ {
+ return null;
+ }
+
+ public String getEntityHitSound()
+ {
+ return null;
+ }
+
+ public String getBreakingSound()
+ {
+ return (String)GregTech_API.sSoundList.get(Integer.valueOf(0));
+ }
+
+ public String getMiningSound()
+ {
+ return null;
+ }
+
+ 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("scoop"))) || (aBlock.getMaterial() == sBeeHiveMaterial);
+ }
+
+ public ItemStack getBrokenItem(ItemStack aStack)
+ {
+ return null;
+ }
+
+ public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? Textures.ItemIcons.SCOOP : null;
+ }
+
+ public short[] getRGBa(boolean aIsToolHead, ItemStack aStack)
+ {
+ return aIsToolHead ? GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mRGBa : GT_MetaGenerated_Tool.getSecondaryMaterial(aStack).mRGBa;
+ }
+
+ public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID)
+ {
+ try
+ {
+ Object tObject = GT_Utility.callConstructor("gregtech.common.items.behaviors.Behaviour_Scoop", 0, null, false, new Object[] { Integer.valueOf(200) });
+ if ((tObject instanceof IItemBehaviour)) {
+ aItem.addItemBehavior(aID, (IItemBehaviour)tObject);
+ }
+ }
+ catch (Throwable e) {}
+ }
+
+ public IChatComponent getDeathMessage(EntityLivingBase aPlayer, EntityLivingBase aEntity)
+ {
+ return new ChatComponentText(EnumChatFormatting.RED + aEntity.getCommandSenderName() + EnumChatFormatting.WHITE + " got scooped up by " + EnumChatFormatting.GREEN + aPlayer.getCommandSenderName() + EnumChatFormatting.WHITE);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|