Class SimpleCommandMeta.Builder

    • Method Detail

      • with

        public @NonNull SimpleCommandMeta.Builder with​(@NonNull CommandMeta commandMeta)
        Copy all values from another command meta instance
        Parameters:
        commandMeta - Existing instance
        Returns:
        Builder instance
      • with

        @Deprecated
        public @NonNull SimpleCommandMeta.Builder with​(@NonNull java.lang.String key,
                                                       @NonNull java.lang.String value)
        Deprecated.
        For removal since 1.3.0, use the typesafe alternative instead
        Store a new key-value pair in the meta map
        Parameters:
        key - Key
        value - Value
        Returns:
        Builder instance
      • with

        public <V> @NonNull SimpleCommandMeta.Builder with​(@NonNull CommandMeta.Key<V> key,
                                                           @NonNull V value)
        Store a new key-value pair in the meta map
        Type Parameters:
        V - Value type
        Parameters:
        key - Key
        value - Value
        Returns:
        Builder instance
        Since:
        1.3.0
      • build

        public @NonNull SimpleCommandMeta build()
        Construct a new meta instance
        Returns:
        Meta instance