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 T
convert(NamespacedKey nativeType)
<S extends Any> CompletableFuture<Suggestions>
listSuggestions(CommandContext<S> context, SuggestionsBuilder builder)
ArgumentType<NamespacedKey>
getNativeType()
-
Methods inherited from class io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted
convert, parse, parse
-
Methods inherited from class io.papermc.paper.command.brigadier.argument.CustomArgumentType
getExamples
-
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()
-
-
-
-