Interface PagedHologram<T>
- Type Parameters:
T- the type of the location
- All Superinterfaces:
Hologram<T>
- All Known Implementing Classes:
DHHologram
A
Hologram that supports multiple pages-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(int page, @NotNull HologramLine line) Add a line to the hologramdefault voidaddLine(@NotNull HologramLine line) Add a line to the hologramdefault intGet the first pagedefault Optional<HologramLine>getLine(int index) Get the line at the indexdefault Optional<HologramLine>getLine(int page, int index) Get the line at the indexdefault @NotNull List<HologramLine>getLines()Get the lines of the hologram@NotNull List<HologramLine>getLines(int page) Get the lines of the hologramintgetPages()Get the amount of pagesvoidinsertLine(int page, int index, @NotNull HologramLine line) Insert a line to the hologram at the index and move the rest downdefault voidinsertLine(int index, @NotNull HologramLine line) Insert a line to the hologram at the index and move the rest downdefault voidremoveLine(int index) Remove a line at the index from the hologramvoidremoveLine(int page, int index) Remove a line at the index from the hologramdefault voidsetLine(int page, int index, @NotNull HologramLine line) Set the line at the index to the new linedefault voidsetLine(int index, @NotNull HologramLine line) Set the line at the index to the new linevoidsetLines(int page, @NotNull List<HologramLine> lines) Set the lines of the hologramdefault voidsetLines(@NotNull List<HologramLine> lines) Set the lines of the hologramdefault intsize()Get the amount of linesdefault intsize(int page) Get the amount of linesMethods inherited from interface io.github.projectunified.unihologram.api.Hologram
clear, getLocation, getName, init, isInitialized, setLocation
-
Method Details
-
getFirstPage
default int getFirstPage()Get the first page- Returns:
- the first page
-
getPages
int getPages()Get the amount of pages- Returns:
- the amount
-
getLines
Get the lines of the hologram- Parameters:
page- the page- Returns:
- the lines
-
setLines
Set the lines of the hologram- Parameters:
page- the pagelines- the lines
-
addLine
Add a line to the hologram- Parameters:
page- the pageline- the line
-
insertLine
Insert a line to the hologram at the index and move the rest down- Parameters:
page- the pageindex- the indexline- the line
-
removeLine
void removeLine(int page, int index) Remove a line at the index from the hologram- Parameters:
page- the pageindex- the index
-
setLine
Set the line at the index to the new line- Parameters:
page- the pageindex- the indexline- the new line
-
getLine
Get the line at the index- Parameters:
page- the pageindex- the index- Returns:
- the line
-
size
default int size(int page) Get the amount of lines- Parameters:
page- the page- Returns:
- the amount
-
getLines
Description copied from interface:HologramGet the lines of the hologram -
setLines
Description copied from interface:HologramSet the lines of the hologram -
addLine
Description copied from interface:HologramAdd a line to the hologram -
insertLine
Description copied from interface:HologramInsert a line to the hologram at the index and move the rest down- Specified by:
insertLinein interfaceHologram<T>- Parameters:
index- the indexline- the line
-
removeLine
default void removeLine(int index) Description copied from interface:HologramRemove a line at the index from the hologram- Specified by:
removeLinein interfaceHologram<T>- Parameters:
index- the index
-
setLine
Description copied from interface:HologramSet the line at the index to the new line -
getLine
Description copied from interface:HologramGet the line at the index -
size
default int size()Description copied from interface:HologramGet the amount of lines
-