程序包 org.bukkit.conversations

# 类 PluginNameConversationPrefix

java.lang.Object
org.bukkit.conversations.PluginNameConversationPrefix

所有已实现的接口:
  `ConversationPrefix`

public class PluginNameConversationPrefix extends Object implements ConversationPrefix
PluginNameConversationPrefix is a `ConversationPrefix` implementation that displays the plugin name in front of conversation output.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `protected Plugin`
  `plugin`
  `protected ChatColor`
  `prefixColor`
  `protected String`
  `separator`

- ## 构造器概要

  构造器
  构造器
  说明
  `PluginNameConversationPrefix(@NotNull Plugin plugin)`
  `PluginNameConversationPrefix(@NotNull Plugin plugin, @NotNull String separator, @NotNull ChatColor prefixColor)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull String`
  `getPrefix(@NotNull ConversationContext context)`
  Prepends each conversation message with the plugin name.

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 字段详细资料

  - ### separator

    protected String separator

  - ### prefixColor

    protected ChatColor prefixColor

  - ### plugin

    protected Plugin plugin

- ## 构造器详细资料

  - ### PluginNameConversationPrefix

    public PluginNameConversationPrefix(@NotNull @NotNull Plugin plugin)

  - ### PluginNameConversationPrefix

    public PluginNameConversationPrefix(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String separator, @NotNull @NotNull ChatColor prefixColor)

- ## 方法详细资料

  - ### getPrefix

    @NotNull public @NotNull String getPrefix(@NotNull @NotNull ConversationContext context)
    Prepends each conversation message with the plugin name.
    指定者:
      `getPrefix` 在接口中 `ConversationPrefix`
    参数:
      `context` - Context information about the conversation.
    返回:
      An empty string.