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 Details

    • invalidObjectIdError

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType invalidObjectIdError
  • Constructor Details

    • ObjectIdArgument

      public ObjectIdArgument()
  • Method Details

    • objectId

      public static ObjectIdArgument objectId()
    • parse

      public org.bson.types.ObjectId parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<org.bson.types.ObjectId>