Package net.minecraft.command.argument
Class ItemStackArgumentType
java.lang.Object
net.minecraft.command.argument.ItemStackArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
public class ItemStackArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLES -
Constructor Summary
Constructors Constructor Description ItemStackArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static <S> ItemStackArgumentgetItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name)static ItemStackArgumentTypeitemStack()<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)ItemStackArgumentparse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
ItemStackArgumentType
public ItemStackArgumentType()
-
-
Method Details
-
itemStack
-
parse
public ItemStackArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getItemStackArgument
public static <S> ItemStackArgument getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name) -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
-