类 ScoreboardConfig

java.lang.Object
cn.handyplus.scoreboard.param.ScoreboardConfig

public class ScoreboardConfig extends Object
计分板配置对象
  • 方法详细资料

    • of

      public static ScoreboardConfig of(@NotNull @NotNull String key, @NotNull @NotNull List<String> lines)
      计分板对象
      参数:
      key - 配置 key
      lines - 计分板内容行
      返回:
      计分板配置对象
    • of

      public static ScoreboardConfig of(@NotNull @NotNull String key, @NotNull @NotNull List<String> lines, @Nullable @Nullable String title)
      计分板对象
      参数:
      key - 配置 key
      lines - 计分板内容行
      title - 计分板标题
      返回:
      计分板配置对象
    • of

      public static ScoreboardConfig of(@NotNull @NotNull String key, @NotNull @NotNull List<String> lines, @Nullable @Nullable String title, @Nullable @Nullable Integer priority)
      计分板对象
      参数:
      key - 配置 key
      lines - 计分板内容行
      title - 计分板标题
      返回:
      计分板配置对象
    • of

      public static ScoreboardConfig of(@NotNull @NotNull String key, @NotNull @NotNull List<String> lines, @Nullable @Nullable String title, @Nullable @Nullable Integer priority, @Nullable @Nullable List<String> worlds)
      计分板对象
      参数:
      key - 配置 key
      lines - 计分板内容行
      title - 计分板标题
      返回:
      计分板配置对象
    • getMergedLines

      public List<String> getMergedLines(@NotNull @NotNull UUID playerUuid)
      获取合并外部扩展行后的完整内容(玩家级别)
      参数:
      playerUuid - 玩家 UUID
      返回:
      完整的行内容
    • getMergedTitle

      public String getMergedTitle(@NotNull @NotNull UUID playerUuid)
      获取合并外部扩展后的标题(玩家级别)
      参数:
      playerUuid - 玩家 UUID
      返回:
      标题
    • getMergedPriority

      public Integer getMergedPriority(@NotNull @NotNull UUID playerUuid)
      获取合并外部扩展后的优先级(玩家级别) 取所有外部插件设置的最大值,如果没有外部插件设置则返回默认值
      参数:
      playerUuid - 玩家 UUID
      返回:
      优先级