Block

class Block(val name: String, properties: Map<String, Any> = emptyMap())

Represents a Block in a Level.

Constructors

Link copied to clipboard
constructor(name: String, properties: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The name of this block.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun withName(name: String): Block

Creates a new Block with the given name and these properties.

Link copied to clipboard
fun withProperties(properties: Map<String, Any>): Block

Creates a new Block with this name and the given properties.