aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/IToolStats.java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:12:19 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2020-03-17 19:12:19 +0100
commit1922f34f1f8782f160e4808f4f6bb75a50703871 (patch)
tree6d77f9745e5e559071ae11c42bb0040c8c68706b /src/main/java/gregtech/api/interfaces/IToolStats.java
parentace89f8a1937f6d4671c8677d2f86ef9fdc7a660 (diff)
downloadGT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.tar.gz
GT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.tar.bz2
GT5-Unofficial-1922f34f1f8782f160e4808f4f6bb75a50703871.zip
Refactored Interfaces
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/IToolStats.java')
-rw-r--r--src/main/java/gregtech/api/interfaces/IToolStats.java71
1 files changed, 36 insertions, 35 deletions
diff --git a/src/main/java/gregtech/api/interfaces/IToolStats.java b/src/main/java/gregtech/api/interfaces/IToolStats.java
index 70aaeb206b..d282c02b11 100644
--- a/src/main/java/gregtech/api/interfaces/IToolStats.java
+++ b/src/main/java/gregtech/api/interfaces/IToolStats.java
@@ -22,107 +22,108 @@ public interface IToolStats {
/**
* Called when aPlayer crafts this Tool
*/
- public void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer);
+ void onToolCrafted(ItemStack aStack, EntityPlayer aPlayer);
/**
* Called when this gets added to a Tool Item
*/
- public void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID);
+ void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID);
/**
* @return Damage the Tool receives when breaking a Block. 100 is one Damage Point (or 100 EU).
*/
- public int getToolDamagePerBlockBreak();
+ int getToolDamagePerBlockBreak();
/**
* @return Damage the Tool receives when converting the drops of a Block. 100 is one Damage Point (or 100 EU).
*/
- public int getToolDamagePerDropConversion();
+ int getToolDamagePerDropConversion();
/**
* @return Damage the Tool receives when being used as Container Item. 100 is one use, however it is usually 8 times more than normal.
*/
- public int getToolDamagePerContainerCraft();
+ int getToolDamagePerContainerCraft();
/**
* @return Damage the Tool receives when being used as Weapon, 200 is the normal Value, 100 for actual Weapons.
*/
- public int getToolDamagePerEntityAttack();
+ int getToolDamagePerEntityAttack();
/**
* @return Basic Quality of the Tool, 0 is normal. If increased, it will increase the general quality of all Tools of this Type. Decreasing is also possible.
*/
- public int getBaseQuality();
+ int getBaseQuality();
/**
* @return The Damage Bonus for this Type of Tool against Mobs. 1.0F is normal punch.
*/
- public float getBaseDamage();
+ float getBaseDamage();
/**
* @return This gets the Hurt Resistance time for Entities getting hit. (always does 1 as minimum)
*/
- public int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity);
+ int getHurtResistanceTime(int aOriginalHurtResistance, Entity aEntity);
/**
* @return This is a multiplier for the Tool Speed. 1.0F = no special Speed.
*/
- public float getSpeedMultiplier();
+ float getSpeedMultiplier();
/**
* @return This is a multiplier for the Tool Speed. 1.0F = no special Durability.
*/
- public float getMaxDurabilityMultiplier();
+ float getMaxDurabilityMultiplier();
- public DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity);
+ DamageSource getDamageSource(EntityLivingBase aPlayer, Entity aEntity);
- public String getMiningSound();
+ String getMiningSound();
- public String getCraftingSound();
+ String getCraftingSound();
- public String getEntityHitSound();
+ String getEntityHitSound();
- public String getBreakingSound();
+ String getBreakingSound();
- public Enchantment[] getEnchantments(ItemStack aStack);
+ Enchantment[] getEnchantments(ItemStack aStack);
- public int[] getEnchantmentLevels(ItemStack aStack);
+ int[] getEnchantmentLevels(ItemStack aStack);
/**
* @return If this Tool can be used for blocking Damage like a Sword.
*/
- public boolean canBlock();
+ boolean canBlock();
/**
* @return If this Tool can be used as an RC Crowbar.
*/
- public boolean isCrowbar();
+ boolean isCrowbar();
/**
* @return If this Tool can be used as an FR Grafter.
*/
- public boolean isGrafter();
+ boolean isGrafter();
+
+ boolean isChainsaw();
- public boolean isChainsaw();
/**
* @return If this Tool can be used as an BC Wrench.
*/
- public boolean isWrench();
-
+ boolean isWrench();
+
/**
* @return If this Tool can be used as Weapon i.e. if that is the main purpose.
*/
- public boolean isWeapon();
+ boolean isWeapon();
/**
* @return If this Tool is a Ranged Weapon. Return false at isWeapon unless you have a Blade attached to your Bow/Gun or something
*/
- public boolean isRangedWeapon();
+ boolean isRangedWeapon();
/**
* @return If this Tool can be used as Weapon i.e. if that is the main purpose.
*/
- public boolean isMiningTool();
+ boolean isMiningTool();
/**
* aBlock.getHarvestTool(aMetaData) can return the following Values for example.
@@ -130,33 +131,33 @@ public interface IToolStats {
*
* @return If this is a minable Block. Tool Quality checks (like Diamond Tier or something) are separate from this check.
*/
- public boolean isMinableBlock(Block aBlock, byte aMetaData);
+ boolean isMinableBlock(Block aBlock, byte aMetaData);
/**
* This lets you modify the Drop List, when this type of Tool has been used.
*
* @return the Amount of modified Items.
*/
- public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent);
+ int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent);
/**
* @return Returns a broken Version of the Item.
*/
- public ItemStack getBrokenItem(ItemStack aStack);
+ ItemStack getBrokenItem(ItemStack aStack);
/**
* @return the Damage actually done to the Mob.
*/
- public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
+ float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
/**
* @return the Damage actually done to the Mob.
*/
- public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
+ float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer);
- public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack);
+ IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack);
- public short[] getRGBa(boolean aIsToolHead, ItemStack aStack);
+ short[] getRGBa(boolean aIsToolHead, ItemStack aStack);
- public float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX, int aY, int aZ);
+ float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX, int aY, int aZ);
} \ No newline at end of file