Class BlockStateArgumentType

java.lang.Object
net.minecraft.command.argument.BlockStateArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>

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

  • Constructor Details

    • BlockStateArgumentType

      public BlockStateArgumentType()
  • Method Details

    • blockState

      public static BlockStateArgumentType blockState()
    • parse

      public BlockStateArgument parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getBlockState

      public static BlockStateArgument getBlockState​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> 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<BlockStateArgument>
    • getExamples

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