Class IdentifierParser<C>

java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C, net.minecraft.resources.Identifier>
org.incendo.cloud.minecraft.modded.parser.IdentifierParser<C>
Type Parameters:
C - the sender type
All Implemented Interfaces:
ArgumentParser<C, net.minecraft.resources.Identifier>, SuggestionProvider<C>, SuggestionProviderHolder<C>

public final class IdentifierParser<C> extends WrappedBrigadierParser<C, net.minecraft.resources.Identifier>
An argument parsing a Identifier.
  • Method Details

    • resourceLocationParser

      public static <C> @NonNull ParserDescriptor<C, net.minecraft.resources.Identifier> resourceLocationParser()
      Creates a new resource location parser.
      Type Parameters:
      C - command sender type
      Returns:
      the created parser
    • resourceLocationComponent

      public static <C> @NonNull CommandComponent.Builder<C, net.minecraft.resources.Identifier> resourceLocationComponent()
      Returns a CommandComponent.Builder using resourceLocationParser() as the parser.
      Type Parameters:
      C - the command sender type
      Returns:
      the component builder