Class BlockArgument
java.lang.Object
com.zenith.command.brigadier.BlockArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<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()static BlockgetBlock(com.mojang.brigadier.context.CommandContext<CommandContext> context, String name) parse(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, listSuggestions, parse
-
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
-