Created
April 17, 2024 21:25
-
-
Save emortaldev/4de77d5941bdc6c8224399925ec40d1a to your computer and use it in GitHub Desktop.
ArgumentSound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArgumentSound extends ArgumentRegistry<Key> { | |
public ArgumentSound(String id) { | |
super(id); | |
suggestionType = SuggestionType.AVAILABLE_SOUNDS; | |
} | |
@Override | |
public String parser() { | |
return "minecraft:resource_location"; | |
} | |
@Override | |
public Key getRegistry(@NotNull String s) { | |
return Key.key(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment