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 named net/minecraft/command/argument/ItemStackArgumentType
intermediary net/minecraft/class_2287
official gy
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private final ItemStringReader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ItemStackArgument
getItemStackArgument
(com.mojang.brigadier.context.CommandContext<S> context, String name) static ItemStackArgumentType
itemStack
(CommandRegistryAccess commandRegistryAccess) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/ItemStackArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_10790
Lnet/minecraft/class_2287;field_10790:Ljava/util/Collection;
official a
Lgy;a:Ljava/util/Collection;
-
reader
- Mappings:
Namespace Name Mixin selector named reader
Lnet/minecraft/command/argument/ItemStackArgumentType;reader:Lnet/minecraft/command/argument/ItemStringReader;
intermediary field_48954
Lnet/minecraft/class_2287;field_48954:Lnet/minecraft/class_2291;
official b
Lgy;b:Lha;
-
-
Constructor Details
-
ItemStackArgumentType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/ItemStackArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
intermediary <init>
Lnet/minecraft/class_2287;<init>(Lnet/minecraft/class_7157;)V
official <init>
Lgy;<init>(Lel;)V
-
-
Method Details
-
itemStack
- Mappings:
Namespace Name Mixin selector named itemStack
Lnet/minecraft/command/argument/ItemStackArgumentType;itemStack(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/ItemStackArgumentType;
intermediary method_9776
Lnet/minecraft/class_2287;method_9776(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2287;
official a
Lgy;a(Lel;)Lgy;
-
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 named parse
Lnet/minecraft/command/argument/ItemStackArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemStackArgument;
intermediary method_9778
Lnet/minecraft/class_2287;method_9778(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2290;
official a
Lgy;a(Lcom/mojang/brigadier/StringReader;)Lgz;
-
getItemStackArgument
public static <S> ItemStackArgument getItemStackArgument(com.mojang.brigadier.context.CommandContext<S> context, String name) - Mappings:
Namespace Name Mixin selector named getItemStackArgument
Lnet/minecraft/command/argument/ItemStackArgumentType;getItemStackArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/ItemStackArgument;
intermediary method_9777
Lnet/minecraft/class_2287;method_9777(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2290;
official a
Lgy;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lgz;
-
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 named listSuggestions
Lnet/minecraft/command/argument/ItemStackArgumentType;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;
official listSuggestions
Lgy;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>
-