diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-09-05 17:13:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 17:13:44 +0200 |
commit | c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd (patch) | |
tree | d87a9a2041afd755cbe0b63bb52e079b0f36235f /src/Mobs/PassiveMonster.h | |
parent | Use pitch lookup in noteblock block entity (#4826) (diff) | |
download | cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar.gz cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar.bz2 cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar.lz cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar.xz cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.tar.zst cuberite-c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/PassiveMonster.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mobs/PassiveMonster.h b/src/Mobs/PassiveMonster.h index fbe381955..67d7399d8 100644 --- a/src/Mobs/PassiveMonster.h +++ b/src/Mobs/PassiveMonster.h @@ -2,6 +2,7 @@ #pragma once #include "Monster.h" +#include "../UUID.h" @@ -60,6 +61,9 @@ protected: /** The monster's breeding partner. */ cPassiveMonster * m_LovePartner; + /** Remembers the player is was last fed by for statistics tracking */ + cUUID m_Feeder; + /** If above 0, the monster is in love mode, and will breed if a nearby monster is also in love mode. Decrements by 1 per tick till reaching zero. */ int m_LoveTimer; |