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

ts
#encoder: undefined | TextEncoder

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

schema

ts
schema: undefined | Schema

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

tagType

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

Released under the MIT License.