Class: Block

Block(name, propertiesopt)

Block in LevelZ World

Constructor

new Block(name, propertiesopt)

Constructs a new Block.
Parameters:
Name Type Attributes Description
name string Name of the block
properties Map.<string, any> | Object.<string, any> <optional>
Properties of the block
Source:
Example
new Block('grass', new Map([['snowy', false]]))
new Block('grass', {'snowy': false})

Classes

Block

Members

name :string

The name of this block.
Type:
  • string
Source:

properties :Map.<string, any>

The properties of this block.
Type:
  • Map.<string, any>
Source:

Methods

toString() → {string}

Returns the string representation of this block.
Source:
Returns:
The string representation of this block.
Type
string
Example
grass<snowy=false>