QcServerVillagers Class
What villagers do to the world (decision E-411), carried out after the creatures' tick: the wooden doors they open and close (QcOpeners: both halves, the door's sound, never onto a body; a door that cannot close yet is tried again), the ripe crops farmers harvest and plant again in one step (the crop goes back to its first stage; the harvest counts as the farmer's produce, no items drop), the food adult villagers pick up from the ground every foodTicks ticks (QcVillagerBreedingSettings::foods, decision E-490: it counts as produce, so throwing bread feeds them), and clients learning a villager's new look. More...
| Header: | #include <server/villages/QcServerVillagers.h> |
Public Functions
| void | apply() |
Static Public Members
Detailed Description
Without the game rule mobGriefing villagers neither harvest nor pick anything up, like in the reference game, and confined villagers or ones without a mind never do (QcCreature::mayGrief, decision E-510). Trading is QcServerTrading's.
Member Function Documentation
void QcServerVillagers::apply()
Carries out what villagers did in the creatures' tick.
Member Variable Documentation
const double QcServerVillagers::foodReach
Villagers pick up food lying this close to their feet (horizontally; up to one block above or below).
const int QcServerVillagers::foodTicks
They look for food lying at their feet every this many ticks.