This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhancement] Add store option to ChestStealer. (#1851)
Co-authored-by: Dominika <[email protected]>
- Loading branch information
1 parent
ee7da9c
commit 5c69b69
Showing
4 changed files
with
91 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/me/zeroeightsix/kami/gui/mc/KamiGuiStoreButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package me.zeroeightsix.kami.gui.mc | ||
|
||
import me.zeroeightsix.kami.module.modules.player.ChestStealer | ||
import me.zeroeightsix.kami.util.Wrapper | ||
import net.minecraft.client.gui.GuiButton | ||
|
||
class KamiGuiStoreButton(x: Int, y: Int) : | ||
GuiButton(420420, x, y, 50, 20, "Store") { | ||
override fun mouseReleased(mouseX: Int, mouseY: Int) { | ||
if (ChestStealer.mode.value === ChestStealer.Mode.MANUAL) { | ||
ChestStealer.storing = false | ||
playPressSound(Wrapper.minecraft.soundHandler) | ||
} | ||
super.mouseReleased(mouseX, mouseY) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters