Class HologramManager

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

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

    • HologramManager

      public HologramManager(Graves plugin)
  • 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 hologram location
      grave - the grave
    • removeHologram

      public void removeHologram(Grave grave)
      Removes all holograms associated with a grave.

      This is the only supported public removal entrypoint.

      Parameters:
      grave - the grave whose holograms should be removed
    • removeHologram

      @Deprecated(forRemoval=true) public void removeHologram(List<EntityData> entityDataList)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      entityDataList - the old entity-data list removal input
    • removeHologram

      @Deprecated(forRemoval=true) public void removeHologram(EntityData entityData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      entityData - the old entity-data removal input
    • removeHologram

      @Deprecated(forRemoval=true) public void removeHologram(Map<EntityData, org.bukkit.entity.Entity> entityDataMap)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      entityDataMap - the old entity/entity-data map removal input
    • purgeLingeringHolograms

      public void purgeLingeringHolograms()
      Purges lingering hologram entities that appear to belong to GravesX.
    • hasGrave

      public Grave hasGrave(UUID graveUUID)
      Returns the cached grave by UUID (if present).
      Parameters:
      graveUUID - the grave UUID
      Returns:
      the grave, or null if not cached