Skip to main content
Module

x/replcraft/mod.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/mod.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.