BlockLogic

BlockLogic

class

Runtime state of a placed block

Fields

NameTypeDescription
map_register boolean Whether this block shows up on the map
static_block StaticBlock Prototype this block was spawned from
pos Vec3i Cell this block stands in
quat FQuat Rotation turning the block's local sides into world sides

Functions

BlockLogic:reg(accessor)

Register Accessor

accessor Accessor Accessor instance to register

BlockLogic:find_accessor(name)

Find a registered accessor by name

name string Accessor name

returns Accessor

BlockLogic:accessors()

Every accessor registered on this block

returns Accessor[] Registered accessors

Standard members (4)

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

BlockLogic.cast(object) Trying to cast Object into BlockLogic
BlockLogic.get_class() Return BlockLogic class object
BlockLogic.new(parent, name) Creates a new BlockLogic instance
BlockLogic.new_simple() Creates a new BlockLogic instance
Inherited from Instance (1)
Inherited from Object (3)

Subclasses

Used by