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