Class ItemArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class ItemArgumentType implements ArgumentType<T>
NI物品生成器参数类型
-
-
Method Summary
Modifier and Type Method Description static ItemArgumentType
item()
static ItemGenerator
getItem(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
static ItemSelector
getItemSelector(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
ItemSelector
parse(@NonNull() StringReader reader)
<S> CompletableFuture<Suggestions>
listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)
Collection<String>
getExamples()
-
-
Method Detail
-
item
@NonNull() static ItemArgumentType item()
-
getItem
@Nullable() static ItemGenerator getItem(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
getItemSelector
@NonNull() static ItemSelector getItemSelector(@NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
parse
@NonNull() ItemSelector parse(@NonNull() StringReader reader)
-
listSuggestions
<S> CompletableFuture<Suggestions> listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)
-
getExamples
@NonNull() Collection<String> getExamples()
-
-
-
-