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 TypeMethodDescriptionvoidcreateHologram(org.bukkit.Location location, Grave grave) Creates a hologram at the specified location for a given grave.Returns the cached grave by UUID (if present).voidPurges lingering hologram entities that appear to belong to GravesX.voidremoveHologram(EntityData entityData) Deprecated, for removal: This API element is subject to removal in a future version.voidremoveHologram(Grave grave) Removes all holograms associated with a grave.voidremoveHologram(List<EntityData> entityDataList) Deprecated, for removal: This API element is subject to removal in a future version.UseremoveHologram(Grave)instead.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
-
HologramManager
-
-
Method Details
-
createHologram
Creates a hologram at the specified location for a given grave.- Parameters:
location- the hologram locationgrave- the grave
-
removeHologram
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, for removal: This API element is subject to removal in a future version.UseremoveHologram(Grave)instead.- Parameters:
entityDataList- the old entity-data list removal input
-
removeHologram
Deprecated, for removal: This API element is subject to removal in a future version.UseremoveHologram(Grave)instead.- 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.UseremoveHologram(Grave)instead.- 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
-
removeHologram(Grave)instead.