Accessor
classBlock side attachment point
- read-only Assigning to the field raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| 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)
These members are available on all classes of this kind.
| 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)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object
Subclasses
Used by
- BlockLogic.reg param
- BlockLogic.find_accessor return
- BlockLogic.accessors return