Class NbtCompoundArgument
java.lang.Object
com.github.darksoulq.abyssallib.server.command.argument.NbtCompoundArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.nbt.CompoundTag>, io.papermc.paper.command.brigadier.argument.CustomArgumentType<net.minecraft.nbt.CompoundTag, String>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.command.brigadier.argument.CustomArgumentType
io.papermc.paper.command.brigadier.argument.CustomArgumentType.Converted<T,N> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.arguments.ArgumentType<String> <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static NbtCompoundArgumentnbt()net.minecraft.nbt.CompoundTagparse(com.mojang.brigadier.StringReader reader) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.papermc.paper.command.brigadier.argument.CustomArgumentType
getExamples, parse
-
Constructor Details
-
NbtCompoundArgument
public NbtCompoundArgument()
-
-
Method Details
-
nbt
-
parse
public net.minecraft.nbt.CompoundTag parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.nbt.CompoundTag>- Specified by:
parsein interfaceio.papermc.paper.command.brigadier.argument.CustomArgumentType<net.minecraft.nbt.CompoundTag, String>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNativeType
-
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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.nbt.CompoundTag>- Specified by:
listSuggestionsin interfaceio.papermc.paper.command.brigadier.argument.CustomArgumentType<net.minecraft.nbt.CompoundTag, String>
-