replace IConfigEntry apiValuePresent -> apiIsOverriding

This commit is contained in:
James Seibel
2025-09-28 16:16:31 -05:00
parent 2705cb679e
commit cb654f2429
2 changed files with 3 additions and 2 deletions
@@ -36,7 +36,8 @@ public interface IConfigEntry<T>
void setApiValue(T newApiValue);
T getApiValue();
boolean apiValuePresent();
/** @return true if this config is able to be overridden by the API and an API user has set it */
boolean apiIsOverriding();
/** Returns true if this config can be set via the API. */
boolean getAllowApiOverride();
@@ -96,7 +96,7 @@ public class ConfigEntry<T> extends AbstractConfigType<T, ConfigEntry<T>> implem
@Override
public T getApiValue() { return this.apiValue; }
@Override
public boolean apiValuePresent() { return this.apiValue != null; }
public boolean apiIsOverriding() { return this.allowApiOverride && this.apiValue != null; }
@Override
public boolean getAllowApiOverride() { return this.allowApiOverride; }