Class SoundLocationArgument
java.lang.Object
de.mrjulsen.dragnsounds.commands.arguments.SoundLocationArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SoundLocation>
public class SoundLocationArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<SoundLocation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoundLocation
getFile
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static SoundLocationArgument
location()
parse
(com.mojang.brigadier.StringReader reader)
-
Constructor Details
-
SoundLocationArgument
public SoundLocationArgument()
-
-
Method Details
-
location
-
getFile
public static SoundLocation getFile(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name) -
parse
public SoundLocation parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<SoundLocation>
- 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 interfacecom.mojang.brigadier.arguments.ArgumentType<SoundLocation>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<SoundLocation>
-