Class ObjectIdArgument
java.lang.Object
net.rocketpowered.connector.commands.arguments.ObjectIdArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>
public class ObjectIdArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectIdArgumentobjectId()org.bson.types.ObjectIdparse(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
listSuggestions
-
Field Details
-
invalidObjectIdError
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType invalidObjectIdError
-
-
Constructor Details
-
ObjectIdArgument
public ObjectIdArgument()
-
-
Method Details
-
objectId
-
parse
public org.bson.types.ObjectId parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>
-