mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 03:17:53 +01:00
Rename class
This commit is contained in:
parent
178dd6c44e
commit
6f946fcedc
4 changed files with 9 additions and 9 deletions
|
@ -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()) {
|
||||
|
|
|
@ -20,7 +20,7 @@ public class FlwImplXplatImpl implements FlwImplXplat {
|
|||
|
||||
@Override
|
||||
public FlwConfig getConfig() {
|
||||
return ForgeFlwConfig.INSTANCE;
|
||||
return NeoForgeFlwConfig.INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
Loading…
Reference in a new issue