QcMinecart::Rest Struct
struct QcMinecart::RestWhere a cart came to rest on a level rail, at the lower end of a slope that ends there or on the ground off the rails (not saved): while it stays there, without speed, pushes, a rider getting in or a change of that rail or of the cells beyond its track's ends (off the rails: of the cells around it), its tick has nothing to do. More...
Public Variables
| std::array<QcBlockId, 12> | around |
| std::array<QcBlockId, 6> | beyond |
| QcBlockId | block |
| bool | offRails |
| QcVec3 | position |
| QcBlockPos | rail |
Detailed Description
Member Variable Documentation
std::array<QcBlockId, 12> Rest::around
Off the rails: the blocks of the columns its body overlaps (at most 2 x 2), from the cell under its feet to the one above them: the ground under it, what flows into it, a rail it would get on.
std::array<QcBlockId, 6> Rest::beyond
The blocks beyond the first and the second end of the track, level with the rail, one higher and one lower: a rail laid there carries a cart on down a slope.
bool Rest::offRails
Whether it rests off the rails.
QcVec3 Rest::position
Where the cart rests.