chore: restructured
This commit is contained in:
parent
23cc6afc8f
commit
867a5f5f62
6 changed files with 12 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
|
@ -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
|
|
@ -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;
|
Loading…
Reference in a new issue