Interface IHologram
public interface IHologram
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a line to the hologram.void
Add a line to the hologram.void
Add a line to the hologram.void
Add a line to the hologram.void
Clear all lines from the hologram.void
clearLines
(boolean update) Clear all lines from the hologram.double
getGap()
Get the gap between the lines.getLine
(int index) Get a line from the hologram.getLines()
Get all lines from the hologram.org.bukkit.Location
Get the location of the hologram.org.bukkit.entity.Player
Get the player this hologram is bounded to.void
hide()
Hide the hologram.void
insertLine
(int index, IHoloLine line) Insert a line to the hologram.void
insertLine
(int index, IHoloLine line, boolean update) Insert a line to the hologram.void
insertLine
(int index, String line) Insert a line to the hologram.void
insertLine
(int index, String line, boolean update) Insert a line to the hologram.boolean
Check if the hologram is showing.void
remove()
Remove the hologram.void
removeLine
(int index) Remove a line from the hologram.void
removeLine
(int index, boolean update) Remove a line from the hologram.void
removeLine
(IHoloLine line) Remove a line from the hologram.void
removeLine
(IHoloLine line, boolean update) Remove a line from the hologram.void
removeLineContaining
(String text) Removes a line from the hologram that contains the specified text.void
setGap
(double gap) Set the gap between the lines.void
setGap
(double gap, boolean update) Set the gap between the lines.void
Set a line of the hologram.void
Set a line of the hologram.void
Set a line of the hologram.void
Set a line of the hologram.void
Set the hologram lines.void
Set the hologram lines.void
show()
Show the hologram.int
size()
Get the size of the hologram.void
update()
Update the hologram.
-
Method Details
-
getPlayer
org.bukkit.entity.Player getPlayer()Get the player this hologram is bounded to.- Returns:
- the player
-
addLine
Add a line to the hologram.- Parameters:
line
- - the line you want to add
-
removeLine
Remove a line from the hologram.- Parameters:
line
- - the line you want to remove
-
removeLine
void removeLine(int index) Remove a line from the hologram.- Parameters:
index
- - the index of the line you want to remove
-
removeLineContaining
Removes a line from the hologram that contains the specified text.- Parameters:
text
- the text to search for within the lines of the hologram. If a line contains this text, it will be removed.
-
clearLines
void clearLines()Clear all lines from the hologram. -
update
void update()Update the hologram. -
show
void show()Show the hologram. -
hide
void hide()Hide the hologram. -
isShowing
boolean isShowing()Check if the hologram is showing.- Returns:
- true if the hologram is showing
-
size
int size()Get the size of the hologram.- Returns:
- the size
-
getLine
Get a line from the hologram.- Parameters:
index
- - the index of the line- Returns:
- the line
-
getLines
Get all lines from the hologram.- Returns:
- the lines
-
getLocation
org.bukkit.Location getLocation()Get the location of the hologram.- Returns:
- the location
-
setLines
Set the hologram lines.- Parameters:
lines
- - the linesupdate
- - if the hologram should be updated
-
setLines
Set the hologram lines.- Parameters:
lines
- - the linesupdate
- - if the hologram should be updated
-
setLine
Set a line of the hologram.- Parameters:
index
- - the index of the lineline
- - the line
-
setLine
Set a line of the hologram.- Parameters:
index
- - the index of the lineline
- - the lineupdate
- - if the hologram should be updated
-
setLine
Set a line of the hologram.- Parameters:
index
- - the index of the lineline
- - the line
-
setLine
Set a line of the hologram.- Parameters:
index
- - the index of the lineline
- - the lineupdate
- - if the hologram should be updated
-
insertLine
Insert a line to the hologram.- Parameters:
index
- - the index of the lineline
- - the line
-
insertLine
Insert a line to the hologram.- Parameters:
index
- - the index of the lineline
- - the lineupdate
- - if the hologram should be updated
-
insertLine
Insert a line to the hologram.- Parameters:
index
- - the index of the lineline
- - the line
-
insertLine
Insert a line to the hologram.- Parameters:
index
- - the index of the lineline
- - the lineupdate
- - if the hologram should be updated
-
addLine
Add a line to the hologram.- Parameters:
line
- - the line
-
addLine
Add a line to the hologram.- Parameters:
line
- - the line
-
addLine
Add a line to the hologram.- Parameters:
line
- - the lineupdate
- - if the hologram should be updated
-
removeLine
Remove a line from the hologram.- Parameters:
line
- - the lineupdate
- - if the hologram should be updated
-
removeLine
void removeLine(int index, boolean update) Remove a line from the hologram.- Parameters:
index
- - the index of the lineupdate
- - if the hologram should be updated
-
clearLines
void clearLines(boolean update) Clear all lines from the hologram.- Parameters:
update
- - if the hologram should be updated
-
setGap
void setGap(double gap) Set the gap between the lines.- Parameters:
gap
- - the gap
-
setGap
void setGap(double gap, boolean update) Set the gap between the lines.- Parameters:
gap
- - the gapupdate
- - if the hologram should be updated
-
getGap
double getGap()Get the gap between the lines. -
remove
void remove()Remove the hologram.
-