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

x/fkm_nbt/mod.ts>NBTInt

Node: https://www.npmjs.com/package/fkm-nbt Deno: https://deno.land/x/fkm_nbt
Latest
class NBTInt
extends NBTNumber
Re-export
import { NBTInt } from "https://deno.land/x/fkm_nbt@v0.1.0/mod.ts";

Constructors

new
NBTInt(value?: number)

Properties

private
value: number

Methods

acceptWriter(visitor: NBTVisitor): void
asString(): string
byteValue(): number
doubleValue(): number
floatValue(): number
getNBTType(): NBTType<NBTInt>
getType(): number
intValue(): number
longValue(): bigint
numberValue(): number
shortValue(): number
write(writer: BinaryWriter): void

Static Properties

deprecated
reader
TYPE: NBTType<NBTInt>

Static Methods

of(value: number): NBTInt