Package net.minecraft.command.argument
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>
- Mappings:
Namespace Name named net/minecraft/command/argument/BlockStateArgumentType
intermediary net/minecraft/class_2257
official gi
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private final RegistryWrapper
<Block> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockStateArgumentType
blockState
(CommandRegistryAccess commandRegistryAccess) static BlockStateArgument
getBlockState
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/BlockStateArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_10679
Lnet/minecraft/class_2257;field_10679:Ljava/util/Collection;
official a
Lgi;a:Ljava/util/Collection;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector named registryWrapper
Lnet/minecraft/command/argument/BlockStateArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
intermediary field_37964
Lnet/minecraft/class_2257;field_37964:Lnet/minecraft/class_7225;
official b
Lgi;b:Ljk;
-
-
Constructor Details
-
BlockStateArgumentType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/BlockStateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
intermediary <init>
Lnet/minecraft/class_2257;<init>(Lnet/minecraft/class_7157;)V
official <init>
Lgi;<init>(Lel;)V
-
-
Method Details
-
blockState
- Mappings:
Namespace Name Mixin selector named blockState
Lnet/minecraft/command/argument/BlockStateArgumentType;blockState(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/BlockStateArgumentType;
intermediary method_9653
Lnet/minecraft/class_2257;method_9653(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2257;
official a
Lgi;a(Lel;)Lgi;
-
parse
public BlockStateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/BlockStateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/BlockStateArgument;
intermediary method_9654
Lnet/minecraft/class_2257;method_9654(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2247;
official a
Lgi;a(Lcom/mojang/brigadier/StringReader;)Lgg;
-
getBlockState
public static BlockStateArgument getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/command/argument/BlockStateArgumentType;getBlockState(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/BlockStateArgument;
intermediary method_9655
Lnet/minecraft/class_2257;method_9655(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2247;
official a
Lgi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lgg;
-
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 interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/BlockStateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2257;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lgi;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
-