Document that infinity_container_filters works on ghosts

Place to report issues and suggest improvements to the API documentation.
robot256
Smart Inserter
Smart Inserter
Posts: 1242
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Document that infinity_container_filters works on ghosts

Post by robot256 »

I discovered that ghost infinity chest/wagon/pipe filters can be interacted with just like ghost logistic chests. The following entries should have the note "Also works for ghosts", similar to LuaEntity::get_inventory_filter().
  • LuaEntity::infinity_container_filters
  • LuaEntity::remove_unfiltered_items
  • LuaEntity::get_infinity_container_filter()
  • LuaEntity::set_infinity_container_filter()
  • LuaEntity::get_infinity_pipe_filter()
  • LuaEntity::set_infinity_pipe_filter()
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Bilka
Factorio Staff
Factorio Staff
Posts: 3420
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Document that infinity_container_filters works on ghosts

Post by Bilka »

Indeed, that's why the page says "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.
Bilka
Factorio Staff
Factorio Staff
Posts: 3420
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Document that infinity_container_filters works on ghosts

Post by Bilka »

For the next version I've made clearer what makes get_inventory_filter (and similar) special in regards to ghosts.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
robot256
Smart Inserter
Smart Inserter
Posts: 1242
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Document that infinity_container_filters works on ghosts

Post by robot256 »

Bilka wrote: Tue Jul 22, 2025 3:32 pm Indeed, that's why the page says "Most functions on LuaEntity also work when the entity is contained in a ghost.".
Ah, thank you! I didn't notice that that part of the preamble is part of the API definition, not merely explanation.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Post Reply

Return to “Documentation Improvement Requests”