<dd><code><ahref="ChatRenderer.Default.html"title="interface in io.papermc.paper.chat">ChatRenderer.Default</a></code></dd>
</dl>
<dlclass="notes">
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/FunctionalInterface.html"title="class or interface in java.lang"class="external-link">@FunctionalInterface</a>
<divclass="block">A chat renderer is responsible for rendering chat messages sent by <ahref="../../../../org/bukkit/entity/Player.html"title="interface in org.bukkit.entity"><code>Player</code></a>s to the server.</div>
<divclass="col-second even-row-color"><code><ahref="ChatRenderer.Default.html"class="type-name-link"title="interface in io.papermc.paper.chat">ChatRenderer.Default</a></code></div>
<divclass="col-second odd-row-color"><code><ahref="ChatRenderer.ViewerUnaware.html"class="type-name-link"title="interface in io.papermc.paper.chat">ChatRenderer.ViewerUnaware</a></code></div>
<divclass="col-last odd-row-color">
<divclass="block">Similar to <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a>, but without knowledge of the message viewer.</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat">ChatRenderer</a></code></div>
<divclass="block">Create a new instance of the default <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#render(org.bukkit.entity.Player,net.kyori.adventure.text.Component,net.kyori.adventure.text.Component,net.kyori.adventure.audience.Audience)"class="member-name-link">render</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../../../../org/bukkit/entity/Player.html"title="interface in org.bukkit.entity">Player</a> source,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a> sourceDisplayName,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a> message,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link">Audience</a> viewer)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat">ChatRenderer</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1"><code><ahref="#viewerUnaware(io.papermc.paper.chat.ChatRenderer.ViewerUnaware)"class="member-name-link">viewerUnaware</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.ViewerUnaware.html"title="interface in io.papermc.paper.chat">ChatRenderer.ViewerUnaware</a> renderer)</code></div>
<divclass="block">Creates a new viewer-unaware <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a>, which will render the chat message a single time,
displaying the same rendered message to every viewing <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link"><code>Audience</code></a>.</div>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/ApiStatus.OverrideOnly.html"title="class or interface in org.jetbrains.annotations"class="external-link">@OverrideOnly</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a></span> <spanclass="element-name">render</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../../../../org/bukkit/entity/Player.html"title="interface in org.bukkit.entity">Player</a> source,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a> sourceDisplayName,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a> message,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link">Audience</a> viewer)</span></div>
<divclass="block">Renders a chat message. This will be called once for each receiving <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link"><code>Audience</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>source</code> - the message source</dd>
<dd><code>sourceDisplayName</code> - the display name of the source player</dd>
<dd><code>message</code> - the chat message</dd>
<dd><code>viewer</code> - the receiving <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link"><code>Audience</code></a></dd>
<dt>Returns:</dt>
<dd>a rendered chat message</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="defaultRenderer()">
<h3>defaultRenderer</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat">ChatRenderer</a></span> <spanclass="element-name">defaultRenderer</span>()</div>
<divclass="block">Create a new instance of the default <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a>.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>a new <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a></dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat">ChatRenderer</a></span> <spanclass="element-name">viewerUnaware</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="ChatRenderer.ViewerUnaware.html"title="interface in io.papermc.paper.chat">ChatRenderer.ViewerUnaware</a> renderer)</span></div>
<divclass="block">Creates a new viewer-unaware <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a>, which will render the chat message a single time,
displaying the same rendered message to every viewing <ahref="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/audience/Audience.html"title="class or interface in net.kyori.adventure.audience"class="external-link"><code>Audience</code></a>.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>renderer</code> - the viewer unaware renderer</dd>
<dt>Returns:</dt>
<dd>a new <ahref="ChatRenderer.html"title="interface in io.papermc.paper.chat"><code>ChatRenderer</code></a></dd>