public final class SelectorComponent extends BaseComponent
| Constructor and Description |
|---|
SelectorComponent(SelectorComponent original)
Creates a selector component from the original to clone it.
|
SelectorComponent(String selector)
Creates a selector component from the selector
|
SelectorComponent(String selector,
BaseComponent separator) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
SelectorComponent |
duplicate()
Clones the BaseComponent and returns the clone.
|
boolean |
equals(Object o) |
String |
getSelector()
An entity target selector (@p, @a, @r, @e, or @s) and, optionally,
selector arguments (e.g.
|
BaseComponent |
getSeparator()
The separator of multiple selected entities.
|
int |
hashCode() |
void |
setSelector(String selector)
An entity target selector (@p, @a, @r, @e, or @s) and, optionally,
selector arguments (e.g.
|
void |
setSeparator(BaseComponent separator)
The separator of multiple selected entities.
|
protected void |
toLegacyText(StringBuilder builder) |
protected void |
toPlainText(StringBuilder builder) |
String |
toString() |
addExtra, addExtra, applyStyle, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getClickEvent, getColor, getColorRaw, getExtra, getFont, getFontRaw, getHoverEvent, getInsertion, getStyle, hasFormatting, hasStyle, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isReset, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setFont, setHoverEvent, setInsertion, setItalic, setObfuscated, setReset, setStrikethrough, setStyle, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainTextpublic SelectorComponent(SelectorComponent original)
original - the original for the new selector componentpublic SelectorComponent(String selector)
selector - the selector as a Stringpublic SelectorComponent(String selector, BaseComponent separator)
public SelectorComponent duplicate()
BaseComponentduplicate in class BaseComponentprotected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
public String getSelector()
public BaseComponent getSeparator()
{"color": "gray", "text": ", "}.public void setSelector(String selector)
public void setSeparator(BaseComponent separator)
{"color": "gray", "text": ", "}.public String toString()
toString in class BaseComponentpublic boolean equals(Object o)
equals in class BaseComponentprotected boolean canEqual(Object other)
canEqual in class BaseComponentpublic int hashCode()
hashCode in class BaseComponentCopyright © 2012–2024 SpigotMC. All rights reserved.