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 TypeMethodDescriptionvoid
addLine
(int page, @NotNull HologramLine line) Add a line to the hologramdefault void
addLine
(@NotNull HologramLine line) Add a line to the hologramdefault int
Get 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 hologramint
getPages()
Get the amount of pagesvoid
insertLine
(int page, int index, @NotNull HologramLine line) Insert a line to the hologram at the index and move the rest downdefault void
insertLine
(int index, @NotNull HologramLine line) Insert a line to the hologram at the index and move the rest downdefault void
removeLine
(int index) Remove a line at the index from the hologramvoid
removeLine
(int page, int index) Remove a line at the index from the hologramdefault void
setLine
(int page, int index, @NotNull HologramLine line) Set the line at the index to the new linedefault void
setLine
(int index, @NotNull HologramLine line) Set the line at the index to the new linevoid
setLines
(int page, @NotNull List<HologramLine> lines) Set the lines of the hologramdefault void
setLines
(@NotNull List<HologramLine> lines) Set the lines of the hologramdefault int
size()
Get the amount of linesdefault int
size
(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:Hologram
Get the lines of the hologram -
setLines
Description copied from interface:Hologram
Set the lines of the hologram -
addLine
Description copied from interface:Hologram
Add a line to the hologram -
insertLine
Description copied from interface:Hologram
Insert a line to the hologram at the index and move the rest down- Specified by:
insertLine
in interfaceHologram<T>
- Parameters:
index
- the indexline
- the line
-
removeLine
default void removeLine(int index) Description copied from interface:Hologram
Remove a line at the index from the hologram- Specified by:
removeLine
in interfaceHologram<T>
- Parameters:
index
- the index
-
setLine
Description copied from interface:Hologram
Set the line at the index to the new line -
getLine
Description copied from interface:Hologram
Get the line at the index -
size
default int size()Description copied from interface:Hologram
Get the amount of lines
-