summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-13 01:04:43 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-13 01:04:43 +0200
commitdc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb (patch)
tree92472a80b8ed3848df0ced0d44098f0080a8d0ad /src
parentMerge branch 'master' into Sheep (diff)
downloadcuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar.gz
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar.bz2
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar.lz
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar.xz
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.tar.zst
cuberite-dc5c43c0aa3ffb8ddaa0871ccf76d872d2393cdb.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Sheep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Mobs/Sheep.h b/src/Mobs/Sheep.h
index 36d7df826..5ffd3e4fe 100644
--- a/src/Mobs/Sheep.h
+++ b/src/Mobs/Sheep.h
@@ -15,8 +15,9 @@ class cSheep :
public:
/** The number is the color of the sheep.
- 0-15 are the normal colors, if you type -1 the server
- automatically chooses the right color for the sheep when spawned. */
+ Use E_META_WOOL_* constants for the wool color.
+ If you type -1, the server will generate a random color
+ with the GenerateNaturalRandomColor() function. */
cSheep(int a_Color = -1);
CLASS_PROTODEF(cSheep);
@@ -27,7 +28,8 @@ public:
virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_WHEAT); }
- /** Generates a random color for the sheep, like Mojang it does. */
+ /** Generates a random color for the sheep like the vanilla server.
+ The percent's where used are from the wiki: http://minecraft.gamepedia.com/Sheep#Breeding */
static NIBBLETYPE GenerateNaturalRandomColor(void);
bool IsSheared(void) const { return m_IsSheared; }