constants
Enumerations of frequently used constants.
- class Direction(value)
Factorio direction enum. Encompasses all 8 cardinal directions and diagonals where north is 0 and increments clockwise.
NORTH
(Default)NORTHEAST
EAST
SOUTHEAST
SOUTH
SOUTHWEST
WEST
NORTHWEST
- class FilterMode(value)
Filter mode constant.
WHITELIST
: Include only the listed items. (Default)BLACKLIST
: Exclude only the listed items.
- class InserterModeOfOperation(value)
Inserter circuit control constants. Determines how the Entity should behave when connected to a circuit network.
ENABLE_DISABLE
: Turns the inserter on or off depending on the circuitcondition. (Default)
SET_FILTERS
: Sets the inserter’s filter signals based on read signals.READ_HAND_CONTENTS
: Reads the contents of the inserter’s hand andsends it to the connected wire(s).
NONE
: Does nothing.SET_STACK_SIZE
: Sets the stack size override to the value of an inputsignal.
- class LogisticModeOfOperation(value)
Logistics container circuit control constants. Determines how the Entity should behave when connected to a circuit network.
SEND_CONTENTS
: Reads the inventory of the container and sends it to the connected circuit network. (Default)SET_REQUESTS
: Sets the item requests based on the input signals to the container.
- class MiningDrillReadMode(value)
Used to specify whether the mining drill will read the contents beneath it or the entire resource patch.
Determines the manner in which a mining drill reads the resources beneath it.
UNDER_DRILL
: Only return the resources directly minable by this drill.(Default)
TOTAL_PATCH
: Return the entire contents of the ore patches the drillis over.
- class ReadMode(value)
Determines what manner belts and inserters should send their content signal.
PULSE
: Pulse the signal for one tick when first detected. (Default)HOLD
: Hold the signal for as long as the item is present.
- class TileSelectionMode(value)
Tile selection mode for
UpgradePlanner
.NORMAL
(Default)ALWAYS
NEVER
ONLY