Skip to main content
Module

x/replcraft/mod.ts>Identifier

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

Constructors

new
Identifier(unnamed 0: IdentifierOptions)

Properties

readonly
identifier: string

Block or item identifier, e.g. stone_sword

readonly
namespace: string

Namespace of the identifier, e.g. minecraft

Methods

equals(identifier: Identifier): boolean

Check whether the specified identifier is the same as this instance.

Convert the identifier into a Minecraft-usable format.

Static Methods

from(name: string): Identifier

Parse a Minecraft identifier from the specified string.