QtCraft API C++ classes QML types Handbook

QcInventoryAccess::Insertion Struct

struct QcInventoryAccess::Insertion

One unit (or the whole stack of an item entity) going from a source into a target slot. More...

Public Variables

QcBlockFace face
int giver
int slot
QcItemStack stack
QcBlockPos target

Detailed Description

Member Variable Documentation

QcBlockFace Insertion::face

The face of the target the item enters through (Up: from above).

int Insertion::giver

Who gives it: an index the caller understands (a hopper, a dispenser).

int Insertion::slot

Filled by resolve(): the slot it goes into.

QcItemStack Insertion::stack

The items that go.

QcBlockPos Insertion::target

The position of the target container or machine.