Class GameModeParser

java.lang.Object
net.apartium.cocoabeans.commands.parsers.ArgumentParser<T>
net.apartium.cocoabeans.commands.parsers.ContextualMapBasedParser<T>
net.apartium.cocoabeans.commands.parsers.MapBasedParser<org.bukkit.GameMode>
net.apartium.cocoabeans.commands.spigot.parsers.GameModeParser
All Implemented Interfaces:
Comparable<net.apartium.cocoabeans.commands.parsers.ArgumentParser<?>>

@AvailableSince("0.0.36") public class GameModeParser extends net.apartium.cocoabeans.commands.parsers.MapBasedParser<org.bukkit.GameMode>
GameMode parser with lazy mapping
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.apartium.cocoabeans.commands.parsers.ArgumentParser

    net.apartium.cocoabeans.commands.parsers.ArgumentParser.ParseResult<T extends Object>, net.apartium.cocoabeans.commands.parsers.ArgumentParser.TabCompletionResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GameModeParser(int priority)
    Create new GameModeParser
    GameModeParser(String keyword, int priority)
    Create new GameModeParser
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,org.bukkit.GameMode>
    Get map of keyword to value

    Methods inherited from class net.apartium.cocoabeans.commands.parsers.MapBasedParser

    getMap

    Methods inherited from class net.apartium.cocoabeans.commands.parsers.ContextualMapBasedParser

    createNoSuchElementResponse, parse, tabCompletion, tryParse

    Methods inherited from class net.apartium.cocoabeans.commands.parsers.ArgumentParser

    compareTo, getArgumentType, getKeyword, getPriority, isSupportMultipleArguments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • GameModeParser

      public GameModeParser(String keyword, int priority)
      Create new GameModeParser
      Parameters:
      keyword - parser keyword
      priority - parser priority
    • GameModeParser

      public GameModeParser(int priority)
      Create new GameModeParser
      Parameters:
      priority - parser priority
  • Method Details

    • getMap

      public Map<String,org.bukkit.GameMode> getMap()
      Get map of keyword to value
      Specified by:
      getMap in class net.apartium.cocoabeans.commands.parsers.MapBasedParser<org.bukkit.GameMode>
      Returns:
      map