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

    • Constructor Detail

      • AbstractValuePluginParameter

        protected AbstractValuePluginParameter​(@NotNull
                                               V value)
        Creates a new instance.
        Parameters:
        value - the initial value
    • Method Detail

      • getValue

        @NotNull
        public V getValue()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value
      • getValueOrNull

        @NotNull
        public V getValueOrNull()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value or null if the the value is invalid
      • setValue

        public void setValue​(@NotNull
                             V value)
        Updates the parameter value.
        Parameters:
        value - the new value