Module net.minestom.server
Class ArgumentBlockState
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<Block>
net.minestom.server.command.builder.arguments.minecraft.ArgumentBlockState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, suggestionType, useRemaining
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse
(CommandSender sender, String input) Parses the given input, and throw anArgumentSyntaxException
if the input cannot be converted toT
parser()
static Block
staticParse
(String input) Deprecated.toString()
Methods inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, equals, filter, getCallback, getDefaultValue, getId, getSuggestionCallback, hasErrorCallback, hashCode, hasSuggestion, isOptional, map, map, nodeProperties, parse, setCallback, setDefaultValue, setDefaultValue, setDefaultValue, setSuggestionCallback, suggestionType, useRemaining
-
Field Details
-
NO_BLOCK
public static final int NO_BLOCK- See Also:
-
INVALID_BLOCK
public static final int INVALID_BLOCK- See Also:
-
INVALID_PROPERTY
public static final int INVALID_PROPERTY- See Also:
-
INVALID_PROPERTY_VALUE
public static final int INVALID_PROPERTY_VALUE- See Also:
-
-
Constructor Details
-
ArgumentBlockState
-
-
Method Details
-
parse
Description copied from class:Argument
Parses the given input, and throw anArgumentSyntaxException
if the input cannot be converted toT
- Specified by:
parse
in classArgument<Block>
- Parameters:
input
- the argument to parse- Returns:
- the parsed argument
- Throws:
ArgumentSyntaxException
- ifvalue
is not valid
-
parser
-
staticParse
Deprecated.- Throws:
ArgumentSyntaxException
-
toString
-
Argument.parse(CommandSender, Argument)