Class MapArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class MapArgumentType<T> implements ArgumentType<T>NI物品生成器参数类型
-
-
Method Summary
Modifier and Type Method Description static <V> MapArgumentType<V>map(@NonNull() Supplier<Map<String, V>> mapGetter, @NonNull() Function<String, String> nullMessageGetter)static <V> VgetValue(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)Tparse(@NonNull() StringReader reader)<S> CompletableFuture<Suggestions>listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)Collection<String>getExamples()-
-
Method Detail
-
map
@NonNull() static <V> MapArgumentType<V> map(@NonNull() Supplier<Map<String, V>> mapGetter, @NonNull() Function<String, String> nullMessageGetter)
-
getValue
@NonNull() static <V> V getValue(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
listSuggestions
<S> CompletableFuture<Suggestions> listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)
-
getExamples
@NonNull() Collection<String> getExamples()
-
-
-
-