aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/co/fantabos
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/co/fantabos')
-rw-r--r--src/main/java/co/fantabos/bscv/BoSCoVicino.java9
-rw-r--r--src/main/java/co/fantabos/bscv/module/HudModule.java (renamed from src/main/java/co/fantabos/bscv/modules/HudModule.java)4
-rw-r--r--src/main/java/co/fantabos/bscv/module/Module.java (renamed from src/main/java/co/fantabos/bscv/modules/Module.java)3
-rw-r--r--src/main/java/co/fantabos/bscv/module/hud/ActiveModules.java (renamed from src/main/java/co/fantabos/bscv/modules/hud/ActiveModules.java)5
-rw-r--r--src/main/java/co/fantabos/bscv/module/hud/Coordinates.java (renamed from src/main/java/co/fantabos/bscv/modules/hud/Coordinates.java)3
-rw-r--r--src/main/java/co/fantabos/bscv/module/hud/EntityList.java (renamed from src/main/java/co/fantabos/bscv/modules/hud/EntityList.java)3
-rw-r--r--src/main/java/co/fantabos/bscv/module/motion/VanillaFlight.java (renamed from src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java)12
-rw-r--r--src/main/java/co/fantabos/bscv/module/self/FastInteract.java (renamed from src/main/java/co/fantabos/bscv/modules/self/FastInteract.java)8
-rw-r--r--src/main/java/co/fantabos/bscv/module/vision/Fullbright.java (renamed from src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java)10
9 files changed, 34 insertions, 23 deletions
diff --git a/src/main/java/co/fantabos/bscv/BoSCoVicino.java b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
index 10ae94b..a7dfb55 100644
--- a/src/main/java/co/fantabos/bscv/BoSCoVicino.java
+++ b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
@@ -27,10 +27,11 @@ import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
-import co.fantabos.bscv.modules.vision.*;
-import co.fantabos.bscv.modules.motion.*;
-import co.fantabos.bscv.modules.self.*;
-import co.fantabos.bscv.modules.hud.*;
+import co.fantabos.bscv.module.Module;
+import co.fantabos.bscv.module.vision.*;
+import co.fantabos.bscv.module.motion.*;
+import co.fantabos.bscv.module.self.*;
+import co.fantabos.bscv.module.hud.*;
// The value here should match an entry in the META-INF/mods.toml file
@Mod("bscv")
diff --git a/src/main/java/co/fantabos/bscv/modules/HudModule.java b/src/main/java/co/fantabos/bscv/module/HudModule.java
index 0327d78..61abcc9 100644
--- a/src/main/java/co/fantabos/bscv/modules/HudModule.java
+++ b/src/main/java/co/fantabos/bscv/module/HudModule.java
@@ -1,10 +1,10 @@
-package co.fantabos.bscv.modules.hud;
+package co.fantabos.bscv.module;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.DoubleArgumentType;
import com.mojang.brigadier.arguments.IntegerArgumentType;
-import co.fantabos.bscv.Module;
+import co.fantabos.bscv.module.Module;
import co.fantabos.bscv.tools.Anchor;
import net.minecraft.command.CommandSource;
import net.minecraftforge.common.ForgeConfigSpec;
diff --git a/src/main/java/co/fantabos/bscv/modules/Module.java b/src/main/java/co/fantabos/bscv/module/Module.java
index c6f4522..67beb13 100644
--- a/src/main/java/co/fantabos/bscv/modules/Module.java
+++ b/src/main/java/co/fantabos/bscv/module/Module.java
@@ -1,8 +1,9 @@
-package co.fantabos.bscv;
+package co.fantabos.bscv.module;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.ArgumentType;
+import co.fantabos.bscv.BoSCoVicino;
import net.minecraft.command.CommandSource;
import net.minecraft.command.Commands;
import net.minecraftforge.common.ForgeConfigSpec;
diff --git a/src/main/java/co/fantabos/bscv/modules/hud/ActiveModules.java b/src/main/java/co/fantabos/bscv/module/hud/ActiveModules.java
index ad195b8..ea748b2 100644
--- a/src/main/java/co/fantabos/bscv/modules/hud/ActiveModules.java
+++ b/src/main/java/co/fantabos/bscv/module/hud/ActiveModules.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules.hud;
+package co.fantabos.bscv.module.hud;
import static co.fantabos.bscv.tools.Text.TextBuilder;
@@ -10,7 +10,8 @@ import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.eventbus.api.SubscribeEvent;
-import co.fantabos.bscv.Module;
+import co.fantabos.bscv.module.HudModule;
+import co.fantabos.bscv.module.Module;
public class ActiveModules extends HudModule {
diff --git a/src/main/java/co/fantabos/bscv/modules/hud/Coordinates.java b/src/main/java/co/fantabos/bscv/module/hud/Coordinates.java
index b7e0225..bc1b73f 100644
--- a/src/main/java/co/fantabos/bscv/modules/hud/Coordinates.java
+++ b/src/main/java/co/fantabos/bscv/module/hud/Coordinates.java
@@ -1,10 +1,11 @@
-package co.fantabos.bscv.modules.hud;
+package co.fantabos.bscv.module.hud;
import static co.fantabos.bscv.tools.Text.TextBuilder;
import com.mojang.brigadier.CommandDispatcher;
import co.fantabos.bscv.BoSCoVicino;
+import co.fantabos.bscv.module.HudModule;
import net.minecraft.client.Minecraft;
import net.minecraft.command.CommandSource;
import net.minecraft.util.math.vector.Vector3d;
diff --git a/src/main/java/co/fantabos/bscv/modules/hud/EntityList.java b/src/main/java/co/fantabos/bscv/module/hud/EntityList.java
index ee013b7..8480e82 100644
--- a/src/main/java/co/fantabos/bscv/modules/hud/EntityList.java
+++ b/src/main/java/co/fantabos/bscv/module/hud/EntityList.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules.hud;
+package co.fantabos.bscv.module.hud;
import static co.fantabos.bscv.tools.Text.TextBuilder;
@@ -10,6 +10,7 @@ import java.util.stream.Collectors;
import com.mojang.brigadier.CommandDispatcher;
import co.fantabos.bscv.BoSCoVicino;
+import co.fantabos.bscv.module.HudModule;
import net.minecraft.command.CommandSource;
import net.minecraft.entity.Entity;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
diff --git a/src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java b/src/main/java/co/fantabos/bscv/module/motion/VanillaFlight.java
index 070b123..2b20239 100644
--- a/src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java
+++ b/src/main/java/co/fantabos/bscv/module/motion/VanillaFlight.java
@@ -1,18 +1,22 @@
-package co.fantabos.bscv.modules.motion;
+package co.fantabos.bscv.module.motion;
import com.mojang.brigadier.CommandDispatcher;
import co.fantabos.bscv.BoSCoVicino;
-import co.fantabos.bscv.Module;
+import co.fantabos.bscv.module.QuickModule;
import net.minecraft.command.CommandSource;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
-public class VanillaFlight extends Module {
+public class VanillaFlight extends QuickModule {
+
+ public final ForgeConfigSpec.ConfigValue<Boolean> force;
public VanillaFlight(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
- super("VanillaFlight", Group.MOTION, builder, dispatcher);
+ super("VanillaFlight", Group.MOTION, -1, builder, dispatcher);
+
+
}
private boolean couldFlyBefore = false;
diff --git a/src/main/java/co/fantabos/bscv/modules/self/FastInteract.java b/src/main/java/co/fantabos/bscv/module/self/FastInteract.java
index 3d9d034..1227aab 100644
--- a/src/main/java/co/fantabos/bscv/modules/self/FastInteract.java
+++ b/src/main/java/co/fantabos/bscv/module/self/FastInteract.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules.self;
+package co.fantabos.bscv.module.self;
import static co.fantabos.bscv.BoSCoVicino.log;
@@ -11,15 +11,15 @@ import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
-import co.fantabos.bscv.Module;
+import co.fantabos.bscv.module.QuickModule;
import co.fantabos.bscv.BoSCoVicino;
-public class FastInteract extends Module {
+public class FastInteract extends QuickModule {
Field delayField;
public FastInteract(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
- super("FastInteract", Group.SELF, builder, dispatcher);
+ super("FastInteract", Group.SELF, -1, builder, dispatcher);
}
@Override
diff --git a/src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java b/src/main/java/co/fantabos/bscv/module/vision/Fullbright.java
index 70199d9..77bdbce 100644
--- a/src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java
+++ b/src/main/java/co/fantabos/bscv/module/vision/Fullbright.java
@@ -1,4 +1,6 @@
-package co.fantabos.bscv.modules.vision;
+package co.fantabos.bscv.module.vision;
+
+import java.awt.event.KeyEvent;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
@@ -10,15 +12,15 @@ import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
-import co.fantabos.bscv.Module;
+import co.fantabos.bscv.module.QuickModule;
import co.fantabos.bscv.BoSCoVicino;
-public class Fullbright extends Module {
+public class Fullbright extends QuickModule {
private final ForgeConfigSpec.ConfigValue<String> mode;
public Fullbright(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
- super("Fullbright", Group.VISION, builder, dispatcher);
+ super("Fullbright", Group.VISION, KeyEvent.VK_V, builder, dispatcher);
this.mode = this.option(
"mode", "either potion or potion", "potion",