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

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

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 parent

  • name (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

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

Logic Blocks

class SelectCrafter : AbstractCrafter
ignore_extra_slots: bool

undocumented

class AutoCrafter : SelectCrafter
class ComputerBlockLogic : BlockLogic
energy_inventory: ResourceInventory

undocumented

energy_input: ResourceAccessor

undocumented

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

class FluidContainerBlockLogic : ConductorBlockLogic
capacity: integer

undocumented

charge: integer

undocumented

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 parent

  • name (string) – The name of the instance

staticmethod get_class() Class

Return Accessor class object

staticmethod cast(object: Object) Accessor

Trying to cast Object into Accessor

Parameters:

object (Object) – to cast

class ResourceAccessor : Accessor
inventory: ResourceInventory

undocumented

is_input: boolean

undocumented

is_output: boolean

undocumented

class ResourceInventory : SingleSlotInventory
item: StaticItem

undocumented

drain: integer

undocumented