Skip to main content
Module

x/minecraft_lib/nbt/utils.ts>wrap

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

Constructs tags by inferring the tag type from the value and wrapping it in a tag class. Object and array types are converted recursively.

Type Parameters

T extends TagValue

Returns

WrapValue<T>