Accessor

Accessor

class

Block side attachment point

Fields

NameTypeDescription
side Vec3i Side direction of the owning block
pos Vec3i Block local position
owner BlockLogic Block this accessor belongs to
cover StaticCover Cover prototype placed on this side

Functions

Accessor:neighbor()

Accessor of the neighbor block this side touches, nil when nothing is attached to it

returns Accessor Accessor facing this one

Standard members (3)

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

Accessor.cast(object) Trying to cast Object into Accessor
Accessor.get_class() Return Accessor class object
Accessor.new(parent, name) Creates a new Accessor attached to a block
Inherited from Instance (1)
Inherited from Object (3)

Subclasses

Used by