aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-10-27 17:49:49 -0500
committeringle <inglettronald@gmail.com>2022-10-27 17:49:49 -0500
commitfba8ecf8f06c03c36c8d4823fe5e5928bad98d32 (patch)
tree9983636402355e7e32f294c5e25b01471173e96c /src/main/java
parentd2eb0ada9182f9cd507cd32b74cb72f62355acaa (diff)
downloadDulkirMod-fba8ecf8f06c03c36c8d4823fe5e5928bad98d32.tar.gz
DulkirMod-fba8ecf8f06c03c36c8d4823fe5e5928bad98d32.tar.bz2
DulkirMod-fba8ecf8f06c03c36c8d4823fe5e5928bad98d32.zip
+ Added hide dungeon loot option
= updated throttle notifier to have some more options
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/dulkirmod/mixins/MixinGuiContainer.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
new file mode 100644
index 0000000..6796703
--- /dev/null
+++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
@@ -0,0 +1,24 @@
+package dulkirmod.mixins;
+
+import dulkirmod.features.Croesus;
+import dulkirmod.features.DungeonLeap;
+import net.minecraft.client.gui.GuiScreen;
+import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.inventory.Slot;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+
+@Mixin(GuiContainer.class)
+public abstract class MixinGuiContainer extends GuiScreen {
+ @Inject(at=@At("HEAD"), method="drawSlot", cancellable = true)
+ public void drawSlot(Slot slotIn, CallbackInfo ci) {
+ if (Croesus.Companion.inCroesus() && Croesus.Companion.isChestOpened(slotIn)) {
+ ci.cancel();
+ }
+ if (DungeonLeap.Companion.inLeapMenu() && DungeonLeap.Companion.isHighlightedLeapPlayer(slotIn)) {
+ // TODO
+ }
+ }
+}