Package lol.pyr.znpcsplus.api.hologram
Interface Hologram
public interface Hologram
Represents a hologram
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a line to the hologram Note: to add an item line, pass "item:<item>" as the linevoidClears all lines from the hologramgetLine(int index) Gets a line from the hologramlongGets the refresh delay of the hologramvoidinsertLine(int index, String line) Inserts a line into the hologramintGets the number of lines in the hologramvoidremoveLine(int index) Removes a line from the hologramvoidsetRefreshDelay(long delay) Sets the refresh delay of the hologram
-
Method Details
-
addLine
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
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
Inserts a line into the hologram- Parameters:
index- The index to insert the line atline- 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
-