Class BlockStateArgument

java.lang.Object
net.minecraft.commands.arguments.blocks.BlockStateArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BlockInput>

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

  • Constructor Details

  • Method Details

    • block

      public static BlockStateArgument block(CommandBuildContext pBuildContext)
    • parse

      public BlockInput parse(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<BlockInput>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getBlock

      public static BlockInput getBlock(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName)
    • listSuggestions

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

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