====== Global helper functions ======
These functions are available directly, without a [[API:plugin:Classes|class]] instance. Any plugin cal call them at any time.

===== Function list =====
^ Function name ^ Parameters ^ Return value ^ Notes ^
| AddFaceDirection | BlockX, BlockY, BlockZ, BlockFace, Inverse | BlockX, BlockY, BlockZ | Returns the coords of a block adjacent to the specified block through the specified face |
| BlockStringToType | BlockTypeString | BLOCKTYPE | Returns the block type parsed from the given string |
| ClickActionToString | ClickAction | string | Returns a string description of the ClickAction enumerated value |
| DamageTypeToString | [[API:TakeDamageInfo|eDamageType]] | string | Converts a damage type enumerated value to a string representation |
| GetChar | String, Pos | string | Returns one character from the string, specified by position |
| GetTime | | number | Returns the current OS time, as a unix time stamp (number of seconds since Jan 1, 1970) |
| IsValidBlock | BlockType | bool | Returns true if BlockType is a known block type |
| IsValidItem | ItemType | bool | Returns true if ItemType is a known item type |
| ItemToFullString | [[API:cItem|cItem]] | string | Returns the string representation of the item, in the format "ItemTypeText:ItemDamage * Count" |
| ItemToString | [[API:cItem|cItem]] | string | Returns the string representation of the item type |
| ItemTypeToString | ItemType | string | Returns the string representation of ItemType |
| LOG | string | | Logs a text into the server console using "normal" severity (gray text) |
| LOGERROR | string | | Logs a text into the server console using "error" severity (black text on red background) |
| LOGINFO | string | | Logs a text into the server console using "info" severity (yellow text) |
| LOGWARN | string | | Logs a text into the server console using "warning" severity (red text); OBSOLETE |
| LOGWARNING | string | | Logs a text into the server console using "warning" severity (red text) |
| StringSplit | string, Seperator | list | Seperates string into multiple by splitting every time Seperator is encountered. |
| StringToBiome | string | EMCSBiome | Converts a string representation to a biome enumerated value |
| StringToDamageType | string | [[API:TakeDamageInfo|eDamageType]] | Converts a string representation to an [[API:TakeDamageInfo|eDamageType]] enumerated value |
| StringToDimension | string | eDimension | Converts a string representation to an eDimension enumerated value |
| StringToItem | string, FIXME [[API:cItem|cItem]] | bool FIXME  | Parses the given string and sets the item; returns true if successful |