From 064c46683f58fd8a981dd03c13cf92556a28656e Mon Sep 17 00:00:00 2001 From: Батьків Нестор-Євген Васильович Date: Tue, 26 Dec 2023 23:08:33 +0200 Subject: Add modes to tools (#2423) * Add tool modes change * Deprecate! Deprecate! Deprecate! * Add mode to item name * Opsie * Byte 8 bit * Add enum * Spotless * Types types types!!!! God I love types * Make it trigger when player clicks midair * update deps + fix wci --------- Co-authored-by: Martin Robertz --- .../api/interfaces/metatileentity/IMetaTileEntity.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java') diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java index 04522b1012..2c222e76a8 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -132,27 +132,28 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand boolean allowCoverOnSide(ForgeDirection side, GT_ItemStack aStack); /** - * When a Player rightclicks the Facing with a Screwdriver. + * When a Player right-clicks the Facing with a Screwdriver. */ - void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ); + void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ, + ItemStack aTool); /** * When a Player right-clicks the Facing with a Wrench. */ boolean onWrenchRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer entityPlayer, float aX, - float aY, float aZ); + float aY, float aZ, ItemStack aTool); /** * When a Player right-clicks the Facing with a wire cutter. */ boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer entityPlayer, - float aX, float aY, float aZ); + float aX, float aY, float aZ, ItemStack aTool); /** * When a Player right-clicks the Facing with a soldering iron. */ boolean onSolderingToolRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer entityPlayer, - float aX, float aY, float aZ); + float aX, float aY, float aZ, ItemStack aTool); /** * Called right before this Machine explodes -- cgit