From 2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 12 Jul 2013 20:28:41 +0000 Subject: Added a StringToMobType() function to the Lua API (patch contributed by STR_Warrior) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1674 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BlockID.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/BlockID.h') diff --git a/source/BlockID.h b/source/BlockID.h index 9b2a104f3..bd2580ca9 100644 --- a/source/BlockID.h +++ b/source/BlockID.h @@ -688,6 +688,9 @@ extern AString ItemToFullString(const cItem & a_Item); /// Translates a biome string to biome enum. Takes either a number or a biome alias (built-in). Returns -1 on failure. extern EMCSBiome StringToBiome(const AString & a_BiomeString); +/// Translates a mob string ("ocelot") to mobtype (E_ENTITY_TYPE_OCELOT) +extern int StringToMobType(const AString & a_MobString); + /// Translates a dimension string to dimension enum. Takes either a number or a dimension alias (built-in). Returns -1000 on failure extern eDimension StringToDimension(const AString & a_DimensionString); -- cgit v1.2.3