Class FoliaHologram
java.lang.Object
io.github.projectunified.unihologram.api.simple.SimpleHologram<org.bukkit.Location>
io.github.projectunified.unihologram.spigot.folia.FoliaHologram
- All Implemented Interfaces:
Hologram<org.bukkit.Location>
A simple hologram for Folia
-
Field Summary
Fields inherited from class io.github.projectunified.unihologram.api.simple.SimpleHologram
lines, location, name -
Constructor Summary
ConstructorsConstructorDescriptionFoliaHologram(org.bukkit.plugin.Plugin plugin, String name, org.bukkit.Location location, @NotNull Consumer<Hologram<org.bukkit.Location>> onCreate, @NotNull Runnable onDestroy) Create a new hologram -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear the hologramprotected voidInitialize the hologramprotected voidUpdate the hologramMethods inherited from class io.github.projectunified.unihologram.api.simple.SimpleHologram
addLine, clear, getLines, getLocation, getName, init, insertLine, isInitialized, removeLine, setLine, setLines, setLocation
-
Constructor Details
-
FoliaHologram
public FoliaHologram(org.bukkit.plugin.Plugin plugin, String name, org.bukkit.Location location, @NotNull @NotNull Consumer<Hologram<org.bukkit.Location>> onCreate, @NotNull @NotNull Runnable onDestroy) Create a new hologram- Parameters:
plugin- the pluginname- the name of the hologramlocation- the location of the hologramonCreate- the action to run when the hologram is createdonDestroy- the action to run when the hologram is destroyed
-
-
Method Details
-
updateHologram
protected void updateHologram()Description copied from class:SimpleHologramUpdate the hologram- Specified by:
updateHologramin classSimpleHologram<org.bukkit.Location>
-
initHologram
protected void initHologram()Description copied from class:SimpleHologramInitialize the hologram- Specified by:
initHologramin classSimpleHologram<org.bukkit.Location>
-
clearHologram
protected void clearHologram()Description copied from class:SimpleHologramClear the hologram- Specified by:
clearHologramin classSimpleHologram<org.bukkit.Location>
-