<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
</span><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">ComponentSvc</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></span></div>
<divclass="block">Implementation for <ahref="ComponentService.html"title="interface in com.djrapitops.plan.component"><code>ComponentService</code></a>.</div>
<h2id="nested-classes-inherited-from-class-com.djrapitops.plan.component.ComponentService">Nested classes/interfaces inherited from interface com.djrapitops.plan.component.<ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></h2>
<code><ahref="ComponentService.Holder.html"title="class in com.djrapitops.plan.component">ComponentService.Holder</a></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#convert(com.djrapitops.plan.component.Component,com.djrapitops.plan.component.ComponentOperation)"class="member-name-link">convert</a><wbr>(<ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a> component,
<ahref="ComponentOperation.html"title="enum class in com.djrapitops.plan.component">ComponentOperation</a> operation)</code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#convert(com.djrapitops.plan.component.Component,com.djrapitops.plan.component.ComponentOperation,char)"class="member-name-link">convert</a><wbr>(<ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a> component,
<ahref="ComponentOperation.html"title="enum class in com.djrapitops.plan.component">ComponentOperation</a> operation,
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromAdventureLegacy(java.lang.String,char)"class="member-name-link">fromAdventureLegacy</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> adventureLegacy,
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromAutoDetermine(java.lang.String)"class="member-name-link">fromAutoDetermine</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> unknown)</code></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromBungeeLegacy(java.lang.String,char)"class="member-name-link">fromBungeeLegacy</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> bungeeLegacy,
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromJson(java.lang.String)"class="member-name-link">fromJson</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> json)</code></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromLegacy(java.lang.String,char)"class="member-name-link">fromLegacy</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> legacy,
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#fromMiniMessage(java.lang.String)"class="member-name-link">fromMiniMessage</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> miniMessage)</code></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#translateLegacy(java.lang.String,char,char)"class="member-name-link">translateLegacy</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> input,
<divclass="block">Translates ampersands into section signs for color codes.</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-com.djrapitops.plan.component.ComponentService">Methods inherited from interface com.djrapitops.plan.component.<ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">translateLegacy</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> input,
char inputCharacter,
char outputCharacter)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#translateLegacy(java.lang.String,char,char)">ComponentService</a></code></span></div>
<divclass="block">Translates ampersands into section signs for color codes. Example: <code>&ctext</code> to <code>§ctext</code>.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="ComponentService.html#translateLegacy(java.lang.String,char,char)">translateLegacy</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>input</code> - the input color string with color codes using ampersands (<code>&</code>)</dd>
<dd><code>inputCharacter</code> - the input character for translation, usually <code>&</code>.</dd>
<dd><code>outputCharacter</code> - the output character for translation, usually <code>§</code>.</dd>
<dt>Returns:</dt>
<dd>the same input string with input characters for color codes replaced with output characters</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">convert</span><wbr><spanclass="parameters">(<ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a> component,
<ahref="ComponentOperation.html"title="enum class in com.djrapitops.plan.component">ComponentOperation</a> operation)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">convert</span><wbr><spanclass="parameters">(<ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a> component,
<ahref="ComponentOperation.html"title="enum class in com.djrapitops.plan.component">ComponentOperation</a> operation,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromAutoDetermine</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> unknown)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromAutoDetermine(java.lang.String)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
Converts an unknown format legacy/minimessage string into a component by attempting to guess the input format.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="ComponentService.html#fromAutoDetermine(java.lang.String)">fromAutoDetermine</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>unknown</code> - the unknown format input string</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromLegacy</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> legacy,
char character)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromLegacy(java.lang.String,char)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
Input example <code>§ctext</code>.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="ComponentService.html#fromLegacy(java.lang.String,char)">fromLegacy</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>legacy</code> - the input legacy</dd>
<dd><code>character</code> - the character to use as the color prefix, usually <code>§</code>.</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromAdventureLegacy</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> adventureLegacy,
char character)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromAdventureLegacy(java.lang.String,char)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
<dd><code><ahref="ComponentService.html#fromAdventureLegacy(java.lang.String,char)">fromAdventureLegacy</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>adventureLegacy</code> - the input adventure legacy</dd>
<dd><code>character</code> - the character to use as the color prefix, usually <code>&</code>.</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromBungeeLegacy</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> bungeeLegacy,
char character)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromBungeeLegacy(java.lang.String,char)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
<dd><code><ahref="ComponentService.html#fromBungeeLegacy(java.lang.String,char)">fromBungeeLegacy</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>bungeeLegacy</code> - the input bungee legacy</dd>
<dd><code>character</code> - the character to use as the color prefix, usually <code>§</code>.</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromMiniMessage</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> miniMessage)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromMiniMessage(java.lang.String)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
<dd><code><ahref="ComponentService.html#fromMiniMessage(java.lang.String)">fromMiniMessage</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>miniMessage</code> - the input minimessage</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Component.html"title="interface in com.djrapitops.plan.component">Component</a></span> <spanclass="element-name">fromJson</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> json)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="ComponentService.html#fromJson(java.lang.String)">ComponentService</a></code></span></div>
<divclass="block">Converts the given input into a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a>.
<dd><code><ahref="ComponentService.html#fromJson(java.lang.String)">fromJson</a></code> in interface <code><ahref="ComponentService.html"title="interface in com.djrapitops.plan.component">ComponentService</a></code></dd>
<dt>Parameters:</dt>
<dd><code>json</code> - the input json</dd>
<dt>Returns:</dt>
<dd>a <ahref="Component.html"title="interface in com.djrapitops.plan.component"><code>Component</code></a></dd>