summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Sheep.h')
-rw-r--r--src/Mobs/Sheep.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/Mobs/Sheep.h b/src/Mobs/Sheep.h
index 786dad206..b767fc058 100644
--- a/src/Mobs/Sheep.h
+++ b/src/Mobs/Sheep.h
@@ -7,13 +7,11 @@
-class cSheep:
- public cPassiveMonster
+class cSheep : public cPassiveMonster
{
using Super = cPassiveMonster;
-public:
-
+ public:
/** The number is the color of the sheep.
Use E_META_WOOL_* constants for the wool color.
If you type -1, the server will generate a random color
@@ -27,10 +25,7 @@ public:
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual void InheritFromParents(cMonster * a_Parent1, cMonster * a_Parent2) override;
- virtual void GetFollowedItems(cItems & a_Items) override
- {
- a_Items.Add(E_ITEM_WHEAT);
- }
+ virtual void GetFollowedItems(cItems & a_Items) override { a_Items.Add(E_ITEM_WHEAT); }
/** Generates a random color for the sheep like the vanilla server.
The percent's where used are from the wiki: https://minecraft.wiki/w/Sheep#Breeding */
@@ -42,13 +37,8 @@ public:
int GetFurColor(void) const { return m_WoolColor; }
void SetFurColor(int a_WoolColor) { m_WoolColor = a_WoolColor; }
-private:
+ private:
bool m_IsSheared;
int m_WoolColor;
int m_TimeToStopEating;
-
-} ;
-
-
-
-
+};