Package com.ranull.graves.manager
Class HologramManager
java.lang.Object
com.ranull.graves.manager.EntityDataManager
com.ranull.graves.manager.HologramManager
The HologramManager class is responsible for managing holograms associated with graves.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createHologram
(org.bukkit.Location location, Grave grave) Creates a hologram at the specified location for a given grave.void
Scans all worlds for hologram ArmorStands and schedules a region-thread check/removal for each matching stand.void
removeHologram
(EntityData entityData) Removes a specific hologram associated with an entity data.void
removeHologram
(Grave grave) Removes all holograms associated with a grave.Methods inherited from class com.ranull.graves.manager.EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Constructor Details
-
HologramManager
-
-
Method Details
-
createHologram
Creates a hologram at the specified location for a given grave. Spawns each ArmorStand on the region thread for that line location. -
removeHologram
Removes all holograms associated with a grave. -
removeHologram
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
-