[Feature] Update Checker
This commit is contained in:
parent
2ef9e51ef1
commit
69d472d107
21 changed files with 633 additions and 22 deletions
|
@ -31,11 +31,10 @@ public class ClientConfig extends NamedPathConfig {
|
|||
);
|
||||
@ConfigUI(leftPadding = 8)
|
||||
public static final DependendConfigToken<Boolean> ACCEPT_MODS = DependendConfigToken.Boolean(
|
||||
false,
|
||||
true,
|
||||
"acceptMods",
|
||||
AutoSync.SYNC_CATEGORY,
|
||||
(config) -> config.get(
|
||||
ENABLED)
|
||||
(config) -> config.get(ENABLED)
|
||||
);
|
||||
@ConfigUI(leftPadding = 8)
|
||||
public static final DependendConfigToken<Boolean> DISPLAY_MOD_INFO = DependendConfigToken.Boolean(
|
||||
|
@ -72,6 +71,19 @@ public class ClientConfig extends NamedPathConfig {
|
|||
"rendering"
|
||||
);
|
||||
|
||||
public static final ConfigToken<Boolean> SHOW_UPDATE_INFO = ConfigToken.Boolean(
|
||||
true,
|
||||
"showUpdateInfo",
|
||||
"ui"
|
||||
);
|
||||
|
||||
@ConfigUI(leftPadding = 8)
|
||||
public static final ConfigToken<Boolean> NO_DONOR = ConfigToken.Boolean(
|
||||
false,
|
||||
"no_donor",
|
||||
"version"
|
||||
);
|
||||
|
||||
public ClientConfig() {
|
||||
super(BCLib.MOD_ID, "client", false);
|
||||
}
|
||||
|
@ -112,6 +124,14 @@ public class ClientConfig extends NamedPathConfig {
|
|||
return get(CUSTOM_FOG_RENDERING);
|
||||
}
|
||||
|
||||
public boolean showUpdateInfo() {
|
||||
return get(SHOW_UPDATE_INFO);
|
||||
}
|
||||
|
||||
public boolean isDonor() {
|
||||
return !get(NO_DONOR);
|
||||
}
|
||||
|
||||
public float fogDensity() {
|
||||
return get(FOG_DENSITY);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue