类 ConfiguredText<MSG,RECEIVER>

类型参数:
MSG - The type of the message
RECEIVER - The type of the receiver

public class ConfiguredText<MSG,RECEIVER> extends ConfiguredValue<TextContents>
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • create

      public static <M, R> ConfiguredText.Builder<M,R,?> create()
    • prepare

      public PreparedText<MSG,RECEIVER> prepare(@NotNull @NotNull Object... values)
    • parse

      public List<String> parse(@Nullable RECEIVER receiver, @NotNull @NotNull Object... values)
      Parse the message for the receiver.
      参数:
      receiver - The receiver of the message.
      values - The values to replace the params.
      返回:
      The parsed message.
    • parseLine

      public String parseLine(@Nullable RECEIVER receiver, @NotNull @NotNull Object... values)
      Parse the message for the receiver and send it.
      参数:
      receiver - The receiver of the message.
      values - The values to replace the params.
      返回:
      The parsed message.
    • compile

      public List<MSG> compile(@Nullable RECEIVER receiver, @NotNull @NotNull Object... values)
      Compile the message for the receiver.
      参数:
      receiver - The receiver of the message.
      values - The values to replace the params.
      返回:
      The compiled message.
    • compileLine

      public MSG compileLine(@Nullable RECEIVER receiver, @NotNull @NotNull Object... values)
      Compile the message for the receiver and send it.
      参数:
      receiver - The receiver of the message.
      values - The values to replace the params.
      返回:
      The compiled message.
    • sendTo

      public void sendTo(@NotNull RECEIVER receiver, @NotNull @NotNull Object... values)
      Send the message to the receiver.
      参数:
      receiver - The receiver of the message.
      values - The values to replace the params.
    • sendToAll

      public void sendToAll(@NotNull @NotNull Iterable<? extends RECEIVER> receivers, @NotNull @NotNull Object... values)
      Send the message to the multiple receivers.
      参数:
      receivers - The receivers of the message.
      values - The values to replace the params.