DefaultBlock

class DefaultBlock<T : Tile>(emptyTile: T, initialTiles: PersistentMap<BlockTileType, T>) : BaseBlock<T>

Functions

component1
Link copied to clipboard
common
open operator fun component1(): T
component2
Link copied to clipboard
common
open operator fun component2(): T
component3
Link copied to clipboard
common
open operator fun component3(): T
component4
Link copied to clipboard
common
open operator fun component4(): T
component5
Link copied to clipboard
common
open operator fun component5(): T
component6
Link copied to clipboard
common
open operator fun component6(): T
component7
Link copied to clipboard
common
open operator fun component7(): T
createCopy
Link copied to clipboard
common
open override fun createCopy(): Block<T>
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getTileByType
Link copied to clipboard
common
open override fun getTileByType(blockTileType: BlockTileType): T
Returns the tile from this Block for the given blockTileType.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
isEmpty
Link copied to clipboard
common
open override fun isEmpty(): Boolean
Tells whether this Block is empty (all of its sides and content are the the emptyTile).
toBuilder
Link copied to clipboard
common
open override fun toBuilder(): BlockBuilder<T>
Creates a new BlockBuilder preconfigured with the contents of this Block.
toString
Link copied to clipboard
common
open fun toString(): String
withFlippedAroundX
Link copied to clipboard
common
open override fun withFlippedAroundX(): Block<T>
Returns a new Block which is a rotation of this Block around the x axis.
withFlippedAroundY
Link copied to clipboard
common
open override fun withFlippedAroundY(): Block<T>
Returns a new Block which is a rotation of this Block around the y axis.
withFlippedAroundZ
Link copied to clipboard
common
open override fun withFlippedAroundZ(): Block<T>
Returns a new Block which is a rotation of this Block around the z axis.

Properties

back
Link copied to clipboard
common
open override var back: T
bottom
Link copied to clipboard
common
open override var bottom: T
content
Link copied to clipboard
common
open override var content: T
emptyTile
Link copied to clipboard
common
open override val emptyTile: T
front
Link copied to clipboard
common
open override var front: T
left
Link copied to clipboard
common
open override var left: T
right
Link copied to clipboard
common
open override var right: T
tiles
Link copied to clipboard
common
open override var tiles: PersistentMap<BlockTileType, T>
top
Link copied to clipboard
common
open override var top: T

Sources

(source)
Link copied to clipboard