Class ItemArgument
java.lang.Object
net.minecraft.commands.arguments.item.ItemArgument
- All Implemented Interfaces:
ArgumentType<ItemInput>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String> private final ItemParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ItemInputgetItem(CommandContext<S> context, String name) static ItemArgumentitem(CommandBuildContext context) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
parser
-
-
Constructor Details
-
ItemArgument
-
-
Method Details
-
item
-
parse
- Specified by:
parsein interfaceArgumentType<ItemInput>- Throws:
CommandSyntaxException
-
getItem
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<ItemInput>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<ItemInput>
-