I noticed that you can call e.g. LuaEntity.get+filter() or LuaEntity.get_or_create_control_behavior() on an entity ghost representing an inserter and it returns the information associated with it.
Is that intentional / officially supported or some undocumented behavior that might go away at any moment? The docs are unclear (they don't mention ghosts at all).
[2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost
Re: [2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost
It is intended. Since 2.0 configuring ghosts has been expanded to cover as much of the mod API as we can without crashing.
If you want to get ahold of me I'm almost always on Discord.
Re: [2.0.76] calling get_filter() / get_or_create_control_behavior() on a ghost
Ghosts are mentioned at the top of the LuaEntity page:
Most functions on LuaEntity also work when the entity is contained in a ghost.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

