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

    • BlockStateArgument

      public BlockStateArgument()
  • Method Details

    • block

      public static BlockStateArgument block()
    • parse

      public BlockInput parse(com.mojang.brigadier.StringReader p_116122_) 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> p_116124_, String p_116125_)
    • listSuggestions

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