Add ObjectRef:get_guid() method annotations

This commit is contained in:
Van
2026-02-13 21:27:40 +03:00
parent 6df00d8c79
commit f19c76545d

View File

@@ -145,3 +145,12 @@ function ObjectRef:get_nametag_attributes() end
--- }
--- ```
function ObjectRef:set_nametag_attributes(attributes) end
--- Returns a global unique identifier (a string)
--- For players, this is a player name.
--- For Lua entities, this is a uniquely generated string, guaranteed not to collide with player names.
--- example: `@bGh3p2AbRE29Mb4biqX6OA`
--- GUIDs only use printable ASCII characters.
--- GUIDs persist between object reloads, and their format is guaranteed not to change.
--- Thus you can use the GUID to identify an object in a particular world online and offline.
--- @return string
function ObjectRef:get_guid()