fix: name collision

This commit is contained in:
dev@ftbsc 2023-01-26 22:48:26 +01:00
parent c207cdbfb4
commit b56e37df86
3 changed files with 8 additions and 6 deletions

View file

@ -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<co.fantabos.bscv.Mod> mods;
public static List<Module> 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<co.fantabos.bscv.Mod>();
BoSCoVicino.mods = new ArrayList<Module>();
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());
}
}

View file

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

View file

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