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>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBlockPredicateArgumentType.BlockPredicate(package private) static classBlockPredicateArgumentType.StatePredicate(package private) static classBlockPredicateArgumentType.TagPredicate -
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_TAG_EXCEPTION -
Constructor Summary
Constructors Constructor Description BlockPredicateArgumentType() -
Method Summary
Modifier and Type Method Description static BlockPredicateArgumentTypeblockPredicate()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.BlockPredicateparse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
-
UNKNOWN_TAG_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION
-
-
Constructor Details
-
BlockPredicateArgumentType
public BlockPredicateArgumentType()
-
-
Method Details
-
blockPredicate
-
parse
public BlockPredicateArgumentType.BlockPredicate parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPredicate
public static Predicate<CachedBlockPosition> getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
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<BlockPredicateArgumentType.BlockPredicate>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<BlockPredicateArgumentType.BlockPredicate>
-