public class BlockPredicateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
Modifier and Type | Class and Description |
---|---|
static interface |
BlockPredicateArgumentType.BlockPredicate |
(package private) static class |
BlockPredicateArgumentType.StatePredicate |
(package private) static class |
BlockPredicateArgumentType.TagPredicate |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_TAG_EXCEPTION |
Constructor and Description |
---|
BlockPredicateArgumentType() |
Modifier and Type | Method and Description |
---|---|
static BlockPredicateArgumentType |
blockPredicate() |
static Predicate<CachedBlockPosition> |
getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
BlockPredicateArgumentType.BlockPredicate |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION
public static BlockPredicateArgumentType blockPredicate()
public BlockPredicateArgumentType.BlockPredicate parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
com.mojang.brigadier.exceptions.CommandSyntaxException
public static Predicate<CachedBlockPosition> getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>