Class FoliaHologramProvider
java.lang.Object
io.github.projectunified.unihologram.api.local.LocalHologramProvider<org.bukkit.Location>
io.github.projectunified.unihologram.spigot.folia.FoliaHologramProvider
- All Implemented Interfaces:
HologramProvider<org.bukkit.Location>
The hologram provider for Folia
-
Constructor Summary
ConstructorDescriptionFoliaHologramProvider
(org.bukkit.plugin.Plugin plugin) Create a new hologram provider -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if Folia is availableprotected @NotNull Hologram<org.bukkit.Location>
newHologram
(@NotNull String name, @NotNull org.bukkit.Location location) Make a new hologramMethods inherited from class io.github.projectunified.unihologram.api.local.LocalHologramProvider
createHologram, getAllHolograms, getHologram
-
Constructor Details
-
FoliaHologramProvider
public FoliaHologramProvider(org.bukkit.plugin.Plugin plugin) Create a new hologram provider- Parameters:
plugin
- the plugin
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Check if Folia is available- Returns:
- true if it is
-
newHologram
@NotNull protected @NotNull Hologram<org.bukkit.Location> newHologram(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.Location location) Description copied from class:LocalHologramProvider
Make a new hologram- Specified by:
newHologram
in classLocalHologramProvider<org.bukkit.Location>
- Parameters:
name
- the name of the hologramlocation
- the location of the hologram- Returns:
- the hologram
-