Class WorldsCompleter

java.lang.Object
com.ultikits.ultitools.commands.tabcomplete.WorldsCompleter
All Implemented Interfaces:
TabCompleter

public class WorldsCompleter extends Object implements TabCompleter
Completer that suggests world names.

建议世界名称的补全器。

Since:
6.2.0
Version:
1.0.0
Author:
wisdomme
  • Field Details

    • environments

      private final org.bukkit.World.Environment[] environments
  • Constructor Details

    • WorldsCompleter

      public WorldsCompleter()
      Creates a completer that suggests all worlds. 创建建议所有世界的补全器。
    • WorldsCompleter

      public WorldsCompleter(org.bukkit.World.Environment... environments)
      Creates a completer that only suggests worlds of specific environments. 创建只建议特定环境类型世界的补全器。
      Parameters:
      environments - the environment types to include
  • Method Details

    • complete

      public List<String> complete(TabCompletionContext context)
      Description copied from interface: TabCompleter
      Generates completion suggestions based on the given context. 根据给定的上下文生成补全建议。
      Specified by:
      complete in interface TabCompleter
      Parameters:
      context - the tab completion context containing command state
      Returns:
      list of suggestions, never null