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 fw
intermediary net/minecraft/class_2287
named net/minecraft/command/argument/ItemStackArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official a Lfw;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;
    • registryWrapper

      private final RegistryWrapper<Item> registryWrapper
      Mappings:
      Namespace Name Mixin selector
      official b Lfw;b:Lhg;
      intermediary field_37970 Lnet/minecraft/class_2287;field_37970:Lnet/minecraft/class_7225;
      named registryWrapper Lnet/minecraft/command/argument/ItemStackArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
  • Constructor Details

    • ItemStackArgumentType

      public ItemStackArgumentType(CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfw;<init>(Ldn;)V
      intermediary <init> Lnet/minecraft/class_2287;<init>(Lnet/minecraft/class_7157;)V
      named <init> Lnet/minecraft/command/argument/ItemStackArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
  • Method Details

    • itemStack

      public static ItemStackArgumentType itemStack(CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Lfw;a(Ldn;)Lfw;
      intermediary method_9776 Lnet/minecraft/class_2287;method_9776(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2287;
      named itemStack Lnet/minecraft/command/argument/ItemStackArgumentType;itemStack(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/ItemStackArgumentType;
    • parse

      public ItemStackArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfw;a(Lcom/mojang/brigadier/StringReader;)Lfx;
      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 Lfw;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lfx;
      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 interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Lfw;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

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>