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

    Constructors
    Constructor
    Description
    ComponentMapArgumentType(net.minecraft.command.CommandRegistryAccess commandRegistryAccess)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    componentMap(net.minecraft.command.CommandRegistryAccess commandRegistryAccess)
     
    static <S extends net.minecraft.command.CommandSource>
    net.minecraft.component.ComponentMap
    getComponentMap(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.ComponentMap
    parse(com.mojang.brigadier.StringReader reader)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      parse in interface com.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:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<net.minecraft.component.ComponentMap>