QtCraft API C++ classes QML types Handbook

QcVillagerBehaviour::Action Struct

struct QcVillagerBehaviour::Action

Something a villager does to the world, carried out by the server (QcServerVillagers). More...

Public Types

enum class Kind { OpenDoor, CloseDoor, Harvest }

Public Variables

QcVillagerBehaviour::Action::Kind kind
QcBlockPos pos
quint32 villager

Detailed Description

Member Type Documentation

enum class Action::Kind

What it does.

ConstantValueDescription
QcVillagerBehaviour::Action::Kind::OpenDoor0Opens the door at pos.
QcVillagerBehaviour::Action::Kind::CloseDoor1Closes the door at pos.
QcVillagerBehaviour::Action::Kind::Harvest2Harvests the crop at pos.

Member Variable Documentation

QcVillagerBehaviour::Action::Kind Action::kind

What it does.

QcBlockPos Action::pos

The block it acts on.

quint32 Action::villager

Entity id of the villager.