Class ComponentMapArgumentType
java.lang.Object
meteordevelopment.meteorclient.commands.arguments.ComponentMapArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>
public class ComponentMapArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>
-
Constructor Summary
ConstructorsConstructorDescriptionComponentMapArgumentType(net.minecraft.command.CommandRegistryAccess commandRegistryAccess) -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentMapArgumentTypecomponentMap(net.minecraft.command.CommandRegistryAccess commandRegistryAccess) static <S extends net.minecraft.command.CommandSource>
net.minecraft.component.ComponentMapgetComponentMap(com.mojang.brigadier.context.CommandContext<S> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) net.minecraft.component.ComponentMapparse(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Constructor Details
-
ComponentMapArgumentType
public ComponentMapArgumentType(net.minecraft.command.CommandRegistryAccess commandRegistryAccess)
-
-
Method Details
-
componentMap
public static ComponentMapArgumentType componentMap(net.minecraft.command.CommandRegistryAccess commandRegistryAccess) -
getComponentMap
public static <S extends net.minecraft.command.CommandSource> net.minecraft.component.ComponentMap getComponentMap(com.mojang.brigadier.context.CommandContext<S> context, String name) -
parse
public net.minecraft.component.ComponentMap parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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.component.ComponentMap>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>
-