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) |
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.
|
int |
hashCode() |
void |
setSelector(String selector)
An entity target selector (@p, @a, @r, @e, or @s) and, optionally,
selector arguments (e.g.
|
protected void |
toLegacyText(StringBuilder builder) |
protected void |
toPlainText(StringBuilder builder) |
String |
toString() |
addExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getClickEvent, getColor, getColorRaw, getExtra, getFont, getFontRaw, getHoverEvent, getInsertion, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setFont, setHoverEvent, setInsertion, setItalic, setObfuscated, setStrikethrough, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
public SelectorComponent(SelectorComponent original)
original
- the original for the new selector componentpublic SelectorComponent(String selector)
public SelectorComponent duplicate()
BaseComponent
duplicate
in class BaseComponent
protected void toPlainText(StringBuilder builder)
protected void toLegacyText(StringBuilder builder)
public String getSelector()
public void setSelector(String selector)
public String toString()
toString
in class BaseComponent
public boolean equals(Object o)
equals
in class BaseComponent
protected boolean canEqual(Object other)
canEqual
in class BaseComponent
public int hashCode()
hashCode
in class BaseComponent
Copyright © 2012–2020 SpigotMC. All rights reserved.