DrillingMachineBase

DrillingMachineBase

class

Base class of resource extracting machines

Fields

NameTypeDescription
ticks_per_item integer Exact time to extract one item, in ticks
remaining_energy integer Energy left of the current cycle
productivity integer Bonus output percent, 15 means +15%
total_production integer Completed cycles, bonus cycles included
inventory InventoryContainer Output inventory
energy ResourceInventory Energy inventory
production integer Items produced per cycle
storage_size integer Output inventory capacity
last_speed integer Last measured speed percent
current_recipe_time integer Ticks of the recipe in progress

Functions

DrillingMachineBase:has_storage_space()

Whether the output inventory can take one more item

returns boolean

DrillingMachineBase:is_energy_available()

Whether the current cycle still has energy

returns boolean

DrillingMachineBase:get_source()

Deposit being mined, nil for machines without one

returns SourceData

Standard members (2)

Every class of this kind carries these.

DrillingMachineBase.cast(object) Trying to cast Object into DrillingMachineBase
DrillingMachineBase.get_class() Return DrillingMachineBase class object
Inherited from BlockLogic (8)
Inherited from Instance (1)
Inherited from Object (3)

Subclasses