I am attempting to replicate the functionality of base game generators, where they exist as items in your inventory, but become fully fledged World Objects on the ground when dropped. The best I was able to find was the MapObjects.OnNewWithSprite function call found in MOGenerator.lua. However, I have no indication of when or if this function is even called, and I can find no other code that handles the creation of the World Object version of the generator, so I feel I have hit a dead end.
Am I simply looking for the wrong words in the lua, or is this a special Java functionality that only works for base game generators?