Class ArgumentItemStack
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<ItemStack>
net.minestom.server.command.builder.arguments.minecraft.ArgumentItemStack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class Argument
allowSpace, suggestionType, useRemaining -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(CommandSender sender, String input) Parses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toTparser()static ItemStackstaticParse(String input) Deprecated.toString()Methods inherited from class 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_MATERIAL
public static final int NO_MATERIAL- See Also:
-
INVALID_NBT
public static final int INVALID_NBT- See Also:
-
INVALID_MATERIAL
public static final int INVALID_MATERIAL- See Also:
-
INVALID_COMPONENT
public static final int INVALID_COMPONENT- See Also:
-
-
Constructor Details
-
ArgumentItemStack
-
-
Method Details
-
parse
Description copied from class:ArgumentParses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toT- Specified by:
parsein classArgument<ItemStack>- Parameters:
input- the argument to parse- Returns:
- the parsed argument
- Throws:
ArgumentSyntaxException- ifvalueis not valid
-
parser
-
staticParse
Deprecated.- Throws:
ArgumentSyntaxException
-
toString
-
Argument.parse(CommandSender, Argument)