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
ConstructorsConstructorDescriptionHologramManager(Graves plugin) Initializes a new instance of the HologramManager class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateHologram(org.bukkit.Location location, Grave grave) Creates a hologram at the specified location for a given grave.voidremoveHologram(EntityData entityData) Removes a specific hologram associated with an entity data.voidremoveHologram(Grave grave) Removes all holograms associated with a grave.voidremoveHologram(Map<EntityData, org.bukkit.entity.Entity> entityDataMap) Removes multiple holograms associated with a map of entity data to entities.Methods inherited from class com.ranull.graves.manager.EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Field Details
-
plugin
The main plugin instance associated with Graves.This
Gravesinstance represents the core plugin that this Graves is part of. It provides access to the plugin's functionality, configuration, and other services.
-
-
Constructor Details
-
HologramManager
Initializes a new instance of the HologramManager class.- Parameters:
plugin- The plugin instance.
-
-
Method Details
-
createHologram
Creates a hologram at the specified location for a given grave.- Parameters:
location- The location where the hologram should be created.grave- The grave associated with the hologram.
-
removeHologram
Removes all holograms associated with a grave.- Parameters:
grave- The grave whose holograms should be removed.
-
removeHologram
Removes a specific hologram associated with an entity data.- Parameters:
entityData- The entity data of the hologram to remove.
-
removeHologram
Removes multiple holograms associated with a map of entity data to entities.- Parameters:
entityDataMap- The map of entity data to entities.
-