Class ArmorStandManager
java.lang.Object
com.ranull.graves.manager.EntityDataManager
dev.cwhead.GravesX.manager.ArmorStandManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateHologram(org.bukkit.Location location, Grave grave) Creates an ArmorStand hologram at the specified location for a given grave.voidvoidRemoves every live ArmorStand hologram entity in loaded worlds that is tagged for the given grave.voidremoveHologram(EntityData entityData) Deprecated, for removal: This API element is subject to removal in a future version.voidremoveHologram(Grave grave) Removes all ArmorStand holograms linked to the given grave.voidremoveHologram(Map<EntityData, org.bukkit.entity.Entity> entityDataMap) Deprecated, for removal: This API element is subject to removal in a future version.UseremoveHologram(Grave)instead.Methods inherited from class EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Constructor Details
-
ArmorStandManager
-
-
Method Details
-
createHologram
Creates an ArmorStand hologram at the specified location for a given grave. Spawns each ArmorStand on the region thread for that line location. -
removeHologram
Removes all ArmorStand holograms linked to the given grave.This is the only supported public removal entrypoint. It resolves hologram data directly from CacheManager using the grave UUID.
- Parameters:
grave- the grave whose ArmorStand holograms should be removed
-
removeHologram
Deprecated, for removal: This API element is subject to removal in a future version.UseremoveHologram(Grave)instead. -
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.UseremoveHologram(Grave)instead. -
purgeLingeringHolograms
public void purgeLingeringHolograms() -
purgeWorldArmorStandHolograms
Removes every live ArmorStand hologram entity in loaded worlds that is tagged for the given grave.- Parameters:
grave- the grave whose ArmorStand holograms should be purged
-
hasGrave
-
removeHologram(Grave)instead.