Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/minecraft_lib/io/writer.ts>Writer

A collection of modules that can be used to build Minecraft servers, clients, utilities and other tools.
Latest
class Writer
import { Writer } from "https://deno.land/x/minecraft_lib@0.1.0/io/writer.ts";

Constructors

new
Writer(buf?: Uint8Array)

Methods

bytes(): Uint8Array
grow(length: number)
write(buf: Uint8Array): this
writeBoolean(x: boolean): this
writeByte(x: number): this
writeByteArray(array: Uint8Array): this
writeDouble(x: number): this
writeFloat(x: number): this
writeInt(x: number): this
writeIntArray(array: Int32Array): this
writeLong(x: bigint): this
writeLongArray(array: BigInt64Array): this
writeShort(x: number): this
writeString(text: string, maxLength?: number): this
writeUnsignedByte(x: number): this
writeUnsignedInt(x: number): this
writeUnsignedLong(x: bigint): this
writeUnsignedShort(x: number): this
writeVarInt(x: number): this
writeVarLong(x: bigint): this