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 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:
      createHologram in interface me.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:
      getHologram in interface me.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
    • getAllHolograms

      public Collection<me.hsgamer.unihologram.common.api.Hologram<org.bukkit.Location>> getAllHolograms()
      Specified by:
      getAllHolograms in interface me.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>
    • isLocal

      public boolean isLocal()
      Specified by:
      isLocal in interface me.hsgamer.unihologram.common.api.HologramProvider<org.bukkit.Location>