Package net.minecraft.command.argument
Class BlockPredicateArgumentType
java.lang.Object
net.minecraft.command.argument.BlockPredicateArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
public class BlockPredicateArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
- Mappings:
Namespace Name named net/minecraft/command/argument/BlockPredicateArgumentType
intermediary net/minecraft/class_2252
official gl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> private final RegistryWrapper
<Block> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicateArgumentType
blockPredicate
(CommandRegistryAccess commandRegistryAccess) static Predicate
<CachedBlockPosition> getBlockPredicate
(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) parse
(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/BlockPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_10672
Lnet/minecraft/class_2252;field_10672:Ljava/util/Collection;
official a
Lgl;a:Ljava/util/Collection;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector named registryWrapper
Lnet/minecraft/command/argument/BlockPredicateArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
intermediary field_37963
Lnet/minecraft/class_2252;field_37963:Lnet/minecraft/class_7225;
official b
Lgl;b:Ljo;
-
-
Constructor Details
-
BlockPredicateArgumentType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/BlockPredicateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
intermediary <init>
Lnet/minecraft/class_2252;<init>(Lnet/minecraft/class_7157;)V
official <init>
Lgl;<init>(Lep;)V
-
-
Method Details
-
blockPredicate
public static BlockPredicateArgumentType blockPredicate(CommandRegistryAccess commandRegistryAccess) - Mappings:
Namespace Name Mixin selector named blockPredicate
Lnet/minecraft/command/argument/BlockPredicateArgumentType;blockPredicate(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/BlockPredicateArgumentType;
intermediary method_9645
Lnet/minecraft/class_2252;method_9645(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2252;
official a
Lgl;a(Lep;)Lgl;
-
parse
public BlockPredicateArgumentType.BlockPredicate parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/BlockPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/BlockPredicateArgumentType$BlockPredicate;
intermediary method_9642
Lnet/minecraft/class_2252;method_9642(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2252$class_2254;
official a
Lgl;a(Lcom/mojang/brigadier/StringReader;)Lgl$b;
-
parse
public static BlockPredicateArgumentType.BlockPredicate parse(RegistryWrapper<Block> registryWrapper, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/BlockPredicateArgumentType;parse(Lnet/minecraft/registry/RegistryWrapper;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/BlockPredicateArgumentType$BlockPredicate;
intermediary method_41953
Lnet/minecraft/class_2252;method_41953(Lnet/minecraft/class_7225;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2252$class_2254;
official a
Lgl;a(Ljo;Lcom/mojang/brigadier/StringReader;)Lgl$b;
-
getBlockPredicate
public static Predicate<CachedBlockPosition> getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getBlockPredicate
Lnet/minecraft/command/argument/BlockPredicateArgumentType;getBlockPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
intermediary method_9644
Lnet/minecraft/class_2252;method_9644(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
official a
Lgl;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
-
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<BlockPredicateArgumentType.BlockPredicate>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/BlockPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2252;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lgl;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<BlockPredicateArgumentType.BlockPredicate>
-