Class EntityAnchorParser<C>

java.lang.Object
org.incendo.cloud.brigadier.parser.WrappedBrigadierParser<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>
org.incendo.cloud.minecraft.modded.parser.EntityAnchorParser<C>
Type Parameters:
C - the sender type
All Implemented Interfaces:
ArgumentParser<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>, SuggestionProvider<C>, SuggestionProviderHolder<C>

public final class EntityAnchorParser<C> extends WrappedBrigadierParser<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor>
An argument parsing an EntityAnchorArgument.Anchor.
  • Method Details

    • entityAnchorParser

      public static <C> @NonNull ParserDescriptor<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> entityAnchorParser()
      Creates a new entity anchor parser.
      Type Parameters:
      C - command sender type
      Returns:
      the created parser
    • entityAnchorComponent

      public static <C> @NonNull CommandComponent.Builder<C, net.minecraft.commands.arguments.EntityAnchorArgument.Anchor> entityAnchorComponent()
      Returns a CommandComponent.Builder using entityAnchorParser() as the parser.
      Type Parameters:
      C - the command sender type
      Returns:
      the component builder