request_filters

class RequestFiltersMixin(
trash_not_requested: bool = False,
request_from_buffers: bool = True,
requests_enabled: bool = True,
sections: list[ManualSection] = NOTHING,
*,
extra_keys: dict[str, Any] | None = None,
)

Used to allow entities to request items from the Logistic network.

request_from_buffers : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not this entity should request items from buffer chests in its logistic network.

requests_enabled : bool

Serialized

This attribute is imported/exported from blueprint strings.

Master toggle for all logistics requests on this entity. Superceeds any logistic request toggles on any contained logistic sections.

Only has an effect on versions of Factorio >= 2.0.

Added in version 3.0.0: (Factorio 2.0)

sections : list[ManualSection]

Serialized

This attribute is imported/exported from blueprint strings.

The list of logistics sections that this entity is configured to request.

trash_not_requested : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not to mark items in the inventory not currently requested for removal.

Only has an effect on versions of Factorio >= 2.0.

Added in version 3.0.0: (Factorio 2.0)

add_section(
group: str | None = None,
index: int | None = None,
active: bool = True,
) ManualSection

Adds a new section of request/signal entries to the entity.

Note

Beware of giving sections the same names; if a named group already exists within the save you are importing into, then that group will take precedence over the group inside of the blueprint.

Parameters:
group: str | None = None

The name to give this group. The group will have no name if omitted.

index: int | None = None

The index at which to insert the filter group. Defaults to the end if omitted.

active: bool = True

Whether or not this particular group is contributing its contents to the output in this specific combinator.

Returns:

A reference to the ManualSection just added, from which you can add entries to.