Skip to content

Class WriteContext

🏭 Constructors

constructor

ts
new WriteContext(schema: undefined | Schema, tagType: TagType): WriteContext

Parameters

  • schema: undefined | Schema
  • tagType: TagType

Return Type

  • WriteContext

Defined in: packages/nbt/index.ts:526

🏷️ Properties

#encoder private

ts
#encoder: undefined | TextEncoder

Defined in: packages/nbt/index.ts:525

schema readonly

ts
schema: undefined | Schema

Defined in: packages/nbt/index.ts:526

tagType readonly

ts
tagType: TagType

Defined in: packages/nbt/index.ts:526

🔑 Accessors

encoder

Defined in: packages/nbt/index.ts:529

🔧 Methods

fork

ts
fork(schemaOrTagType: TagType | Schema): WriteContext

Parameters

  • schemaOrTagType: TagType | Schema

Return Type

  • WriteContext

Defined in: packages/nbt/index.ts:536