replace IConfigEntry apiValuePresent -> apiIsOverriding
This commit is contained in:
+2
-1
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user