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.
  • 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. Spawns each ArmorStand on the region thread for that line location.
    • removeHologram

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

      public void removeHologram(EntityData entityData)
      Removes a specific hologram associated with an entity data.
    • purgeLingeringHolograms

      public void purgeLingeringHolograms()
      Scans all worlds for hologram ArmorStands and schedules a region-thread check/removal for each matching stand. The outer iteration is lightweight; all state reads/writes are performed inside the entity's region execution.
    • hasGrave

      public Grave hasGrave(UUID graveUUID)