QcLiquidDefinition Struct
How a liquid block flows (see QcLiquidFlow). More...
| Header: | #include <common/content/blockbehaviour/QcLiquidDefinition.h> |
Public Functions
| bool | flows() const |
Public Variables
| QString | bottle |
| QString | bucket |
| int | distance |
| int | dropSearch |
| bool | infinite |
| double | movementFactor |
| QList<QcLiquidReaction> | reactions |
| QString | sound |
| int | ticks |
Static Public Members
| const int | maxDistance |
| const int | maxDropSearch |
| const int | maxTicks |
Detailed Description
A flowing liquid has the state properties level ("0" for a source, "1".."distance" for the flow that far from it) and optionally falling (fed from above).
Member Function Documentation
bool QcLiquidDefinition::flows() const
Returns whether the liquid spreads from its source.
Member Variable Documentation
QString QcLiquidDefinition::bottle
Item a bottling item (glass bottle) turns into on the liquid; the liquid stays (server side only).
QString QcLiquidDefinition::bucket
Item a scooping item (empty bucket) turns into when it takes a source; empty: cannot be taken.
int QcLiquidDefinition::distance
Blocks a flow reaches sideways from its source; 0 for liquids that stay where they are.
int QcLiquidDefinition::dropSearch
Blocks searched sideways for the nearest drop: the liquid then spreads only towards the nearest drops (0, or no drop that near: to every side). Server side only.
bool QcLiquidDefinition::infinite
Two sources next to each other over solid ground (or a source) make a new source.
const int QcLiquidDefinition::maxDistance
Largest distance.
const int QcLiquidDefinition::maxDropSearch
Largest dropSearch.
const int QcLiquidDefinition::maxTicks
Largest ticks.
double QcLiquidDefinition::movementFactor
Factor on swimming speed inside the liquid.
QList<QcLiquidReaction> QcLiquidDefinition::reactions
What the liquid turns into where it touches other liquids ("reactions", at most 16). Server side only.
QString QcLiquidDefinition::sound
Played now and then where the liquid spreads (server side only).
int QcLiquidDefinition::ticks
Server ticks between two flow steps (water 5, lava 30).