aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces
diff options
context:
space:
mode:
authorghostflyby <ghostflyby+git@outlook.com>2024-01-13 03:12:01 +0800
committerGitHub <noreply@github.com>2024-01-12 20:12:01 +0100
commit78668b68e3020e06e2ff8dfcc1955987c4087288 (patch)
tree02cdafd035c23f71dba29ad55ae8ea8552ded69f /src/main/java/gregtech/api/interfaces
parentde5569489df37261b4cf19ac779f14f8d34fe800 (diff)
downloadGT5-Unofficial-78668b68e3020e06e2ff8dfcc1955987c4087288.tar.gz
GT5-Unofficial-78668b68e3020e06e2ff8dfcc1955987c4087288.tar.bz2
GT5-Unofficial-78668b68e3020e06e2ff8dfcc1955987c4087288.zip
GT wrench capabilities for AE2 blocks and others (#2395)
* GT wrench capabilities for ae blocks * Fix grid array out of bounds * Fix shift right ae block disappear for an instant
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-rw-r--r--src/main/java/gregtech/api/interfaces/IToolStats.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/interfaces/IToolStats.java b/src/main/java/gregtech/api/interfaces/IToolStats.java
index c92a0ef05c..9d8da63b6c 100644
--- a/src/main/java/gregtech/api/interfaces/IToolStats.java
+++ b/src/main/java/gregtech/api/interfaces/IToolStats.java
@@ -36,7 +36,8 @@ public interface IToolStats {
void onStatsAddedToTool(GT_MetaGenerated_Tool aItem, int aID);
/**
- *
+ * @implNote if you are only modifying drops, override
+ * {@link #convertBlockDrops(List, ItemStack, EntityPlayer, Block, int, int, int, byte, int, boolean, BlockEvent.HarvestDropsEvent)}
* @param player The player
* @param x Block pos
* @param y Block pos
@@ -156,7 +157,7 @@ public interface IToolStats {
boolean isMiningTool();
/**
- * aBlock.getHarvestTool(aMetaData) can return the following Values for example. "axe", "pickaxe", "sword",
+ * {@link Block#getHarvestTool(int)} can return the following Values for example. "axe", "pickaxe", "sword",
* "shovel", "hoe", "grafter", "saw", "wrench", "crowbar", "file", "hammer", "plow", "plunger", "scoop",
* "screwdriver", "sense", "scythe", "softhammer", "cutter", "plasmatorch"
*
@@ -168,7 +169,7 @@ public interface IToolStats {
/**
* This lets you modify the Drop List, when this type of Tool has been used.
*
- * @return the Amount of modified Items.
+ * @return the Amount of modified Items, used to determine the extra durability cost
*/
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);