QtCraft API C++ classes QML types Handbook

QcHandbookBlockTables::LightBlocking Struct

struct QcHandbookBlockTables::LightBlocking

How much light a block takes away. More...

Header: #include <common/handbook/builder/QcHandbookBlockTables.h>

Public Variables

bool coversSides
int opacity

Detailed Description

Partial shapes block light only at the sides they cover fully (coversSides, decision E-104) or not at all, whatever their own value says.

Member Variable Documentation

bool LightBlocking::coversSides

Whether a state of the block blocks light at some of its faces.

int LightBlocking::opacity

Light levels taken away when passing through, 0..15 (15 blocks all light).