Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fkm_nbt/nbt/StringNBTWriter.ts>StringNBTWriter

Node: https://www.npmjs.com/package/fkm-nbt Deno: https://deno.land/x/fkm_nbt
Latest
class StringNBTWriter
implements NBTVisitor
import { StringNBTWriter } from "https://deno.land/x/fkm_nbt@v0.1.0/nbt/StringNBTWriter.ts";

Constructors

new
StringNBTWriter(prettify?: boolean, colorType?: number)

Properties

private
colorType: number
private
depth: number
private
prettify: boolean
private
result: StringBuilder

Methods

private
style(name: Style): string
apply(tag: NBTElement): string
setDepth(depth: number): StringNBTWriter
visitByte(tag: NBTByte): void
visitFloat(tag: NBTFloat): void
visitInt(tag: NBTInt): void
visitList(tag: NBTList): void
visitLong(tag: NBTLong): void
visitNull(_tag: NBTNull): void
visitShort(tag: NBTShort): void

Static Properties

private
SIMPLE_NAME: RegExp

Static Methods

escapeName(name: string): string