Interface Hologram

All Known Implementing Classes:
OptimalHologram

public interface Hologram
The interface which handles Hologram connections
  • Method Details

    • getLines

      Collection<Line> getLines()
      Get the Collection of Lines that the Hologram has displayed
      Returns:
      The Collection of Hologram Lines
    • getLineAt

      Line getLineAt(int index)
      Get a Line at an index
      Parameters:
      index - The index to use to fetch the line
      Returns:
      The Line
    • getLineIndex

      int getLineIndex(Line line)
      Get the index of a Line
      Parameters:
      line - The Line to find the index for
      Returns:
      The Line index
    • setLineAt

      void setLineAt(int index, Line line)
      Set a Line at an index
      Parameters:
      index - The index to set
      line - The Line to set at that index
    • updateLine

      void updateLine(int index, Line line)
      Update a Line at an index
      Parameters:
      index - The index to update
      line - The Line to change it to
    • appendLine

      void appendLine(Line line)
      Append a Line to the Hologram
      Parameters:
      line - The Line to append
    • appendItemLine

      ItemLine appendItemLine(org.bukkit.inventory.ItemStack itemStack)
      Append an ItemLine to the Hologram with an ItemStack display
      Parameters:
      itemStack - The ItemStack to display
      Returns:
      The ItemLine created
    • appendTextLine

      TextLine appendTextLine(String text)
      Append a TextLine to the Hologram with a String display
      Parameters:
      text - The String to display
      Returns:
      The TextLine created
    • getVisibilityManager

      VisibilityManager getVisibilityManager()
      Get the VisibilityManager for the Hologram
      Returns:
      The VisibilityManager
    • getLocation

      org.bukkit.Location getLocation()
      Get the Holograms current Location
      Returns:
      The Location
    • teleport

      void teleport(org.bukkit.Location location)
      Teleport the Hologram to a different location
      Parameters:
      location - The new Hologram Location
    • delete

      void delete()
      Delete the Hologram, and all attached entities
    • size

      int size()
      Get the size of all the attached Lines
      Returns:
      The size of the Hologram Lines
    • getHologramAsObject

      Object getHologramAsObject()
      Get the Hologram as a Object from the HologramAPI source
      Returns:
      The Object
    • getId

      String getId()
    • getExtra

      Object getExtra()