chore: restructured

This commit is contained in:
əlemi 2023-01-30 20:59:42 +01:00
parent 23cc6afc8f
commit 867a5f5f62
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E
6 changed files with 12 additions and 7 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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;