A single logistic network of a given force on a given surface.
get_item_count(item, member) → int | Count given or all items in the network or given members. |
get_contents() → dictionary[string → uint] | Get item counts for the entire network. |
remove_item(item, members) → uint | Remove items from the logistic network. |
insert(item, members) → uint | Insert items into the logistic network. |
find_cell_closest_to(position) → LuaLogisticCell | Find logistic cell closest to a given position. |
select_pickup_point{name = …, position = …, include_buffers = …, members = …} → LuaLogisticPoint | Find the 'best' logistic point with this item ID and from the given position or from given chest type. |
select_drop_point{stack = …, members = …} → LuaLogisticPoint | Find a logistic point to drop the specific item stack. |
force :: LuaForce [R] | The force this logistic network belongs to. |
available_logistic_robots :: uint [R] | Number of logistic robots available for a job. |
all_logistic_robots :: uint [R] | The total number of logistic robots in the network (idle and active + in roboports). |
available_construction_robots :: uint [R] | Number of construction robots available for a job. |
all_construction_robots :: uint [R] | The total number of construction robots in the network (idle and active + in roboports). |
robot_limit :: uint [R] | Maximum number of robots the network can work with. |
cells :: array[LuaLogisticCell] [R] | All cells in this network. |
providers :: array[LuaEntity] [R] | All entities that have logistic provider points in this network. |
empty_providers :: array[LuaEntity] [R] | All entities that have empty logistic provider points in this network. |
requesters :: array[LuaEntity] [R] | All entities that have logistic requester points in this network. |
storages :: array[LuaEntity] [R] | All entities that have logistic storage points in this network. |
logistic_members :: array[LuaEntity] [R] | All other entities that have logistic points in this network (inserters mostly). |
provider_points :: array[LuaLogisticPoint] [R] | All things that have provider points in this network. |
passive_provider_points :: array[LuaLogisticPoint] [R] | All passive provider points in this network. |
active_provider_points :: array[LuaLogisticPoint] [R] | All active provider points in this network. |
empty_provider_points :: array[LuaLogisticPoint] [R] | All things that have empty provider points in this network. |
requester_points :: array[LuaLogisticPoint] [R] | All things that have requester points in this network. |
storage_points :: array[LuaLogisticPoint] [R] | All things that have storage points in this network. |
robots :: array[LuaEntity] [R] | All robots in this logistic network. |
construction_robots :: array[LuaEntity] [R] | All construction robots in this logistic network. |
logistic_robots :: array[LuaEntity] [R] | All logistic robots in this logistic network. |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
Count given or all items in the network or given members.
Get item counts for the entire network.
Remove items from the logistic network. This will actually remove the items from some logistic chests.
"storage"
, "passive-provider"
, "buffer"
, or "active-provider"
. If not specified, removes
from the network in the usual order.Insert items into the logistic network. This will actually insert the items into some logistic chests.
"storage"
, "storage-empty"
(storage chests that are completely empty),
"storage-empty-slot"
(storage chests that have an empty slot), or "requester"
. If not
specified, inserts items into the logistic network in the usual order.Find logistic cell closest to a given position.
nil
if no cell was found.Find the 'best' logistic point with this item ID and from the given position or from given chest type.
"storage"
, "passive-provider"
, "buffer"
or "active-provider"
. If not specified, selects with normal priorities. Not considered if position is specified.nil
if no point was found.Find a logistic point to drop the specific item stack.
"storage"
, "storage-empty"
, "storage-empty-slot"
or "requester"
. If not specified, selects with normal priorities.nil
if no point was found.The force this logistic network belongs to.
Number of logistic robots available for a job.
The total number of logistic robots in the network (idle and active + in roboports).
Number of construction robots available for a job.
The total number of construction robots in the network (idle and active + in roboports).
Maximum number of robots the network can work with. Currently only used for the personal roboport.
All cells in this network.
All entities that have logistic provider points in this network.
All entities that have empty logistic provider points in this network.
All entities that have logistic requester points in this network.
All entities that have logistic storage points in this network.
All other entities that have logistic points in this network (inserters mostly).
All things that have provider points in this network.
All passive provider points in this network.
All active provider points in this network.
All things that have empty provider points in this network.
All things that have requester points in this network.
All things that have storage points in this network.
All robots in this logistic network.
All construction robots in this logistic network.
All logistic robots in this logistic network.