StaticBlock

StaticBlock

class

Placeable block prototype

Fields

NameTypeDescription
logic Class BlockLogic class driving the simulation
actor Class Presentation actor class spawned for the block
selector Class Selector widget class
tesselator Tesselator Mesh tesselator used to render the block
sub_blocks Vec3i[] Occupied cells relative to the block origin
replace_tag string Blocks sharing a tag replace each other on build
tier integer Block tier used for recipe speed scaling
level integer Block level within its tier
energy_consumption_per_tick integer Electricity drawn per simulation tick
energy_production_per_tick integer Electricity produced per simulation tick
break_effect Class Effect actor class spawned when the block is destroyed
lua table? Lua prototype table with logic_init and actor_init hooks
half_cover StaticCover Cover mesh for the half-height variant
center_cover StaticCover Cover mesh for the center part
body_cover StaticCover Cover mesh for the block body
export_options LogicExportOption[] Logic export signals published by this block type
import_options LogicImportOption[] Logic import signals accepted by this block type
Standard members (5)

Generated for every class of this kind by the game's codegen, not written for StaticBlock.

StaticBlock.cast(object) Trying to cast Object into StaticBlock
StaticBlock.get_class() Return StaticBlock class object
StaticBlock.find(name) Looks StaticBlock up in db, nil when there is none
StaticBlock.get(name) Takes StaticBlock from db, reports a miss to the log
StaticBlock.reg(name) Register a new StaticBlock static object
Inherited from StaticObject (1)
  • item Item this object is built from and mined into
Inherited from Prototype (2)
Inherited from Object (1)

Subclasses

Used by