Skip to main content
Module

x/replcraft/mod.ts>Item

A library to control special structures on the ReplCraft Minecraft server
Latest
class Item
implements ItemOptions
import { Item } from "https://deno.land/x/replcraft@v1.1.0/mod.ts";

Constructors

new
Item(unnamed 0: ItemOptions)

Properties

readonly
amount: number

How many of this item are in the stack

readonly
durability: ItemDurability

Durability of the item

readonly
enchantments: ItemEnchantment[]

Enchantments of the item

readonly
identifier: Identifier

Identifier of the item

readonly
meta: Map<string, unknown>

Static Methods

from(unnamed 0: ItemData): Item

Create a new item instance from a ReplCraft format.