Module internal
Internal functions.
Functions
objectuuids.uuid_to_whitespace (uuid) | Converts a UUID to whitespace format. |
objectuuids.whitespace_to_uuid (whitespace) | Converts a UUID from whitespace format. |
objectuuids.embed_uuid_in_staticdata (staticdata, uuid) | Embeds a UUID into an entity's Lua or JSON data. |
objectuuids.extract_uuid_from_staticdata (staticdata) | Extracts an embedded UUID from an entity's Lua or JSON data. |
objectuuids.on_joinplayer (player, dtime) | Assigns a UUID to any player who joins. |
Functions
- objectuuids.uuid_to_whitespace (uuid)
-
Converts a UUID to whitespace format.
Parameters:
- uuid [string] The UUID the convert.
Returns:
-
[string] The UUID in whitespace format.
- objectuuids.whitespace_to_uuid (whitespace)
-
Converts a UUID from whitespace format.
Parameters:
- whitespace [string] The UUID to convert, in whitespace format.
Returns:
-
[string] The UUID.
- objectuuids.embed_uuid_in_staticdata (staticdata, uuid)
-
Embeds a UUID into an entity's Lua or JSON data.
Parameters:
- staticdata [string|nil] The data to embed the UUID into.
- uuid [string] The UUID to embed.
Returns:
-
[string] The data with the UUID embedded.
- objectuuids.extract_uuid_from_staticdata (staticdata)
-
Extracts an embedded UUID from an entity's Lua or JSON data.
Parameters:
- staticdata [string] The data with the UUID embedded.
Returns:
- [string|nil] The embedded UUID, if any.
- [string] The original staticdata.
- objectuuids.on_joinplayer (player, dtime)
-
Assigns a UUID to any player who joins.
Parameters:
- player [ObjectRef] The player who joined.
- dtime [number] Ignored.