Class CMIHologramProvider

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

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

    • CMIHologramProvider

      public CMIHologramProvider()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Check if CMI 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