类 ObjectComponent
java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.ObjectComponent
An object component that can be used to display objects.
It can either display a player's head or an object by a specific sprite and an atlas.
Note: this was added in Minecraft 1.21.9.
-
嵌套类概要
从类继承的嵌套类/接口 net.md_5.bungee.api.chat.BaseComponent
BaseComponent.LimitedStringVisitor, BaseComponent.StringVisitor -
构造器概要
构造器构造器说明ObjectComponent(@NonNull ChatObject object) Creates a ObjectComponent from a given ChatObject.ObjectComponent(ObjectComponent original) Creates an object component from the original to clone it. -
方法概要
修饰符和类型方法说明Clones the BaseComponent and returns the clone.protected voidtoLegacyText(BaseComponent.StringVisitor builder) protected voidtoPlainText(BaseComponent.StringVisitor builder) 从类继承的方法 net.md_5.bungee.api.chat.BaseComponent
addExtra, addExtra, applyStyle, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getColor, getColorRaw, getFont, getFontRaw, getShadowColor, getShadowColorRaw, hasFormatting, hasStyle, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setColor, setExtra, setFont, setItalic, setObfuscated, setShadowColor, setStrikethrough, setStyle, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
-
构造器详细资料
-
ObjectComponent
Creates a ObjectComponent from a given ChatObject. SeePlayerObjectandSpriteObject.- 参数:
object- the ChatObject
-
ObjectComponent
Creates an object component from the original to clone it.- 参数:
original- the original for the new score component
-
-
方法详细资料
-
duplicate
从类复制的说明:BaseComponentClones the BaseComponent and returns the clone.- 指定者:
duplicate在类中BaseComponent- 返回:
- The duplicate of this BaseComponent
-
toPlainText
-
toLegacyText
-