Package me.hsgamer.unihologram.spigot
Class SpigotHologramProvider
java.lang.Object
me.hsgamer.unihologram.spigot.SpigotHologramProvider
- All Implemented Interfaces:
me.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
public class SpigotHologramProvider
extends Object
implements me.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
A hologram provider for Spigot.
It will use the best provider available.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new hologram providerSpigotHologramProvider(org.bukkit.plugin.Plugin plugin) Create a new hologram provider -
Method Summary
Modifier and TypeMethodDescription@NotNull me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>createHologram(@NotNull String name, @NotNull org.bukkit.Location location) Collection<me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>>Optional<me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>>getHologram(@NotNull String name) booleanisLocal()
-
Constructor Details
-
SpigotHologramProvider
public SpigotHologramProvider(org.bukkit.plugin.Plugin plugin) Create a new hologram provider- Parameters:
plugin- the plugin
-
SpigotHologramProvider
public SpigotHologramProvider()Create a new hologram provider
-
-
Method Details
-
createHologram
@NotNull public @NotNull me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location> createHologram(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.Location location) - Specified by:
createHologramin interfaceme.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
-
getHologram
public Optional<me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>> getHologram(@NotNull @NotNull String name) - Specified by:
getHologramin interfaceme.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
-
getAllHolograms
public Collection<me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>> getAllHolograms()- Specified by:
getAllHologramsin interfaceme.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfaceme.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
-