Class HologramManager

java.lang.Object
com.ranull.graves.manager.EntityDataManager
com.ranull.graves.manager.HologramManager

public final class HologramManager extends EntityDataManager
The HologramManager class is responsible for managing holograms associated with graves.
  • Field Details

    • plugin

      private final Graves plugin
      The main plugin instance associated with Graves.

      This Graves instance represents the core plugin that this Graves is part of. It provides access to the plugin's functionality, configuration, and other services.

  • Constructor Details

    • HologramManager

      public HologramManager(Graves plugin)
      Initializes a new instance of the HologramManager class.
      Parameters:
      plugin - The plugin instance.
  • Method Details

    • createHologram

      public void createHologram(org.bukkit.Location location, Grave grave)
      Creates a hologram at the specified location for a given grave.
      Parameters:
      location - The location where the hologram should be created.
      grave - The grave associated with the hologram.
    • removeHologram

      public void removeHologram(Grave grave)
      Removes all holograms associated with a grave.
      Parameters:
      grave - The grave whose holograms should be removed.
    • removeHologram

      public void removeHologram(EntityData entityData)
      Removes a specific hologram associated with an entity data.
      Parameters:
      entityData - The entity data of the hologram to remove.
    • removeHologram

      public void removeHologram(Map<EntityData,org.bukkit.entity.Entity> entityDataMap)
      Removes multiple holograms associated with a map of entity data to entities.
      Parameters:
      entityDataMap - The map of entity data to entities.