summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-02-19 23:46:35 +0100
committer alemi <me@alemi.dev>2023-02-19 23:46:35 +0100
commit15a2b1ac090e62b42cd399a5590453c5022e204e (patch)
treeffd2872a5b3aec5a26f4f898ddc57e1c960926f8 /src/main/java
parent7473f181d487381d05af267a69bc0d4d41bf9323 (diff)
feat: added PortalGui
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/ftbsc/bscv/BoSCoVicino.java1
-rw-r--r--src/main/java/ftbsc/bscv/modules/self/PortalGui.java25
2 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/bscv/BoSCoVicino.java b/src/main/java/ftbsc/bscv/BoSCoVicino.java
index c5c397c..79dc3d9 100644
--- a/src/main/java/ftbsc/bscv/BoSCoVicino.java
+++ b/src/main/java/ftbsc/bscv/BoSCoVicino.java
@@ -69,6 +69,7 @@ public class BoSCoVicino implements ICommons {
BoSCoVicino.mods.add(new EntityList(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new Fullbright(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AntiHunger(cfg, dp).done(cfg));
+ BoSCoVicino.mods.add(new PortalGui(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AutoFish(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new AutoTool(cfg, dp).done(cfg));
BoSCoVicino.mods.add(new Freecam(cfg, dp).done(cfg));
diff --git a/src/main/java/ftbsc/bscv/modules/self/PortalGui.java b/src/main/java/ftbsc/bscv/modules/self/PortalGui.java
new file mode 100644
index 0000000..84c5d57
--- /dev/null
+++ b/src/main/java/ftbsc/bscv/modules/self/PortalGui.java
@@ -0,0 +1,25 @@
+package ftbsc.bscv.modules.self;
+
+import com.mojang.brigadier.CommandDispatcher;
+
+import ftbsc.bscv.ICommons;
+import ftbsc.bscv.modules.Module;
+import net.minecraft.command.CommandSource;
+import net.minecraftforge.common.ForgeConfigSpec;
+import net.minecraftforge.event.TickEvent;
+import net.minecraftforge.eventbus.api.SubscribeEvent;
+
+public class PortalGui extends Module implements ICommons {
+
+ public PortalGui(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
+ super("PortalGui", Group.SELF, builder, dispatcher);
+ }
+
+ @SubscribeEvent
+ public void onTick(TickEvent.ClientTickEvent event) {
+ if (MC.player == null) return;
+ // TODO is there a more elegant way to do this?
+ MC.player.isInsidePortal = false; // ACCESSTRANSFORMER
+ }
+
+}