Package cloud.commandframework.meta
Class SimpleCommandMeta.Builder
java.lang.Object
cloud.commandframework.meta.SimpleCommandMeta.Builder
- Enclosing class:
- SimpleCommandMeta
Builder for
SimpleCommandMeta-
Method Summary
Modifier and TypeMethodDescription@NonNull SimpleCommandMetabuild()Construct a new meta instance@NonNull SimpleCommandMeta.Builderwith(@NonNull CommandMeta commandMeta) Copy all values from another command meta instance<V> @NonNull SimpleCommandMeta.Builderwith(@NonNull CommandMeta.Key<V> key, @NonNull V value) Store a new key-value pair in the meta map@NonNull SimpleCommandMeta.BuilderDeprecated.
-
Method Details
-
with
Copy all values from another command meta instance- Parameters:
commandMeta- Existing instance- Returns:
- Builder instance
-
with
@Deprecated @API(status=DEPRECATED, since="1.3.0") public @NonNull SimpleCommandMeta.Builder with(@NonNull String key, @NonNull String value) Deprecated.For removal since 1.3.0, usethe typesafe alternativeinsteadStore a new key-value pair in the meta map- Parameters:
key- Keyvalue- Value- Returns:
- Builder instance
-
with
@API(status=STABLE, since="1.3.0") 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- Keyvalue- Value- Returns:
- Builder instance
- Since:
- 1.3.0
-
build
Construct a new meta instance- Returns:
- Meta instance
-
the typesafe alternativeinstead