Class GameModeArgument

java.lang.Object
dev.rollczi.litecommands.argument.resolver.ArgumentResolver<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>
cn.ycraft.limbo.command.argument.GameModeArgument
All Implemented Interfaces:
dev.rollczi.litecommands.argument.matcher.Matcher<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>, dev.rollczi.litecommands.argument.parser.Parser<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>, dev.rollczi.litecommands.argument.resolver.ArgumentResolverBase<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>, dev.rollczi.litecommands.argument.resolver.MultipleArgumentResolver<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>, dev.rollczi.litecommands.argument.suggester.Suggester<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>, dev.rollczi.litecommands.range.Rangeable<dev.rollczi.litecommands.argument.Argument<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>>

public class GameModeArgument extends dev.rollczi.litecommands.argument.resolver.ArgumentResolver<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected dev.rollczi.litecommands.argument.parser.ParseResult<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>
    parse(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation, dev.rollczi.litecommands.argument.Argument<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode> context, String argument)
     
    static @Nullable org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode
    parseGameMode(@NotNull String mode)
     
    dev.rollczi.litecommands.suggestion.SuggestionResult
    suggest(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation, dev.rollczi.litecommands.argument.Argument<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode> argument, dev.rollczi.litecommands.suggestion.SuggestionContext context)
     

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

    getRange, match, match, 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

    • GameModeArgument

      public GameModeArgument()
  • Method Details

    • parse

      protected dev.rollczi.litecommands.argument.parser.ParseResult<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode> parse(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation, dev.rollczi.litecommands.argument.Argument<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode> context, String argument)
      Specified by:
      parse in class dev.rollczi.litecommands.argument.resolver.ArgumentResolver<CommandSender,org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode>
    • suggest

      public dev.rollczi.litecommands.suggestion.SuggestionResult suggest(dev.rollczi.litecommands.invocation.Invocation<CommandSender> invocation, dev.rollczi.litecommands.argument.Argument<org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode> argument, dev.rollczi.litecommands.suggestion.SuggestionContext context)
    • parseGameMode

      @Nullable public static @Nullable org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode parseGameMode(@NotNull @NotNull String mode)