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

x/replcraft/lib/block/block.ts>Block

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

Constructors

new
Block(unnamed 0: BlockOptions)

Properties

readonly
identifier: Identifier

Identifier of the block

readonly
states: Map<string, string>

States of the block

Methods

equals(block: Block): boolean

Check whether the specified string block identifer is the same as this instance.

Convert the parsed block data into a ReplCraft-usable format.

Static Methods

from(name: string): Block

Parse the specified block data into a usable format.