Class CitizensNPC

java.lang.Object
com.ranull.graves.manager.EntityDataManager
dev.cwhead.GravesX.integration.CitizensNPC

@Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public final class CitizensNPC extends EntityDataManager
Deprecated, for removal: This API element is subject to removal in a future version.
Use FancyNpcs instead. API is always removing methods with little to no deprecation notice. Last need a large ass reflection class to keep up with their destructive changes. Manages NPC interactions and corpse creation/removal related to player graves using Citizens2. Utilizes reflection to remain compatible across multiple Citizens versions.
  • Constructor Details

    • CitizensNPC

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public CitizensNPC(Graves plugin)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a new CitizensNPC instance with the specified Graves plugin.
      Parameters:
      plugin - The main Graves plugin instance.
  • Method Details

    • registerListeners

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void registerListeners()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Registers the NPC interaction listeners.
    • unregisterListeners

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void unregisterListeners()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createCorpses

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void createCorpses()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates NPC corpses based on the cached entity data.
    • createCorpse

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void createCorpse(org.bukkit.Location location, Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void createCorpse(UUID uuid, org.bukkit.Location location, Grave grave, boolean createEntityData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void removeCorpse(Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removes the NPC corpse for the given grave.
    • removeCorpse

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void removeCorpse(EntityData entityData)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removes a specific corpse entity and its data.
    • removeCorpse

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public void removeCorpse(Map<EntityData,Object> entityDataMap)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Bulk removal using reflection.
    • hasNPCCorpse

      @Deprecated(since="4.9.9.4", forRemoval=true) @ScheduledForRemoval(inVersion="4.9.10.1") public boolean hasNPCCorpse(Grave grave)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if a corpse exists for the grave.