BlockStateProperty

abstract class BlockStateProperty<T : Any>(val id: ResourceLocation)

Represents a property-type of a block state.

Inheritors

Constructors

Link copied to clipboard
constructor(id: ResourceLocation)

Properties

Link copied to clipboard
val id: ResourceLocation

Functions

Link copied to clipboard
fun scope(vararg values: T, initializer: BlockStatePropertyInitializer<T> = { values[0] }): ScopedBlockStateProperty<T>
abstract fun scope(values: Set<T>, initializer: BlockStatePropertyInitializer<T>): ScopedBlockStateProperty<T>

Creates a new ScopedBlockStateProperty of this property that is limited to the given values and initialized using the given initializer.

Link copied to clipboard
open override fun toString(): String