类 ObjectComponent

java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.ObjectComponent

public final class ObjectComponent extends BaseComponent
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.

  • 构造器详细资料

    • ObjectComponent

      public ObjectComponent(@NonNull @NonNull ChatObject object)
      Creates a ObjectComponent from a given ChatObject. See PlayerObject and SpriteObject.
      参数:
      object - the ChatObject
    • ObjectComponent

      public ObjectComponent(ObjectComponent original)
      Creates an object component from the original to clone it.
      参数:
      original - the original for the new score component
  • 方法详细资料