Package net.md_5.bungee.api.chat
Class SelectorComponent
java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.SelectorComponent
This component processes a target selector into a pre-formatted set of
 discovered names.
 
Multiple targets may be obtained, and with commas separating each one and a final "and" for the last target. The resulting format cannot be overwritten. This includes all styling from team prefixes, insertions, click events, and hover events.
These values are filled in by the server-side implementation.
As of 1.12.2, a bug ( MC-56373 ) prevents full usage within hover events.
Multiple targets may be obtained, and with commas separating each one and a final "and" for the last target. The resulting format cannot be overwritten. This includes all styling from team prefixes, insertions, click events, and hover events.
These values are filled in by the server-side implementation.
As of 1.12.2, a bug ( MC-56373 ) prevents full usage within hover events.
- 
Constructor SummaryConstructorsConstructorDescriptionSelectorComponent(String selector) SelectorComponent(SelectorComponent original) Creates a selector component from the original to clone it.
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanClones the BaseComponent and returns the clone.booleanAn entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g.inthashCode()voidsetSelector(String selector) An entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g.protected voidtoLegacyText(StringBuilder builder) protected voidtoPlainText(StringBuilder builder) toString()Methods inherited from class net.md_5.bungee.api.chat.BaseComponentaddExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getClickEvent, getColor, getColorRaw, getExtra, getFont, getFontRaw, getHoverEvent, getInsertion, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isReset, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setClickEvent, setColor, setExtra, setFont, setHoverEvent, setInsertion, setItalic, setObfuscated, setReset, setStrikethrough, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
- 
Constructor Details- 
SelectorComponentCreates a selector component from the original to clone it.- Parameters:
- original- the original for the new selector component
 
- 
SelectorComponent
 
- 
- 
Method Details- 
duplicateDescription copied from class:BaseComponentClones the BaseComponent and returns the clone.- Specified by:
- duplicatein class- BaseComponent
- Returns:
- The duplicate of this BaseComponent
 
- 
toPlainText
- 
toLegacyText
- 
getSelectorAn entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g. @e[r=10,type=Creeper]).
- 
setSelectorAn entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g. @e[r=10,type=Creeper]).
- 
toString- Overrides:
- toStringin class- BaseComponent
 
- 
equals- Overrides:
- equalsin class- BaseComponent
 
- 
canEqual- Overrides:
- canEqualin class- BaseComponent
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- BaseComponent
 
 
-