Interface IHoloLine
public interface IHoloLine
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy the hologram line and also remove it from the hologramGet the hologram bounded to.getText()Get the text of the hologram line.booleanCheck if the hologram line is destroyed.voidremove()Remove the hologram line but keeping the line object in its bounded hologramvoidremove(org.bukkit.entity.Player player) Remove the hologram line for a player but keeping the line objectvoidreveal()Reveals the hologram line if the line has disappeared been removed by the server or another pluginvoidreveal(org.bukkit.entity.Player player) Reveals the hologram line for a player if the line has disappeared been removed by the server or another pluginvoidsetHologram(IHologram hologram) Set the hologram bounded to.voidSet the text of the hologram line.voidSet the text of the hologram line.voidupdate()Update the hologram line.voidupdate(org.bukkit.entity.Player player) Update the hologram line for a player.
-
Method Details
-
getText
String getText()Get the text of the hologram line.- Returns:
- the text
-
getHologram
IHologram getHologram()Get the hologram bounded to.- Returns:
- the hologram
-
update
void update()Update the hologram line. -
update
void update(org.bukkit.entity.Player player) Update the hologram line for a player.- Parameters:
player- - the player
-
isDestroyed
boolean isDestroyed()Check if the hologram line is destroyed.- Returns:
- true if the hologram line is destroyed
-
setHologram
Set the hologram bounded to.- Parameters:
hologram- - the hologram
-
setText
Set the text of the hologram line.- Parameters:
text- - the text
-
setText
Set the text of the hologram line.- Parameters:
text- - the textupdate- - if the hologram line should be updated
-
reveal
void reveal()Reveals the hologram line if the line has disappeared been removed by the server or another plugin -
reveal
void reveal(org.bukkit.entity.Player player) Reveals the hologram line for a player if the line has disappeared been removed by the server or another plugin- Parameters:
player- - the player
-
remove
void remove()Remove the hologram line but keeping the line object in its bounded hologram -
remove
void remove(org.bukkit.entity.Player player) Remove the hologram line for a player but keeping the line object- Parameters:
player- - the player
-
destroy
void destroy()Destroy the hologram line and also remove it from the hologram
-