Class ItemArgument

java.lang.Object
net.minecraft.command.arguments.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

    • ItemArgument

      public ItemArgument()
  • Method Details

    • item

      public static ItemArgument item()
    • parse

      public ItemInput parse(com.mojang.brigadier.StringReader p_parse_1_) 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_197316_0_, String p_197316_1_)
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
      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>