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>
- Mappings:
Namespace Name official ew
intermediary net/minecraft/class_2287
named net/minecraft/command/argument/ItemStackArgumentType
-
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> ItemStackArgument
getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name)
static ItemStackArgumentType
itemStack()
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
ItemStackArgument
parse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lew;a:Ljava/util/Collection;
intermediary field_10790
Lnet/minecraft/class_2287;field_10790:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/ItemStackArgumentType;EXAMPLES:Ljava/util/Collection;
-
-
Constructor Details
-
ItemStackArgumentType
public ItemStackArgumentType()
-
-
Method Details
-
itemStack
- Mappings:
Namespace Name Mixin selector official a
Lew;a()Lew;
intermediary method_9776
Lnet/minecraft/class_2287;method_9776()Lnet/minecraft/class_2287;
named itemStack
Lnet/minecraft/command/argument/ItemStackArgumentType;itemStack()Lnet/minecraft/command/argument/ItemStackArgumentType;
-
parse
public ItemStackArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lew;a(Lcom/mojang/brigadier/StringReader;)Lex;
intermediary method_9778
Lnet/minecraft/class_2287;method_9778(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2290;
named parse
Lnet/minecraft/command/argument/ItemStackArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemStackArgument;
-
getItemStackArgument
public static <S> ItemStackArgument getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name)- Mappings:
Namespace Name Mixin selector official a
Lew;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lex;
intermediary method_9777
Lnet/minecraft/class_2287;method_9777(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2290;
named getItemStackArgument
Lnet/minecraft/command/argument/ItemStackArgumentType;getItemStackArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/ItemStackArgument;
-
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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Lew;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2287;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named listSuggestions
Lnet/minecraft/command/argument/ItemStackArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
- Mappings:
Namespace Name Mixin selector official getExamples
Lew;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2287;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/ItemStackArgumentType;getExamples()Ljava/util/Collection;
-