diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-18 00:41:25 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-18 14:36:51 +0200 |
commit | c89b663acad487caeb15f7521be3dd14342dd4e7 (patch) | |
tree | ae21daabaf5de1ac5281509c6fa9446259169ae5 /src/main/kotlin/features/mining/HotmPresets.kt | |
parent | 7de0e8e7e09e3428c17ca9717c21c02469c31b76 (diff) | |
download | firmament-c89b663acad487caeb15f7521be3dd14342dd4e7.tar.gz firmament-c89b663acad487caeb15f7521be3dd14342dd4e7.tar.bz2 firmament-c89b663acad487caeb15f7521be3dd14342dd4e7.zip |
Add slot binding
Diffstat (limited to 'src/main/kotlin/features/mining/HotmPresets.kt')
-rw-r--r-- | src/main/kotlin/features/mining/HotmPresets.kt | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/main/kotlin/features/mining/HotmPresets.kt b/src/main/kotlin/features/mining/HotmPresets.kt index 329ff77..3f83f3d 100644 --- a/src/main/kotlin/features/mining/HotmPresets.kt +++ b/src/main/kotlin/features/mining/HotmPresets.kt @@ -29,6 +29,7 @@ import moe.nea.firmament.util.TimeMark import moe.nea.firmament.util.customgui.CustomGui import moe.nea.firmament.util.customgui.customGui import moe.nea.firmament.util.mc.CommonTextures +import moe.nea.firmament.util.mc.SlotUtils.clickRightMouseButton import moe.nea.firmament.util.mc.displayNameAccordingToNbt import moe.nea.firmament.util.unformattedString import moe.nea.firmament.util.useMatch @@ -103,26 +104,6 @@ object HotmPresets { var hasScrolled = false var hasAll = false - fun Slot.clickMiddleMouseButton(handler: ScreenHandler) { - MC.interactionManager?.clickSlot( - handler.syncId, - this.id, - 2, - SlotActionType.CLONE, - MC.player - ) - } - - fun Slot.clickRightMouseButton(handler: ScreenHandler) { - MC.interactionManager?.clickSlot( - handler.syncId, - this.id, - 1, - SlotActionType.PICKUP, - MC.player - ) - } - override fun mouseClick(mouseX: Double, mouseY: Double, button: Int): Boolean { if (!hasScrolled) { val slot = screen.screenHandler.getSlot(8) |