Interface TextDisplay

All Superinterfaces:
CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, DisplayEntity, Entity, EntityProjectileSource, HoverEventSource<HoverEvent.ShowEntity>, Identifiable, Locatable, ProjectileSource, RandomProvider, SerializableDataHolder, SerializableDataHolder.Mutable, Sound.Emitter, TeamMember, ValueContainer

public interface TextDisplay extends DisplayEntity
  • Method Details Link icon

    • displayedText Link icon

      default Component displayedText()
      Returns the displayed text
      Returns:
      the displayed text
    • lineWidth Link icon

      default int lineWidth()
      Gets the maximum line width used to split lines of text.
      Returns:
      The maximum line width used to split lines of text
    • textOpacity Link icon

      default int textOpacity()
      Gets the opacity of the displayed text.
      Returns:
      The opacity of the displayed text
    • canSeeThroughBlocks Link icon

      default boolean canSeeThroughBlocks()
      Checks if the displayed text is visible through blocks.
      Returns:
      True if the displayed text is visible through blocks, false otherwise
    • hasShadow Link icon

      default boolean hasShadow()
      Checks if the displayed text has a shadow.
      Returns:
      True if the displayed text has a shadow, false otherwise
    • backgroundColor Link icon

      default Color backgroundColor()
      Gets the background color of the displayed text. Note that this supports alpha values.
      Returns:
      The background color of the displayed text
    • defaultBackground Link icon

      default boolean defaultBackground()
      Gets the background color of the displayed text.
      Returns:
      The background color of the displayed text
    • textAlignment Link icon

      default TextAlignment textAlignment()
      Gets the alignment direction of the displayed text.
      Returns:
      The alignment direction of the displayed text