Retrieve information about a specific NPC in your instance using its ID or UUID. This endpoint returns details about the NPC including its name and association with the instance.Use this endpoint to track and manage your NPCs, ensuring they are properly registered and maintained in your game world.
Copy
// Retrieve an NPC using its UUIDUUID npcUuid = UUID.fromString("your-npc-uuid");NPC npc = PixocracySDK.NPCManager().retrieve(instance, npcUuid);// Access NPC propertiesString name = npc.getName();UUID uuid = npc.getUuid();