Class ItemArgument

java.lang.Object
net.minecraft.commands.arguments.item.ItemArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemInput>

public class ItemArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemInput>
  • Field Details

  • Constructor Details

  • Method Details

    • item

      public static ItemArgument item(CommandBuildContext p_235280_)
    • parse

      public ItemInput parse(com.mojang.brigadier.StringReader p_120962_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ItemInput>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getItem

      public static <S> ItemInput getItem(com.mojang.brigadier.context.CommandContext<S> p_120964_, String p_120965_)
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_120968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120969_)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<ItemInput>
    • getExamples

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