类 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.
-
构造器概要
构造器构造器说明SelectorComponent(String selector) SelectorComponent(SelectorComponent original) Creates a selector component from the original to clone it. -
方法概要
修饰符和类型方法说明protected boolean克隆本组件并返回克隆副本.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()从类继承的方法 net.md_5.bungee.api.chat.BaseComponent
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
-
构造器详细资料
-
SelectorComponent
Creates a selector component from the original to clone it.- 参数:
original- the original for the new selector component
-
SelectorComponent
-
-
方法详细资料
-
duplicate
从类复制的说明:BaseComponent克隆本组件并返回克隆副本.原文:Clones the BaseComponent and returns the clone.
- 指定者:
duplicate在类中BaseComponent- 返回:
- 该组件的副本
-
toPlainText
-
toLegacyText
-
getSelector
An entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g. @e[r=10,type=Creeper]). -
setSelector
An entity target selector (@p, @a, @r, @e, or @s) and, optionally, selector arguments (e.g. @e[r=10,type=Creeper]). -
toString
- 覆盖:
toString在类中BaseComponent
-
equals
- 覆盖:
equals在类中BaseComponent
-
canEqual
- 覆盖:
canEqual在类中BaseComponent
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中BaseComponent
-