Class InstantArgument

java.lang.Object
net.rocketpowered.connector.commands.arguments.InstantArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Instant>

public class InstantArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<Instant>
  • Constructor Details

    • InstantArgument

      public InstantArgument()
  • Method Details

    • instant

      public static InstantArgument instant()
    • parse

      public Instant parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Instant>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Instant>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Instant>