Class CMIHologram
java.lang.Object
io.github.projectunified.unihologram.spigot.cmi.CMIHologram
- All Implemented Interfaces:
Hologram<org.bukkit.Location>
The hologram for CMI
-
Constructor Summary
ConstructorsConstructorDescriptionCMIHologram(com.Zrips.CMI.Modules.Holograms.CMIHologram hologram) Create a new hologramCMIHologram(String name, org.bukkit.Location location) Create a new hologram -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(@NotNull HologramLine line) Add a line to the hologramvoidclear()Clear the hologram@NotNull List<HologramLine>getLines()Get the lines of the hologramorg.bukkit.LocationGet the location of the hologramgetName()Get the name of the hologramvoidinit()Initialize the hologram.voidinsertLine(int index, @NotNull HologramLine line) Insert a line to the hologram at the index and move the rest downbooleanCheck if the hologram is initializedvoidremoveLine(int index) Remove a line at the index from the hologramvoidsetLine(int index, @NotNull HologramLine line) Set the line at the index to the new linevoidsetLines(@NotNull List<HologramLine> lines) Set the lines of the hologramvoidsetLocation(org.bukkit.Location location) Set the location of the hologram
-
Constructor Details
-
CMIHologram
Create a new hologram- Parameters:
name- the name of the hologramlocation- the location of the hologram
-
CMIHologram
public CMIHologram(com.Zrips.CMI.Modules.Holograms.CMIHologram hologram) Create a new hologram- Parameters:
hologram- the hologram
-
-
Method Details
-
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 -
setLine
Description copied from interface:HologramSet the line at the index to the new line -
insertLine
Description copied from interface:HologramInsert a line to the hologram at the index and move the rest down- Specified by:
insertLinein interfaceHologram<org.bukkit.Location>- Parameters:
index- the indexline- the line
-
removeLine
public void removeLine(int index) Description copied from interface:HologramRemove a line at the index from the hologram- Specified by:
removeLinein interfaceHologram<org.bukkit.Location>- Parameters:
index- the index
-
getName
Description copied from interface:HologramGet the name of the hologram -
init
public void init()Description copied from interface:HologramInitialize the hologram. Call this before using the hologram. -
clear
public void clear()Description copied from interface:HologramClear the hologram -
isInitialized
public boolean isInitialized()Description copied from interface:HologramCheck if the hologram is initialized- Specified by:
isInitializedin interfaceHologram<org.bukkit.Location>- Returns:
- true if it is
-
getLocation
public org.bukkit.Location getLocation()Description copied from interface:HologramGet the location of the hologram- Specified by:
getLocationin interfaceHologram<org.bukkit.Location>- Returns:
- the location
-
setLocation
public void setLocation(org.bukkit.Location location) Description copied from interface:HologramSet the location of the hologram- Specified by:
setLocationin interfaceHologram<org.bukkit.Location>- Parameters:
location- the location
-