Class PlayerNPC

java.lang.Object
com.ranull.graves.manager.EntityDataManager
com.ranull.graves.integration.PlayerNPC

@Deprecated(since="4.9.9.1") public final class PlayerNPC extends EntityDataManager
Deprecated.
since 4.9.9.1 — Unmaintained. Use FancyNPCs instead.
Manages NPC interactions and corpse creation related to player graves using NPCLib. Extends EntityDataManager to handle entity data.
  • Constructor Details

    • PlayerNPC

      @Deprecated(since="4.9.9.1") public PlayerNPC(Graves plugin)
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs 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") public void registerListeners()
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs instead.
      Registers the NPC interaction listeners.
    • unregisterListeners

      @Deprecated(since="4.9.9.1") public void unregisterListeners()
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs instead.
      Unregisters the NPC interaction listeners.
    • createCorpses

      @Deprecated(since="4.9.9.1") public void createCorpses()
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs instead.
      Creates NPC corpses based on the cached entity data.
    • createCorpse

      @Deprecated(since="4.9.9.1") public void createCorpse(org.bukkit.Location location, Grave grave)
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs 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. Use FancyNPCs 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") public void removeCorpse(Grave grave)
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs 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") public void removeCorpse(EntityData entityData)
      Deprecated.
      since 4.9.9.1 — Unmaintained. Use FancyNPCs 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. Use FancyNPCs 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.