Blocks¶
Block Base Classes¶
-
class StaticBlock :
StaticObject
¶ -
logic:
Class
¶ undocumented
-
actor:
Class
¶ undocumented
-
selector:
Class
¶ undocumented
-
tesselator:
Tesselator
¶ undocumented
-
sub_blocks:
Vec3i
[]¶ undocumented
-
replace_tag:
string
¶ undocumented
-
color_side:
Vec3
¶ undocumented
-
color_top:
Vec3
¶ undocumented
-
tier:
integer
¶ undocumented
-
level:
integer
¶ undocumented
-
lua:
table
¶ undocumented
-
logic:
-
class StaticObject :
Prototype
¶ -
item:
StaticItem
¶ undocumented
-
staticmethod new(name:
string
)StaticObject
¶ Creates a new StaticObject static object
- Parameters:
name (
string
) – The name of the object
-
staticmethod find(name:
string
)StaticObject
¶ Searching for StaticObject in db
- Parameters:
name (
string
) – The name of the object
-
staticmethod get_class()
Class
¶ Return StaticObject class object
-
staticmethod cast(object:
Object
)StaticObject
¶ Trying to cast Object into StaticObject
- Parameters:
object (
Object
) – to cast
-
item:
-
class BlockLogic :
Instance
¶ -
static_block:
StaticBlock
¶ comment
-
reg(self:
BlockLogic
, accessor:Accessor
)¶ Register Accessor
- Parameters:
accessor (
Accessor
) – Accessor instance to register
-
staticmethod new(parent:
Object
, name:string
)BlockLogic
¶ Creates a new BlockLogic instance
- Parameters:
parent (
Object
) – Object of parentname (
string
) – The name of the instance
-
staticmethod new_simple()
BlockLogic
¶ Creates a new BlockLogic instance
-
staticmethod get_class()
Class
¶ Return BlockLogic class object
-
staticmethod cast(object:
Object
)BlockLogic
¶ Trying to cast Object into BlockLogic
- Parameters:
object (
Object
) – to cast
-
static_block:
-
class AbstractCrafter :
BlockLogic
¶ -
recipes:
RecipeDictionary
¶ undocumented
-
load_independent:
boolean
¶ undocumented
-
stable_supply:
boolean
¶ undocumented
-
input_gathered:
boolean
¶ undocumented
-
switch_on:
boolean
¶ undocumented
-
ticks_passed:
integer
¶ undocumented
-
real_ticks_passed:
integer
¶ undocumented
-
total_production:
integer
¶ undocumented
-
speed:
integer
¶ undocumented
-
energy_input_inventory:
ResourceInventory
¶ undocumented
-
energy_output_inventory:
ResourceInventory
¶ undocumented
-
crafter_input_container:
InventoryContainer
¶ undocumented
-
crafter_output_container:
InventoryContainer
¶ undocumented
-
recipes:
Logic Blocks¶
-
class SelectCrafter :
AbstractCrafter
¶ -
ignore_extra_slots:
bool
¶ undocumented
-
ignore_extra_slots:
-
class AutoCrafter :
SelectCrafter
¶
-
class ComputerBlockLogic :
BlockLogic
¶ -
energy_inventory:
ResourceInventory
¶ undocumented
-
energy_input:
ResourceAccessor
¶ undocumented
-
energy_inventory:
-
class ConductorBlockLogic :
StorageBlockLogic
¶ -
side_cover:
StaticCover
¶ undocumented
-
center_cover:
StaticCover
¶ undocumented
-
resistance:
integer
¶ mOhm
-
voltage:
integer
¶ Volt
-
channel:
string
¶ undocumented
-
conductor_channel:
integer
¶ undocumented
-
add_wire(self:
ConductorBlockLogic
, acc:ResourceAccessor
)¶ Add side wire
-
side_cover:
-
class FluidContainerBlockLogic :
ConductorBlockLogic
¶ -
capacity:
integer
¶ undocumented
-
charge:
integer
¶ undocumented
-
capacity:
-
class StorageBlockLogic :
BlockLogic
¶
Supporting Logic¶
-
class Accessor :
Instance
¶ -
side:
Vec3i
¶ undocumented
-
pos:
Vec3i
¶ undocumented
-
owner:
BlockLogic
¶ undocumented
-
cover:
StaticCover
¶ undocumented
-
staticmethod new(parent:
Object
, name:string
)Accessor
¶ Creates a new Accessor instance
- Parameters:
parent (
Object
) – Object of parentname (
string
) – The name of the instance
-
staticmethod get_class()
Class
¶ Return Accessor class object
-
side:
-
class ResourceAccessor :
Accessor
¶ -
inventory:
ResourceInventory
¶ undocumented
-
is_input:
boolean
¶ undocumented
-
is_output:
boolean
¶ undocumented
-
inventory:
-
class ResourceInventory :
SingleSlotInventory
¶ -
item:
StaticItem
¶ undocumented
-
drain:
integer
¶ undocumented
-
item: