@kingdomsconnected/types 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/client-api.d.ts +13 -1
- package/package.json +1 -1
|
@@ -5306,7 +5306,7 @@ declare global {
|
|
|
5306
5306
|
};
|
|
5307
5307
|
|
|
5308
5308
|
/**
|
|
5309
|
-
* The local player's view of the nametags above
|
|
5309
|
+
* The local player's view of the nametags above players: whether they draw at all, whether they carry a health bar, and whether their own is shown.
|
|
5310
5310
|
*/
|
|
5311
5311
|
const Nametags: {
|
|
5312
5312
|
/**
|
|
@@ -5333,6 +5333,18 @@ declare global {
|
|
|
5333
5333
|
*/
|
|
5334
5334
|
isHealthVisible(): boolean;
|
|
5335
5335
|
|
|
5336
|
+
/**
|
|
5337
|
+
* Shows or hides this player's own nametag, drawn as others see it, with any label set on their own id.
|
|
5338
|
+
* @param visible True to draw this player's own nametag, false (default) to leave it off.
|
|
5339
|
+
*/
|
|
5340
|
+
setSelfVisible(visible: boolean): void;
|
|
5341
|
+
|
|
5342
|
+
/**
|
|
5343
|
+
* Checks whether this player draws their own nametag.
|
|
5344
|
+
* @returns False unless it was turned on locally.
|
|
5345
|
+
*/
|
|
5346
|
+
isSelfVisible(): boolean;
|
|
5347
|
+
|
|
5336
5348
|
/**
|
|
5337
5349
|
* Hangs a transient line on that entity's nametag, above its name -- speech, an emote, a status. It follows the body, fades with distance and hides behind cover exactly as the name does. Local to this player: the line is not replicated, and a nametag hidden with Nametags.setVisible draws neither. Player.setNametagText is the server-side counterpart for a lasting name.
|
|
5338
5350
|
* @param entityId Network id of the entity to label (server-side `player.id`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingdomsconnected/types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "TypeScript declarations for the Kingdoms Connected scripting API, one entry per side: @kingdomsconnected/types/server and @kingdomsconnected/types/client",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"keywords": [
|