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 official fcintermediary net/minecraft/class_2257named net/minecraft/command/argument/BlockStateArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>private final CommandRegistryWrapper<Block> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockStateArgumentTypeblockState(CommandRegistryAccess commandRegistryAccess) static BlockStateArgumentgetBlockState(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) method_9654(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official aLfc;a:Ljava/util/Collection;intermediary field_10679Lnet/minecraft/class_2257;field_10679:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/BlockStateArgumentType;EXAMPLES:Ljava/util/Collection;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector official bLfc;b:Lhb;intermediary field_37964Lnet/minecraft/class_2257;field_37964:Lnet/minecraft/class_7225;named registryWrapperLnet/minecraft/command/argument/BlockStateArgumentType;registryWrapper:Lnet/minecraft/command/CommandRegistryWrapper;
-
-
Constructor Details
-
BlockStateArgumentType
- Mappings:
Namespace Name Mixin selector official <init>Lfc;<init>(Ldl;)Vintermediary <init>Lnet/minecraft/class_2257;<init>(Lnet/minecraft/class_7157;)Vnamed <init>Lnet/minecraft/command/argument/BlockStateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
-
-
Method Details
-
blockState
- Mappings:
Namespace Name Mixin selector official aLfc;a(Ldl;)Lfc;intermediary method_9653Lnet/minecraft/class_2257;method_9653(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2257;named blockStateLnet/minecraft/command/argument/BlockStateArgumentType;blockState(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/BlockStateArgumentType;
-
method_9654
public BlockStateArgument method_9654(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfc;a(Lcom/mojang/brigadier/StringReader;)Lfa;intermediary method_9654Lnet/minecraft/class_2257;method_9654(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2247;named method_9654Lnet/minecraft/command/argument/BlockStateArgumentType;method_9654(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/BlockStateArgument;
-
getBlockState
public static BlockStateArgument getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official aLfc;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lfa;intermediary method_9655Lnet/minecraft/class_2257;method_9655(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2247;named getBlockStateLnet/minecraft/command/argument/BlockStateArgumentType;getBlockState(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/BlockStateArgument;
-
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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>- Mappings:
Namespace Name Mixin selector official listSuggestionsLfc;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2257;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/BlockStateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<BlockStateArgument>
-