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>
  • Field Details

  • Constructor Details

    • ItemStackArgumentType

      public ItemStackArgumentType()
  • Method Details

    • itemStack

      public static ItemStackArgumentType itemStack()
    • 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
    • getItemStackArgument

      public static <S> ItemStackArgument getItemStackArgument​(com.mojang.brigadier.context.CommandContext<S> context, String name)
    • 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>
    • getExamples

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