diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-10 21:43:27 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-10 21:43:27 +0200 |
commit | 35b79e5d710862f957bc494638a8d8906992665d (patch) | |
tree | 1c8945ad44eed86c5c572e99b277152b2d6e90e1 /src/BlockID.h | |
parent | Capitalising (diff) | |
download | cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.gz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.bz2 cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.lz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.xz cuberite-35b79e5d710862f957bc494638a8d8906992665d.tar.zst cuberite-35b79e5d710862f957bc494638a8d8906992665d.zip |
Diffstat (limited to 'src/BlockID.h')
-rw-r--r-- | src/BlockID.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/BlockID.h b/src/BlockID.h index a227245aa..97c1aae86 100644 --- a/src/BlockID.h +++ b/src/BlockID.h @@ -916,9 +916,14 @@ extern AString ItemToFullString(const cItem & a_Item); /// 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 +/// Translates a dimension string to dimension enum. Takes either a number or a dimension alias (built-in). Returns dimOverworld on failure extern eDimension StringToDimension(const AString & a_DimensionString); +/** Translates a dimension enum to dimension string. +Takes a string and returns "Overworld" on failure +*/ +extern AString DimensionToString(eDimension a_Dimension); + /// Translates damage type constant to a string representation (built-in). extern AString DamageTypeToString(eDamageType a_DamageType); |