Package lol.pyr.znpcsplus.api.hologram
Interface Hologram
public interface Hologram
Represents a hologram
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a line to the hologram Note: to add an item line, pass "item:<item>" as the linevoid
Clears all lines from the hologramgetLine
(int index) Gets a line from the hologramlong
Gets the refresh delay of the hologramvoid
insertLine
(int index, String line) Inserts a line into the hologramint
Gets the number of lines in the hologramvoid
removeLine
(int index) Removes a line from the hologramvoid
setRefreshDelay
(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
-