In vanilla Thaumcraft, a few research entries have unique unlock triggers, such as the primordial pearl, which unlocks when you pick it up, or the Outer Lands, which unlocks when you arrive there. I'm working on a lore-heavy add-on which has a few items which have to be created (by smelting another item) before their research is unlocked. I'm wondering what sort of trigger is used in Thaumcraft to unlock research outside of normal methods. Looking over the API, I've found a way to unlock entries by scanning an item, but nothing that lets me create a trigger when an item is picked up. Is it maybe a method that an item (like the pearl) can call? If so, I can't find it.
I'm already planning a few instances of unique triggers for unlocking research; I'll be disappointed if I won't be able to make them work (though if Azanor could do it, I'm sure I can, too)
Ah, I hadn't thought of using forge events ^_^. Thank you for your help. I'm still coding in items and research, so it'll be a bit before I can test it out. I'm trying to think of a method to unlock without having the research creation event happen when it's picked up. Or is that how I would do it? (call createResearchItem on the ItemPickupEvent)
It's possible this is really obvious, and I'm just derping hard right now :P. I can't count the number of times I've run into a problem coding and then realized I was just being stupid a day or two later.