IntProperty

class IntProperty(id: ResourceLocation) : BlockStateProperty<Int>

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: 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>
Link copied to clipboard
open override fun toString(): String