Interface IHologram
public interface IHologram
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a line to the hologram.voidAdd a line to the hologram.voidAdd a line to the hologram.voidAdd a line to the hologram.voidaddPlayer(org.bukkit.entity.Player player) Add a player to this hologram.voidClear all lines from the hologram.voidclearLines(boolean update) Clear all lines from the hologram.doublegetGap()Get the gap between the lines.getLine(int index) Get a line from the hologram.getLines()Get all lines from the hologram.org.bukkit.LocationGet the location of the hologram.Set<org.bukkit.entity.Player> Get the player this hologram is bounded to.voidhide()Hide the hologram.voidinsertLine(int index, IHoloLine line) Insert a line to the hologram.voidinsertLine(int index, IHoloLine line, boolean update) Insert a line to the hologram.voidinsertLine(int index, String line) Insert a line to the hologram.voidinsertLine(int index, String line, boolean update) Insert a line to the hologram.booleanCheck if the hologram is showing.voidremove()Remove the hologram.voidremoveLine(int index) Remove a line from the hologram.voidremoveLine(int index, boolean update) Remove a line from the hologram.voidremoveLine(IHoloLine line) Remove a line from the hologram.voidremoveLine(IHoloLine line, boolean update) Remove a line from the hologram.voidremoveLineContaining(String text) Removes a line from the hologram that contains the specified text.voidremovePlayer(org.bukkit.entity.Player player) Remove a player from this hologram.voidsetGap(double gap) Set the gap between the lines.voidsetGap(double gap, boolean update) Set the gap between the lines.voidSet a line of the hologram.voidSet a line of the hologram.voidSet a line of the hologram.voidSet a line of the hologram.voidSet the hologram lines.voidSet the hologram lines.voidshow()Show the hologram.intsize()Get the size of the hologram.voidupdate()Update the hologram.voidupdate(org.bukkit.entity.Player player) Update the hologram for a specific player.
-
Method Details
-
getPlayers
Set<org.bukkit.entity.Player> getPlayers()Get the player this hologram is bounded to.- Returns:
- the player
-
addPlayer
void addPlayer(org.bukkit.entity.Player player) Add a player to this hologram.- Parameters:
player- - the player you want to add
-
removePlayer
void removePlayer(org.bukkit.entity.Player player) Remove a player from this hologram. -
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. -
update
void update(org.bukkit.entity.Player player) Update the hologram for a specific player.- Parameters:
player- - the player to update the hologram for
-
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.
-