Accessor

Accessor

class

Block side attachment point

  • read-only Assigning to the field raises an error.

Fields

NameTypeDescription
side Vec3i Side direction of the owning block
pos Vec3i Block local position
owner read-only 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)

Every class of this kind carries these.

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