Interface PlaceholderProcessor


public interface PlaceholderProcessor
占位符处理器接口 - 定义单个占位符的处理逻辑
Since:
1.0.0
Version:
1.0.0
Author:
Berry_so
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    获取变量标识符
    @Nullable String
    process(@Nullable org.bukkit.entity.Player player, @NotNull String params)
    处理变量请求
  • Method Details

    • getIdentifier

      @NotNull @NotNull String getIdentifier()
      获取变量标识符
      Returns:
      变量标识符
    • process

      @Nullable @Nullable String process(@Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull String params)
      处理变量请求
      Parameters:
      player - 玩家对象,可能为null
      params - 变量参数
      Returns:
      处理结果,null表示不支持该变量