EnvironmentCrafter
classCrafter powered by solar or wind environment
- read-only Assigning to the field raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| environment_factor01 | read-only | number | |
| wind_powered | boolean | ||
| cut_in_wind_speed | number | Wind speed at which the rotor starts turning; below it output is zero | |
| rated_wind_speed | number | Wind speed at which output reaches the block rated production | |
| follows_sun | boolean | Solar output follows the sun altitude; false keeps the sun at its zenith day and night, and only clouds cut the output | |
Standard members (4)
Every class of this kind carries these.
| EnvironmentCrafter.cast(object) | Trying to cast Object into EnvironmentCrafter |
| EnvironmentCrafter.get_class() | Return EnvironmentCrafter class object |
| EnvironmentCrafter.new(parent, name) | Creates a new EnvironmentCrafter instance |
| EnvironmentCrafter.new_simple() | Creates a new EnvironmentCrafter instance |
Inherited from AbstractCrafter (16)
- recipes
- load_independent
- stable_supply
- input_gathered
- bonus_delivered
- switch_on
- ticks_passed
- real_ticks_passed
- total_production
- speed
- productivity percent (e.g. 15 = +15%)
- energy_input_inventory
- energy_output_inventory
- crafter_input_container
- crafter_output_container
- AbstractCrafter:select_recipe_by_output(item) Select the recipe producing an item, the way a player picks it in the machine window
Inherited from BlockLogic (8)
- map_register Whether this block shows up on the map
- static_block Prototype this block was spawned from
- pos read-only Cell this block stands in
- quat read-only Rotation turning the block's local sides into world sides
- state read-only State shown under the crosshair, one of defines.block_state
- BlockLogic:reg(accessor) Register Accessor
- BlockLogic:find_accessor(name) Find a registered accessor by name
- BlockLogic:accessors() Every accessor registered on this block
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object