aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author alemidev <me@alemi.dev>2023-01-30 20:59:42 +0100
committer alemidev <me@alemi.dev>2023-01-30 20:59:42 +0100
commit867a5f5f622c6a4c969ef43f16e99949169ec6f4 (patch)
treefef1a08dcad93417a2b063eb798136587b427cac
parent23cc6afc8f52e99097d565af9f97d7fee34e97ba (diff)
chore: restructured
-rw-r--r--src/main/java/co/fantabos/bscv/BoSCoVicino.java6
-rw-r--r--src/main/java/co/fantabos/bscv/modules/HudModule.java (renamed from src/main/java/co/fantabos/bscv/modules/hud/HudModule.java)0
-rw-r--r--src/main/java/co/fantabos/bscv/modules/Module.java (renamed from src/main/java/co/fantabos/bscv/Module.java)3
-rw-r--r--src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java (renamed from src/main/java/co/fantabos/bscv/modules/VanillaFlight.java)4
-rw-r--r--src/main/java/co/fantabos/bscv/modules/self/FastInteract.java (renamed from src/main/java/co/fantabos/bscv/modules/FastInteract.java)4
-rw-r--r--src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java (renamed from src/main/java/co/fantabos/bscv/modules/Fullbright.java)2
6 files changed, 12 insertions, 7 deletions
diff --git a/src/main/java/co/fantabos/bscv/BoSCoVicino.java b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
index 23c1d48..10ae94b 100644
--- a/src/main/java/co/fantabos/bscv/BoSCoVicino.java
+++ b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
@@ -27,12 +27,16 @@ import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
-import co.fantabos.bscv.modules.*;
+import co.fantabos.bscv.modules.vision.*;
+import co.fantabos.bscv.modules.motion.*;
+import co.fantabos.bscv.modules.self.*;
import co.fantabos.bscv.modules.hud.*;
// The value here should match an entry in the META-INF/mods.toml file
@Mod("bscv")
public class BoSCoVicino {
+ public static String MOD_ID = "bscv";
+
// Directly reference a log4j logger.
public static final Logger LOGGER = LogManager.getLogger();
diff --git a/src/main/java/co/fantabos/bscv/modules/hud/HudModule.java b/src/main/java/co/fantabos/bscv/modules/HudModule.java
index 0327d78..0327d78 100644
--- a/src/main/java/co/fantabos/bscv/modules/hud/HudModule.java
+++ b/src/main/java/co/fantabos/bscv/modules/HudModule.java
diff --git a/src/main/java/co/fantabos/bscv/Module.java b/src/main/java/co/fantabos/bscv/modules/Module.java
index 7cb6a30..c6f4522 100644
--- a/src/main/java/co/fantabos/bscv/Module.java
+++ b/src/main/java/co/fantabos/bscv/modules/Module.java
@@ -12,11 +12,12 @@ import static co.fantabos.bscv.BoSCoVicino.log;
public abstract class Module {
public enum Group {
- CORE,
+ SELF,
HUD,
BUILD,
DEFENSE,
VISION,
+ MOTION,
}
public final String name;
diff --git a/src/main/java/co/fantabos/bscv/modules/VanillaFlight.java b/src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java
index 767bfff..070b123 100644
--- a/src/main/java/co/fantabos/bscv/modules/VanillaFlight.java
+++ b/src/main/java/co/fantabos/bscv/modules/motion/VanillaFlight.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules;
+package co.fantabos.bscv.modules.motion;
import com.mojang.brigadier.CommandDispatcher;
@@ -12,7 +12,7 @@ import net.minecraftforge.eventbus.api.SubscribeEvent;
public class VanillaFlight extends Module {
public VanillaFlight(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
- super("VanillaFlight", Group.CORE, builder, dispatcher);
+ super("VanillaFlight", Group.MOTION, builder, dispatcher);
}
private boolean couldFlyBefore = false;
diff --git a/src/main/java/co/fantabos/bscv/modules/FastInteract.java b/src/main/java/co/fantabos/bscv/modules/self/FastInteract.java
index f9d9d29..3d9d034 100644
--- a/src/main/java/co/fantabos/bscv/modules/FastInteract.java
+++ b/src/main/java/co/fantabos/bscv/modules/self/FastInteract.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules;
+package co.fantabos.bscv.modules.self;
import static co.fantabos.bscv.BoSCoVicino.log;
@@ -19,7 +19,7 @@ public class FastInteract extends Module {
Field delayField;
public FastInteract(ForgeConfigSpec.Builder builder, CommandDispatcher<CommandSource> dispatcher) {
- super("FastInteract", Group.CORE, builder, dispatcher);
+ super("FastInteract", Group.SELF, builder, dispatcher);
}
@Override
diff --git a/src/main/java/co/fantabos/bscv/modules/Fullbright.java b/src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java
index 300dce9..70199d9 100644
--- a/src/main/java/co/fantabos/bscv/modules/Fullbright.java
+++ b/src/main/java/co/fantabos/bscv/modules/vision/Fullbright.java
@@ -1,4 +1,4 @@
-package co.fantabos.bscv.modules;
+package co.fantabos.bscv.modules.vision;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;