QcFireRules::Traits Struct
struct QcFireRules::TraitsWhat fire needs to know about a block state, looked up once per content. More...
| Header: | #include <server/blocks/QcFireRules.h> |
Public Functions
| bool | flammable() const |
Public Variables
Detailed Description
Member Function Documentation
bool Traits::flammable() const
Returns whether fire can catch on or burn it.
Member Variable Documentation
bool Traits::eternal
Fire on top of it never goes out and never spreads.
bool Traits::fire
The state is a fire block.
bool Traits::solidTop
A solid block with a full top face: fire may stand on it without fuel next to it.
quint8 Traits::sparks
Chance in 100 that a block update of it lights a flammable neighbourhood (lava, decision E-393).