Rename class

This commit is contained in:
IThundxr 2024-10-12 15:45:14 -04:00
parent 178dd6c44e
commit 6f946fcedc
Failed to generate hash of commit
4 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@ public final class FlwCommands {
public static void registerClientCommands(RegisterClientCommandsEvent event) {
LiteralArgumentBuilder<CommandSourceStack> command = Commands.literal("flywheel");
ConfigValue<String> backendValue = ForgeFlwConfig.INSTANCE.client.backend;
ConfigValue<String> backendValue = NeoForgeFlwConfig.INSTANCE.client.backend;
command.then(Commands.literal("backend")
.executes(context -> {
Backend backend = BackendManager.currentBackend();
@ -58,7 +58,7 @@ public final class FlwCommands {
return Command.SINGLE_SUCCESS;
})));
BooleanValue limitUpdatesValue = ForgeFlwConfig.INSTANCE.client.limitUpdates;
BooleanValue limitUpdatesValue = NeoForgeFlwConfig.INSTANCE.client.limitUpdates;
command.then(Commands.literal("limitUpdates")
.executes(context -> {
if (limitUpdatesValue.get()) {
@ -123,7 +123,7 @@ public final class FlwCommands {
return Command.SINGLE_SUCCESS;
})));
var lightSmoothnessValue = ForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness;
var lightSmoothnessValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness;
command.then(Commands.literal("lightSmoothness")
.then(Commands.argument("mode", LightSmoothnessArgument.INSTANCE)
.executes(context -> {
@ -137,7 +137,7 @@ public final class FlwCommands {
return Command.SINGLE_SUCCESS;
})));
var useLightDirectionsValue = ForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections;
var useLightDirectionsValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections;
command.then(Commands.literal("useLightDirections")
.executes(context -> {
if (useLightDirectionsValue.get()) {

View file

@ -20,7 +20,7 @@ public class FlwImplXplatImpl implements FlwImplXplat {
@Override
public FlwConfig getConfig() {
return ForgeFlwConfig.INSTANCE;
return NeoForgeFlwConfig.INSTANCE;
}
@Override

View file

@ -43,7 +43,7 @@ public final class FlywheelNeoForge {
IEventBus forgeEventBus = NeoForge.EVENT_BUS;
ForgeFlwConfig.INSTANCE.registerSpecs(modContainer);
NeoForgeFlwConfig.INSTANCE.registerSpecs(modContainer);
registerImplEventListeners(forgeEventBus, modEventBus);
registerLibEventListeners(forgeEventBus, modEventBus);

View file

@ -13,13 +13,13 @@ import net.neoforged.fml.ModContainer;
import net.neoforged.fml.config.ModConfig;
import net.neoforged.neoforge.common.ModConfigSpec;
public class ForgeFlwConfig implements FlwConfig {
public static final ForgeFlwConfig INSTANCE = new ForgeFlwConfig();
public class NeoForgeFlwConfig implements FlwConfig {
public static final NeoForgeFlwConfig INSTANCE = new NeoForgeFlwConfig();
public final ClientConfig client;
private final ModConfigSpec clientSpec;
private ForgeFlwConfig() {
private NeoForgeFlwConfig() {
Pair<ClientConfig, ModConfigSpec> clientPair = new ModConfigSpec.Builder().configure(ClientConfig::new);
this.client = clientPair.getLeft();
clientSpec = clientPair.getRight();