public abstract class AbstractValuePluginParameter<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,V> extends AbstractPluginParameter<G,A,R,V>
PluginParameter implementations for which the
string representation of the value is calculated from the value.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValuePluginParameter(V value)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
V |
getValue()
Returns the current value of this parameter.
|
V |
getValueOrNull()
Returns the current value of this parameter.
|
void |
setValue(V value)
Updates the parameter value.
|
addPluginParameterListener, changed, getDescription, getName, removePluginParameterListener, setDescription, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameterType, getStringValue, setStringValue, visitprotected AbstractValuePluginParameter(@NotNull
V value)
value - the initial value@NotNull public V getValue()
PluginParameter@NotNull public V getValueOrNull()
PluginParameternull if the the value is invalidpublic void setValue(@NotNull
V value)
value - the new value