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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateHologram(org.bukkit.Location location, Grave grave) Creates a hologram at the specified location for a given grave.private voidexecuteRegion(org.bukkit.entity.Entity entity, Runnable task) private voidexecuteRegion(org.bukkit.Location loc, Runnable task) private StringextractGraveLocationKeyFromStand(org.bukkit.entity.ArmorStand stand) private StringextractGraveLocationKeyFromTags(org.bukkit.entity.Entity entity) private UUIDextractGraveUUIDFromStand(org.bukkit.entity.ArmorStand stand) private UUIDextractGraveUUIDFromTags(org.bukkit.entity.Entity entity) private StringfindFirstGroup(Pattern p, String s) private booleanlocKeysMatch(String expectedKey, String tagKey) private StringnormalizeLocKey(String raw) voidScans all worlds for hologram ArmorStands and schedules a region-thread check/removal for each matching stand.voidremoveHologram(EntityData entityData) Removes a specific hologram associated with an entity data.voidremoveHologram(Grave grave) Removes all holograms associated with a grave.private voidremoveHologram(Map<EntityData, org.bukkit.entity.Entity> entityDataMap) Removes multiple holograms associated with a map of entity data to entities.private StringtoLocKey(org.bukkit.Location loc) Methods inherited from class com.ranull.graves.manager.EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Field Details
-
plugin
-
-
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. -
removeHologram
Removes multiple holograms associated with a map of entity data to entities. Entity removals are executed on the entity's region thread. -
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
-
extractGraveUUIDFromStand
-
extractGraveLocationKeyFromStand
-
extractGraveUUIDFromTags
-
toLocKey
-
extractGraveLocationKeyFromTags
-
normalizeLocKey
-
findFirstGroup
-
locKeysMatch
-
executeRegion
-
executeRegion
-