From 78668b68e3020e06e2ff8dfcc1955987c4087288 Mon Sep 17 00:00:00 2001 From: ghostflyby Date: Sat, 13 Jan 2024 03:12:01 +0800 Subject: 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 --- src/main/java/gregtech/api/interfaces/IToolStats.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/gregtech/api/interfaces') 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 aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent); -- cgit