public class BedrockComponent
extends java.lang.Object
implements java.lang.CharSequence, net.kyori.adventure.text.ComponentLike
| Modifier and Type | Field and Description |
|---|---|
static BedrockComponent |
EMPTY |
| Constructor and Description |
|---|
BedrockComponent(net.kyori.adventure.text.Component component) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull net.kyori.adventure.text.Component |
asComponent() |
char |
charAt(int index) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
length() |
static BedrockComponent |
of(net.kyori.adventure.text.Component component) |
@NotNull java.lang.CharSequence |
subSequence(int start,
int end) |
@NotNull java.lang.String |
toString() |
public static final BedrockComponent EMPTY
public BedrockComponent(net.kyori.adventure.text.Component component)
public int length()
length in interface java.lang.CharSequencepublic char charAt(int index)
charAt in interface java.lang.CharSequence@NotNull
public @NotNull java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequence@NotNull public @NotNull net.kyori.adventure.text.Component asComponent()
asComponent in interface net.kyori.adventure.text.ComponentLike@NotNull public @NotNull java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic static BedrockComponent of(net.kyori.adventure.text.Component component)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object