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 fj
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 Lfj;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

      public static ItemStackArgumentType itemStack()
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a()Lfj;
      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 interface com.mojang.brigadier.arguments.ArgumentType<ItemStackArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a(Lcom/mojang/brigadier/StringReader;)Lfk;
      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 Lfj;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lfk;
      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 Lfj;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>