EnumProperty

class EnumProperty<E : Enum<E>>(id: ResourceLocation, enumClass: Class<E>) : BlockStateProperty<E>

Constructors

Link copied to clipboard
constructor(id: ResourceLocation, enumClass: Class<E>)

Properties

Link copied to clipboard
val id: ResourceLocation

Functions

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

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<E>, initializer: BlockStatePropertyInitializer<E>): ScopedBlockStateProperty<E>

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