Skip to content

API reference / @jsprismarine/protocol / ClientStoreEntryPointConfig

Class: ClientStoreEntryPointConfig ​

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:14

A clientStoreEntryPointConfig: the store a server's marketplace entry point opens, as ServerStoreInfoPacket and Server Configuration Join Info (inside StartGamePacket) carry it.

Protocol 2193 wire order: storeId then storeName, both strings (a varuint32 byte length followed by UTF-8). https://mojang.github.io/bedrock-protocol-docs/1.26.51/types/client-store-entry-point-config/

Extends ​

Constructors ​

Constructor ​

new ClientStoreEntryPointConfig(storeId?, storeName?): ClientStoreEntryPointConfig

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:15

Parameters ​

storeId? ​

string = ''

storeId, the store's unique identifier.

storeName? ​

string = ''

storeName, the name the client shows for the store.

Returns ​

ClientStoreEntryPointConfig

Overrides ​

NetworkStructure.constructor

Properties ​

storeId ​

storeId: string = ''

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:17

storeId, the store's unique identifier.


storeName ​

storeName: string = ''

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:19

storeName, the name the client shows for the store.

Methods ​

deserialize() ​

deserialize(stream): void

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:31

Reads storeId then storeName.

Parameters ​

stream ​

NetworkBinaryStream

Returns ​

void

Overrides ​

NetworkStructure.deserialize


serialize() ​

serialize(stream): void

Defined in: protocol/src/structure/ClientStoreEntryPointConfig.ts:25

Writes storeId then storeName.

Parameters ​

stream ​

NetworkBinaryStream

Returns ​

void

Overrides ​

NetworkStructure.serialize


deserialize() ​

static deserialize<T>(this, stream): T

Defined in: protocol/src/NetworkStructure.ts:28

Deserializes the network structure from a binary stream. The constructor runs with no arguments before the stream is read, so the class must tolerate that.

Type Parameters ​

T ​

T extends NetworkStructure

Parameters ​

this ​

Constructor<T>

stream ​

NetworkBinaryStream

The binary stream to deserialize from.

Returns ​

T

An instance of the class T.

Inherited from ​

NetworkStructure.deserialize