mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-03-04 06:34:40 +01:00
forge porting
This commit is contained in:
parent
0919c0f02b
commit
3453715f81
2 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ public final class FlywheelForge {
|
||||||
if (e.getRegistryKey().equals(Registries.COMMAND_ARGUMENT_TYPE)) {
|
if (e.getRegistryKey().equals(Registries.COMMAND_ARGUMENT_TYPE)) {
|
||||||
e.register(Registries.COMMAND_ARGUMENT_TYPE, Flywheel.rl("backend"), () -> BackendArgument.INFO);
|
e.register(Registries.COMMAND_ARGUMENT_TYPE, Flywheel.rl("backend"), () -> BackendArgument.INFO);
|
||||||
e.register(Registries.COMMAND_ARGUMENT_TYPE, Flywheel.rl("debug_mode"), () -> DebugModeArgument.INFO);
|
e.register(Registries.COMMAND_ARGUMENT_TYPE, Flywheel.rl("debug_mode"), () -> DebugModeArgument.INFO);
|
||||||
e.register(ForgeRegistries.Keys.COMMAND_ARGUMENT_TYPES, Flywheel.rl("light_smoothness"), () -> LightSmoothnessArgument.INFO);
|
e.register(Registries.COMMAND_ARGUMENT_TYPE, Flywheel.rl("light_smoothness"), () -> LightSmoothnessArgument.INFO);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,9 +98,9 @@ public class ForgeFlwConfig implements FlwConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ForgeBackendConfig implements BackendConfig {
|
public static class ForgeBackendConfig implements BackendConfig {
|
||||||
public final ForgeConfigSpec.EnumValue<LightSmoothness> lightSmoothness;
|
public final ModConfigSpec.EnumValue<LightSmoothness> lightSmoothness;
|
||||||
|
|
||||||
public ForgeBackendConfig(ForgeConfigSpec.Builder builder) {
|
public ForgeBackendConfig(ModConfigSpec.Builder builder) {
|
||||||
lightSmoothness = builder.comment("How smooth flywheel's shader-based lighting should be. May have a large performance impact.")
|
lightSmoothness = builder.comment("How smooth flywheel's shader-based lighting should be. May have a large performance impact.")
|
||||||
.defineEnum("lightSmoothness", LightSmoothness.SMOOTH);
|
.defineEnum("lightSmoothness", LightSmoothness.SMOOTH);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue