QtCraft API C++ classes QML types Handbook

QcGrowthDefinition Struct

A plant that grows upwards by itself (sugar cane): random ticks of its top block add a block of the same kind above until the column is maxHeight tall. More...

Header: #include <common/content/recipes/QcFarmingDefinitions.h>

Public Functions

bool grows() const

Public Variables

double averageSeconds
int maxHeight

Detailed Description

Server side only.

Member Function Documentation

bool QcGrowthDefinition::grows() const

Returns whether the block grows upwards (maxHeight above 0).

Member Variable Documentation

double QcGrowthDefinition::averageSeconds

Average seconds between two growth steps of one column.

int QcGrowthDefinition::maxHeight

Tallest column it grows to; 0 for blocks that do not grow.