Class SoundFileArgument

java.lang.Object
de.mrjulsen.dragnsounds.commands.arguments.SoundFileArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SoundFile>

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

    • SoundFileArgument

      public SoundFileArgument()
  • Method Details

    • location

      public static SoundFileArgument location()
    • getFile

      public static SoundFile getFile(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name)
    • parse

      public SoundFile parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<SoundFile>
      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<SoundFile>
    • getExamples

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