public abstract class Config<T>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Config(java.lang.String key,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected abstract net.kyori.text.Component |
apply(net.kyori.text.TranslatableComponent placeholder) |
protected void |
checkValue(T value) |
protected abstract Config<T> |
copyForDefault() |
java.lang.String |
getKey() |
T |
getValue() |
void |
setValue(T value) |
net.kyori.text.Component |
value() |
Config<T> |
value(T value) |
protected net.kyori.text.Component |
wrapInternal(java.util.List<net.kyori.text.Component> args) |
protected Config(java.lang.String key, @Nullable T defaultValue)
public java.lang.String getKey()
@Nullable public T getValue()
public void setValue(@Nullable T value)
protected void checkValue(@Nullable T value)
public net.kyori.text.Component value()
protected net.kyori.text.Component wrapInternal(java.util.List<net.kyori.text.Component> args)
protected abstract net.kyori.text.Component apply(net.kyori.text.TranslatableComponent placeholder)