diff --git a/src/main/java/co/fantabos/bscv/BoSCoVicino.java b/src/main/java/co/fantabos/bscv/BoSCoVicino.java index 25f7636..883d5b6 100644 --- a/src/main/java/co/fantabos/bscv/BoSCoVicino.java +++ b/src/main/java/co/fantabos/bscv/BoSCoVicino.java @@ -25,6 +25,8 @@ import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; +import co.fantabos.bscv.Module; + // The value here should match an entry in the META-INF/mods.toml file @Mod("bscv") public class BoSCoVicino { @@ -33,7 +35,7 @@ public class BoSCoVicino { public static Minecraft minecraft; - public static List mods; + public static List mods; public BoSCoVicino() { // Register the setup method for modloading @@ -52,7 +54,7 @@ public class BoSCoVicino { ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder(); // load and register mods - BoSCoVicino.mods = new ArrayList(); + BoSCoVicino.mods = new ArrayList(); BoSCoVicino.mods.add(new Fullbright(builder)); @@ -90,7 +92,7 @@ public class BoSCoVicino { @SubscribeEvent public void onRegisterCommand(RegisterCommandsEvent event) { - for (co.fantabos.bscv.Mod mod : BoSCoVicino.mods) { + for (Module mod : BoSCoVicino.mods) { mod.registerCommands(event.getDispatcher()); } } diff --git a/src/main/java/co/fantabos/bscv/Fullbright.java b/src/main/java/co/fantabos/bscv/Fullbright.java index 7b0b222..f8aba8d 100644 --- a/src/main/java/co/fantabos/bscv/Fullbright.java +++ b/src/main/java/co/fantabos/bscv/Fullbright.java @@ -6,7 +6,7 @@ import net.minecraftforge.common.ForgeConfigSpec; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; -public class Fullbright extends Mod { +public class Fullbright extends Module { private final ForgeConfigSpec.ConfigValue mode; diff --git a/src/main/java/co/fantabos/bscv/Mod.java b/src/main/java/co/fantabos/bscv/Module.java similarity index 91% rename from src/main/java/co/fantabos/bscv/Mod.java rename to src/main/java/co/fantabos/bscv/Module.java index 50de9c1..d157a6d 100644 --- a/src/main/java/co/fantabos/bscv/Mod.java +++ b/src/main/java/co/fantabos/bscv/Module.java @@ -8,7 +8,7 @@ import net.minecraft.command.Commands; import net.minecraftforge.common.ForgeConfigSpec; import net.minecraftforge.common.MinecraftForge; -public abstract class Mod { +public abstract class Module { public enum Group { CORE, BUILD, @@ -20,7 +20,7 @@ public abstract class Mod { public final Group group; public final ForgeConfigSpec.ConfigValue enabled; - protected Mod(String name, Group group, ForgeConfigSpec.Builder builder) { + protected Module(String name, Group group, ForgeConfigSpec.Builder builder) { this.name = name; this.group = group;