QtCraft API C++ classes QML types Handbook

QcBlockEntityRecord::Memory Struct

struct QcBlockEntityRecord::Memory

What a circuit component remembers; torches' recent switching is not saved. More...

Public Variables

quint32 burntOutLeft
std::optional<quint32> extendingAge
QcBlockPos pos
bool powered

Detailed Description

Member Variable Documentation

quint32 Memory::burntOutLeft

Ticks until a burnt-out torch may light again; 0: not burnt out.

std::optional<quint32> Memory::extendingAge

Ticks since a piston's extension started.

QcBlockPos Memory::pos

The component's cell.

bool Memory::powered

Whether it is powered.