Class PlayerArgument<P extends net.minecraft.entity.player.PlayerEntity>

java.lang.Object
dev.rollczi.litecommands.argument.resolver.ArgumentResolver<net.minecraft.server.command.ServerCommandSource,P>
dev.rollczi.litecommands.fabric.argument.PlayerArgument<P>
All Implemented Interfaces:
dev.rollczi.litecommands.argument.parser.Parser<net.minecraft.server.command.ServerCommandSource,P>, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<net.minecraft.server.command.ServerCommandSource,P>, dev.rollczi.litecommands.argument.resolver.MultipleArgumentResolver<net.minecraft.server.command.ServerCommandSource,P>, dev.rollczi.litecommands.argument.suggester.Suggester<net.minecraft.server.command.ServerCommandSource,P>, dev.rollczi.litecommands.range.Rangeable<dev.rollczi.litecommands.argument.Argument<P>>

public class PlayerArgument<P extends net.minecraft.entity.player.PlayerEntity> extends dev.rollczi.litecommands.argument.resolver.ArgumentResolver<net.minecraft.server.command.ServerCommandSource,P>
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerArgument(dev.rollczi.litecommands.message.MessageRegistry<net.minecraft.server.command.ServerCommandSource> messageRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected dev.rollczi.litecommands.argument.parser.ParseResult<P>
    parse(dev.rollczi.litecommands.invocation.Invocation<net.minecraft.server.command.ServerCommandSource> invocation, dev.rollczi.litecommands.argument.Argument<P> context, String argument)
     
    dev.rollczi.litecommands.suggestion.SuggestionResult
    suggest(dev.rollczi.litecommands.invocation.Invocation<net.minecraft.server.command.ServerCommandSource> invocation, dev.rollczi.litecommands.argument.Argument<P> argument, dev.rollczi.litecommands.suggestion.SuggestionContext context)
     

    Methods inherited from class dev.rollczi.litecommands.argument.resolver.ArgumentResolver

    canParse, getRange, parse

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface dev.rollczi.litecommands.argument.parser.Parser

    canParse
  • Constructor Details

    • PlayerArgument

      public PlayerArgument(dev.rollczi.litecommands.message.MessageRegistry<net.minecraft.server.command.ServerCommandSource> messageRegistry)
  • Method Details

    • parse

      protected dev.rollczi.litecommands.argument.parser.ParseResult<P> parse(dev.rollczi.litecommands.invocation.Invocation<net.minecraft.server.command.ServerCommandSource> invocation, dev.rollczi.litecommands.argument.Argument<P> context, String argument)
      Specified by:
      parse in class dev.rollczi.litecommands.argument.resolver.ArgumentResolver<net.minecraft.server.command.ServerCommandSource,P extends net.minecraft.entity.player.PlayerEntity>
    • suggest

      public dev.rollczi.litecommands.suggestion.SuggestionResult suggest(dev.rollczi.litecommands.invocation.Invocation<net.minecraft.server.command.ServerCommandSource> invocation, dev.rollczi.litecommands.argument.Argument<P> argument, dev.rollczi.litecommands.suggestion.SuggestionContext context)