Package com.ranull.graves.integration
Class PlayerNPC
java.lang.Object
com.ranull.graves.manager.EntityDataManager
com.ranull.graves.integration.PlayerNPC
Deprecated.
Manages NPC interactions and corpse creation related to player graves using NPCLib.
Extends EntityDataManager to handle entity data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createCorpse
(UUID uuid, org.bukkit.Location location, Grave grave, boolean createEntityData) Deprecated.since 4.9.9.1 — Unmaintained.void
createCorpse
(org.bukkit.Location location, Grave grave) Deprecated.since 4.9.9.1 — Unmaintained.void
Deprecated.since 4.9.9.1 — Unmaintained.void
Deprecated.since 4.9.9.1 — Unmaintained.void
removeCorpse
(EntityData entityData) Deprecated.since 4.9.9.1 — Unmaintained.void
removeCorpse
(Grave grave) Deprecated.since 4.9.9.1 — Unmaintained.void
removeCorpse
(Map<EntityData, dev.sergiferry.playernpc.api.NPC.Global> entityDataMap) Deprecated.since 4.9.9.1 — Unmaintained.void
Deprecated.since 4.9.9.1 — Unmaintained.Methods inherited from class com.ranull.graves.manager.EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Constructor Details
-
PlayerNPC
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Constructs a new PlayerNPC instance with the specified Graves plugin.- Parameters:
plugin
- The main Graves plugin instance.
-
-
Method Details
-
registerListeners
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Registers the NPC interaction listeners. -
unregisterListeners
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Unregisters the NPC interaction listeners. -
createCorpses
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Creates NPC corpses based on the cached entity data. -
createCorpse
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Creates a new NPC corpse at the specified location with the given grave data.- Parameters:
location
- The location to spawn the NPC.grave
- The grave data for the NPC.
-
createCorpse
@Deprecated(since="4.9.9.1") public void createCorpse(UUID uuid, org.bukkit.Location location, Grave grave, boolean createEntityData) Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Creates a new NPC corpse with a specific UUID at the given location using the provided grave data.- Parameters:
uuid
- The UUID for the NPC.location
- The location to spawn the NPC.grave
- The grave data for the NPC.createEntityData
- Whether to create entity data for the NPC.
-
removeCorpse
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Removes the NPC corpse associated with the given grave.- Parameters:
grave
- The grave whose associated NPC corpse should be removed.
-
removeCorpse
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Removes the NPC corpse associated with the given entity data.- Parameters:
entityData
- The entity data whose associated NPC corpse should be removed.
-
removeCorpse
@Deprecated(since="4.9.9.1") public void removeCorpse(Map<EntityData, dev.sergiferry.playernpc.api.NPC.Global> entityDataMap) Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCs
instead.Removes multiple NPC corpses based on the provided entity data map.- Parameters:
entityDataMap
- A map of entity data to NPC.Global instances to be removed.
-
FancyNPCs
instead.