Package net.kyori.ansi
Interface ANSIComponentRenderer.ToStringBuilder<S>
-
- Type Parameters:
S
- style type
- All Superinterfaces:
ANSIComponentRenderer<S>
- Enclosing interface:
- ANSIComponentRenderer<S>
public static interface ANSIComponentRenderer.ToStringBuilder<S> extends ANSIComponentRenderer<S>
A mutable sub-interface that allows targeting an existing string builder.- Since:
- 1.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.kyori.ansi.ANSIComponentRenderer
ANSIComponentRenderer.ToString<S>, ANSIComponentRenderer.ToStringBuilder<S>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.StringBuilder
builder()
Get the builder that has been appended to.void
builder(@NotNull java.lang.StringBuilder builder)
Set theStringBuilder
that will be appended to.-
Methods inherited from interface net.kyori.ansi.ANSIComponentRenderer
complete, popStyle, pushStyle, text
-
-
-
-
Method Detail
-
builder
void builder(@NotNull @NotNull java.lang.StringBuilder builder)
Set theStringBuilder
that will be appended to.- Parameters:
builder
- the builder to append further output to- Since:
- 1.0.0
-
builder
@Contract(pure=true) @NotNull @NotNull java.lang.StringBuilder builder()
Get the builder that has been appended to.This builder will not be cleared.
- Returns:
- the builder
- Since:
- 1.0.0
-
-