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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NPCInteractListenerDeprecated.private final dev.sergiferry.playernpc.api.NPCLibDeprecated.private final GravesDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplySkinFromGraveOrFallback(dev.sergiferry.playernpc.api.NPC.Global npc, Grave grave) Deprecated.Attempts to apply skin from grave owner texture/signature; falls back to a baked skin if needed.voidcreateCorpse(UUID uuid, org.bukkit.Location location, Grave grave, boolean createEntityData) Deprecated.since 4.9.9.1 — Unmaintained.voidcreateCorpse(org.bukkit.Location location, Grave grave) Deprecated.since 4.9.9.1 — Unmaintained.voidDeprecated.since 4.9.9.1 — Unmaintained.private Map<EntityData, dev.sergiferry.playernpc.api.NPC.Global> getEntityDataNPCMap(List<EntityData> entityDataList) Deprecated.since 4.9.9.1 — Unmaintained.voidDeprecated.since 4.9.9.1 — Unmaintained.voidremoveCorpse(EntityData entityData) Deprecated.since 4.9.9.1 — Unmaintained.voidremoveCorpse(Grave grave) Deprecated.since 4.9.9.1 — Unmaintained.voidremoveCorpse(Map<EntityData, dev.sergiferry.playernpc.api.NPC.Global> entityDataMap) Deprecated.since 4.9.9.1 — Unmaintained.voidDeprecated.since 4.9.9.1 — Unmaintained.Methods inherited from class com.ranull.graves.manager.EntityDataManager
createEntityData, createEntityData, getEntityData, getEntityDataMap, getGrave, getGrave, getLoadedEntityDataList, removeEntityData, removeEntityData
-
Field Details
-
plugin
Deprecated. -
npcLib
private final dev.sergiferry.playernpc.api.NPCLib npcLibDeprecated. -
npcInteractListener
Deprecated.
-
-
Constructor Details
-
PlayerNPC
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCsinstead.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. UseFancyNPCsinstead.Registers the NPC interaction listeners. -
unregisterListeners
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCsinstead.Unregisters the NPC interaction listeners. -
createCorpses
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCsinstead.Creates NPC corpses based on the cached entity data. -
createCorpse
Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCsinstead.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. UseFancyNPCsinstead.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. UseFancyNPCsinstead.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. UseFancyNPCsinstead.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. UseFancyNPCsinstead.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.
-
getEntityDataNPCMap
@Deprecated(since="4.9.9.1") private Map<EntityData,dev.sergiferry.playernpc.api.NPC.Global> getEntityDataNPCMap(List<EntityData> entityDataList) Deprecated.since 4.9.9.1 — Unmaintained. UseFancyNPCsinstead.Retrieves a map of entity data to NPC.Global instances based on the provided entity data list.- Parameters:
entityDataList- The list of entity data to match with NPC.Global instances.- Returns:
- A map of entity data to NPC.Global instances.
-
applySkinFromGraveOrFallback
Deprecated.Attempts to apply skin from grave owner texture/signature; falls back to a baked skin if needed.
-
FancyNPCsinstead.