java.lang.Object
io.github.projectunified.unihologram.spigot.decentholograms.DHHologramProvider
All Implemented Interfaces:
HologramProvider<org.bukkit.Location>

public class DHHologramProvider extends Object implements HologramProvider<org.bukkit.Location>
The hologram provider for DecentHolograms
  • Constructor Details

    • DHHologramProvider

      public DHHologramProvider()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Check if DecentHolograms is available
      Returns:
      true if available
    • createHologram

      @NotNull public @NotNull Hologram<org.bukkit.Location> createHologram(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.Location location)
      Description copied from interface: HologramProvider
      Create a new hologram
      Specified by:
      createHologram in interface HologramProvider<org.bukkit.Location>
      Parameters:
      name - the name of the hologram
      location - the location of the hologram
      Returns:
      the hologram
    • getHologram

      public Optional<Hologram<org.bukkit.Location>> getHologram(@NotNull @NotNull String name)
      Description copied from interface: HologramProvider
      Get a hologram by its name
      Specified by:
      getHologram in interface HologramProvider<org.bukkit.Location>
      Parameters:
      name - the name of the hologram
      Returns:
      the hologram
    • getAllHolograms

      public Collection<Hologram<org.bukkit.Location>> getAllHolograms()
      Description copied from interface: HologramProvider
      Get all holograms
      Specified by:
      getAllHolograms in interface HologramProvider<org.bukkit.Location>
      Returns:
      the collection of holograms