Class AbstractStringPluginParameter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>,​V>

    • Constructor Detail

      • AbstractStringPluginParameter

        protected AbstractStringPluginParameter​(@NotNull
                                                @NotNull java.lang.String stringValue)
        Creates a new instance.
        Parameters:
        stringValue - the initial value
    • Method Detail

      • getStringValue

        @NotNull
        public @NotNull java.lang.String getStringValue()
        Description copied from interface: PluginParameter
        Returns the string representation of the current value of the parameter.
        Returns:
        the string representation of the value
      • setStringValue

        public boolean setStringValue​(@NotNull
                                      @NotNull java.lang.String stringValue)
        Updates the parameter value.
        Parameters:
        stringValue - the new value
        Returns:
        true if the value was accepted or false if the value was not changed because the new value is invalid