Class TextHologramLine

java.lang.Object
io.github.projectunified.unihologram.spigot.line.TextHologramLine
All Implemented Interfaces:
HologramLine

public class TextHologramLine extends Object
A hologram line with text
  • Constructor Details

    • TextHologramLine

      public TextHologramLine(String content, Map<String,Object> settings)
      Create a new line
      Parameters:
      content - the content
      settings - the settings
    • TextHologramLine

      public TextHologramLine(String content)
      Create a new line
      Parameters:
      content - the content
  • Method Details

    • fromColoredContent

      public static TextHologramLine fromColoredContent(@NotNull @NotNull String content)
      Create a new line from the colored content
      Parameters:
      content - the colored content
      Returns:
      the new line
    • getColoredContent

      public String getColoredContent()
      Get the colored content
      Returns:
      the colored content
    • getContent

      @NotNull public String getContent()
      Description copied from interface: HologramLine
      Get the content of the line
      Specified by:
      getContent in interface HologramLine
      Returns:
      the content
    • getSettings

      @NotNull public @NotNull Map<String,Object> getSettings()
      Description copied from interface: HologramLine
      Get the extra settings of the line
      Specified by:
      getSettings in interface HologramLine
      Returns:
      the extra settings