public class BlockPredicateArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.IResult>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BlockPredicateArgument.BlockPredicate |
static interface |
BlockPredicateArgument.IResult |
(package private) static class |
BlockPredicateArgument.TagPredicate |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_TAG |
Constructor and Description |
---|
BlockPredicateArgument() |
Modifier and Type | Method and Description |
---|---|
static BlockPredicateArgument |
blockPredicate() |
static java.util.function.Predicate<CachedBlockInfo> |
getBlockPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
java.util.Collection<java.lang.String> |
getExamples() |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
BlockPredicateArgument.IResult |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG
public static BlockPredicateArgument blockPredicate()
public BlockPredicateArgument.IResult parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.IResult>
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.function.Predicate<CachedBlockInfo> getBlockPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.IResult>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgument.IResult>