QtCraft API C++ classes QML types Handbook

QcCampfires::Entry Struct

struct QcCampfires::Entry

A campfire that holds an item. More...

Public Functions

bool isEmpty() const

Public Variables

std::array<QcCampfires::Slot, QcCampfireDefinition::maxSlots> places
QcBlockPos pos

Detailed Description

Member Function Documentation

bool Entry::isEmpty() const

Returns whether no place holds an item.

Member Variable Documentation

std::array<QcCampfires::Slot, QcCampfireDefinition::maxSlots> Entry::places

Its places; those beyond the block's slots stay empty.

QcBlockPos Entry::pos

The position of the campfire block.