Interface Hologram


public interface Hologram
Represents a hologram
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a line to the hologram Note: to add an item line, pass "item:<item>" as the line
    void
    Clears all lines from the hologram
    getLine(int index)
    Gets a line from the hologram
    long
    Gets the refresh delay of the hologram
    void
    insertLine(int index, String line)
    Inserts a line into the hologram
    int
    Gets the number of lines in the hologram
    void
    removeLine(int index)
    Removes a line from the hologram
    void
    setRefreshDelay(long delay)
    Sets the refresh delay of the hologram
  • Method Details

    • addLine

      void addLine(String line)
      Adds a line to the hologram Note: to add an item line, pass "item:<item>" as the line
      Parameters:
      line - The line to add
    • getLine

      String getLine(int index)
      Gets a line from the hologram
      Parameters:
      index - The index of the line to get
      Returns:
      The line at the index
    • removeLine

      void removeLine(int index)
      Removes a line from the hologram
      Parameters:
      index - The index of the line to remove
    • clearLines

      void clearLines()
      Clears all lines from the hologram
    • insertLine

      void insertLine(int index, String line)
      Inserts a line into the hologram
      Parameters:
      index - The index to insert the line at
      line - The line to insert
    • lineCount

      int lineCount()
      Gets the number of lines in the hologram
      Returns:
      The number of lines in the hologram
    • getRefreshDelay

      long getRefreshDelay()
      Gets the refresh delay of the hologram
      Returns:
      The refresh delay of the hologram
    • setRefreshDelay

      void setRefreshDelay(long delay)
      Sets the refresh delay of the hologram
      Parameters:
      delay - The delay to set