IntProperty
Functions
Link copied to clipboard
fun scope(vararg values: Int, initializer: BlockStatePropertyInitializer<Int> = { values[0] }): ScopedBlockStateProperty<Int>
Creates a new ScopedBlockStateProperty of this property that is limited to the given values and initialized using the given initializer.
open override fun scope(values: Set<Int>, initializer: BlockStatePropertyInitializer<Int>): ScopedBlockStateProperty<Int>
Creates a new ScopedBlockStateProperty of this property that is limited to the given values and initialized using the given initializer.
fun scope(range: IntRange, initializer: BlockStatePropertyInitializer<Int> = { range.first }): ScopedBlockStateProperty<Int>