hytopia 0.1.76 → 0.1.77
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/boilerplate/index.ts +2 -2
- package/docs/server.entitymanager.getallplayerentities.md +3 -39
- package/docs/server.entitymanager.getplayerentitiesbyplayer.md +55 -0
- package/docs/server.entitymanager.md +16 -2
- package/docs/server.playermanager.getconnectedplayersbyworld.md +55 -0
- package/docs/server.playermanager.md +14 -0
- package/docs/server.sceneuimanager.getsceneuibyid.md +55 -0
- package/docs/server.sceneuimanager.md +14 -0
- package/examples/big-world/index.ts +1 -1
- package/examples/block-entity/index.ts +3 -3
- package/examples/custom-ui/index.ts +1 -1
- package/examples/entity-controller/index.ts +1 -1
- package/examples/entity-spawn/index.ts +1 -1
- package/examples/hole-in-wall-game/index.ts +1 -1
- package/examples/lighting/index.ts +1 -1
- package/examples/payload-game/index.ts +1 -1
- package/examples/wall-dodge-game/index.ts +1 -1
- package/package.json +1 -1
- package/server.api.json +166 -23
- package/server.d.ts +20 -2
- package/server.js +19 -19
package/server.d.ts
CHANGED
@@ -1574,11 +1574,16 @@ export declare class EntityManager {
|
|
1574
1574
|
*/
|
1575
1575
|
getAllEntities(): Entity[];
|
1576
1576
|
/**
|
1577
|
-
* Gets all spawned entities in the world
|
1577
|
+
* Gets all spawned player entities in the world.
|
1578
|
+
* @returns All spawned player entities in the world.
|
1579
|
+
*/
|
1580
|
+
getAllPlayerEntities(): PlayerEntity[];
|
1581
|
+
/**
|
1582
|
+
* Gets all spawned entities in the world assigned to the provided player.
|
1578
1583
|
* @param player - The player to get the entities for.
|
1579
1584
|
* @returns All spawned entities in the world assigned to the player.
|
1580
1585
|
*/
|
1581
|
-
|
1586
|
+
getPlayerEntitiesByPlayer(player: Player): PlayerEntity[];
|
1582
1587
|
/**
|
1583
1588
|
* Gets a spawned entity in the world by its id.
|
1584
1589
|
* @param id - The id of the entity to get.
|
@@ -2650,6 +2655,12 @@ export declare class PlayerManager {
|
|
2650
2655
|
* @returns An array of all connected players.
|
2651
2656
|
*/
|
2652
2657
|
getConnectedPlayers(): Player[];
|
2658
|
+
/**
|
2659
|
+
* Get all connected players in a specific world.
|
2660
|
+
* @param world - The world to get connected players for.
|
2661
|
+
* @returns An array of all connected players in the world.
|
2662
|
+
*/
|
2663
|
+
getConnectedPlayersByWorld(world: World): Player[];
|
2653
2664
|
/**
|
2654
2665
|
* Get a connected player by their username (case insensitive).
|
2655
2666
|
* @param username - The username of the player to get.
|
@@ -3448,6 +3459,13 @@ export declare class SceneUIManager {
|
|
3448
3459
|
* @returns An array of SceneUI instances.
|
3449
3460
|
*/
|
3450
3461
|
getAllEntityAttachedSceneUIs(entity: Entity): SceneUI[];
|
3462
|
+
/**
|
3463
|
+
* Retrieves a SceneUI instance by its unique identifier (id).
|
3464
|
+
*
|
3465
|
+
* @param id - The unique identifier (id) of the SceneUI to retrieve.
|
3466
|
+
* @returns The SceneUI instance if found, otherwise undefined.
|
3467
|
+
*/
|
3468
|
+
getSceneUIById(id: number): SceneUI | undefined;
|
3451
3469
|
|
3452
3470
|
/**
|
3453
3471
|
* Unloads and unregisters all SceneUI instances attached to a specific entity.
|