Class RegistryCommandArgument
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType,io.papermc.paper.command.brigadier.argument.CustomArgumentType,io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted
public final class RegistryCommandArgument<T extends Keyed> implements CustomArgumentType.Converted<T, NamespacedKey>
-
-
Constructor Summary
Constructors Constructor Description RegistryCommandArgument(PylonRegistry<T> registry)
-
Method Summary
Modifier and Type Method Description Tconvert(NamespacedKey nativeType)<S extends Any> CompletableFuture<Suggestions>listSuggestions(CommandContext<S> context, SuggestionsBuilder builder)ArgumentType<NamespacedKey>getNativeType()-
Methods inherited from class io.github.pylonmc.pylon.core.command.RegistryCommandArgument
getExamples, getNativeType -
Methods inherited from class io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted
convert -
Methods inherited from class com.mojang.brigadier.arguments.ArgumentType
parse, parse -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegistryCommandArgument
RegistryCommandArgument(PylonRegistry<T> registry)
-
-
Method Detail
-
convert
T convert(NamespacedKey nativeType)
-
listSuggestions
<S extends Any> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder)
-
getNativeType
ArgumentType<NamespacedKey> getNativeType()
-
-
-
-