Class BlockArgument
java.lang.Object
com.zenith.command.brigadier.BlockArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Block>, SerializableArgumentType<Block>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockArgumentblock()@NonNull CommandParserstatic BlockgetBlock(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parseMethods inherited from interface SerializableArgumentType
askServerForSuggestions, commandProperties
-
Field Details
-
BLOCK_NOT_FOUND
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType BLOCK_NOT_FOUND -
UNSUPPORTED_ARGUMENT
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNSUPPORTED_ARGUMENT
-
-
Constructor Details
-
BlockArgument
public BlockArgument()
-
-
Method Details
-
block
-
getBlock
public static Block getBlock(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) -
parse
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Block>
-
listSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Block>
-