mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +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) {
|
public static void registerClientCommands(RegisterClientCommandsEvent event) {
|
||||||
LiteralArgumentBuilder<CommandSourceStack> command = Commands.literal("flywheel");
|
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")
|
command.then(Commands.literal("backend")
|
||||||
.executes(context -> {
|
.executes(context -> {
|
||||||
Backend backend = BackendManager.currentBackend();
|
Backend backend = BackendManager.currentBackend();
|
||||||
|
@ -58,7 +58,7 @@ public final class FlwCommands {
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})));
|
})));
|
||||||
|
|
||||||
BooleanValue limitUpdatesValue = ForgeFlwConfig.INSTANCE.client.limitUpdates;
|
BooleanValue limitUpdatesValue = NeoForgeFlwConfig.INSTANCE.client.limitUpdates;
|
||||||
command.then(Commands.literal("limitUpdates")
|
command.then(Commands.literal("limitUpdates")
|
||||||
.executes(context -> {
|
.executes(context -> {
|
||||||
if (limitUpdatesValue.get()) {
|
if (limitUpdatesValue.get()) {
|
||||||
|
@ -123,7 +123,7 @@ public final class FlwCommands {
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})));
|
})));
|
||||||
|
|
||||||
var lightSmoothnessValue = ForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness;
|
var lightSmoothnessValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.lightSmoothness;
|
||||||
command.then(Commands.literal("lightSmoothness")
|
command.then(Commands.literal("lightSmoothness")
|
||||||
.then(Commands.argument("mode", LightSmoothnessArgument.INSTANCE)
|
.then(Commands.argument("mode", LightSmoothnessArgument.INSTANCE)
|
||||||
.executes(context -> {
|
.executes(context -> {
|
||||||
|
@ -137,7 +137,7 @@ public final class FlwCommands {
|
||||||
return Command.SINGLE_SUCCESS;
|
return Command.SINGLE_SUCCESS;
|
||||||
})));
|
})));
|
||||||
|
|
||||||
var useLightDirectionsValue = ForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections;
|
var useLightDirectionsValue = NeoForgeFlwConfig.INSTANCE.client.backendConfig.useLightDirections;
|
||||||
command.then(Commands.literal("useLightDirections")
|
command.then(Commands.literal("useLightDirections")
|
||||||
.executes(context -> {
|
.executes(context -> {
|
||||||
if (useLightDirectionsValue.get()) {
|
if (useLightDirectionsValue.get()) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class FlwImplXplatImpl implements FlwImplXplat {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FlwConfig getConfig() {
|
public FlwConfig getConfig() {
|
||||||
return ForgeFlwConfig.INSTANCE;
|
return NeoForgeFlwConfig.INSTANCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -43,7 +43,7 @@ public final class FlywheelNeoForge {
|
||||||
|
|
||||||
IEventBus forgeEventBus = NeoForge.EVENT_BUS;
|
IEventBus forgeEventBus = NeoForge.EVENT_BUS;
|
||||||
|
|
||||||
ForgeFlwConfig.INSTANCE.registerSpecs(modContainer);
|
NeoForgeFlwConfig.INSTANCE.registerSpecs(modContainer);
|
||||||
|
|
||||||
registerImplEventListeners(forgeEventBus, modEventBus);
|
registerImplEventListeners(forgeEventBus, modEventBus);
|
||||||
registerLibEventListeners(forgeEventBus, modEventBus);
|
registerLibEventListeners(forgeEventBus, modEventBus);
|
||||||
|
|
|
@ -13,13 +13,13 @@ import net.neoforged.fml.ModContainer;
|
||||||
import net.neoforged.fml.config.ModConfig;
|
import net.neoforged.fml.config.ModConfig;
|
||||||
import net.neoforged.neoforge.common.ModConfigSpec;
|
import net.neoforged.neoforge.common.ModConfigSpec;
|
||||||
|
|
||||||
public class ForgeFlwConfig implements FlwConfig {
|
public class NeoForgeFlwConfig implements FlwConfig {
|
||||||
public static final ForgeFlwConfig INSTANCE = new ForgeFlwConfig();
|
public static final NeoForgeFlwConfig INSTANCE = new NeoForgeFlwConfig();
|
||||||
|
|
||||||
public final ClientConfig client;
|
public final ClientConfig client;
|
||||||
private final ModConfigSpec clientSpec;
|
private final ModConfigSpec clientSpec;
|
||||||
|
|
||||||
private ForgeFlwConfig() {
|
private NeoForgeFlwConfig() {
|
||||||
Pair<ClientConfig, ModConfigSpec> clientPair = new ModConfigSpec.Builder().configure(ClientConfig::new);
|
Pair<ClientConfig, ModConfigSpec> clientPair = new ModConfigSpec.Builder().configure(ClientConfig::new);
|
||||||
this.client = clientPair.getLeft();
|
this.client = clientPair.getLeft();
|
||||||
clientSpec = clientPair.getRight();
|
clientSpec = clientPair.getRight();
|
Loading…
Reference in a new issue